| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | case "${OSTYPE}" in |
| 4 | cygwin) |
| 5 | export PATH |
| 6 | PATH="$(pwdscip-shell system . . pwd.)/install-dir/bin:${PATH:-}" |
| 7 | PATH="$(pwdscip-shell system . . pwd.)/src/libbson/Release:${PATH}" |
| 8 | PATH="$(pwdscip-shell system . . pwd.)/src/libbson/Debug:${PATH}" |
| 9 | chmodscip-shell system . . chmod. -f +x src/libmongoc/Debug/* || truescip-shell system . . true. |
| 10 | chmodscip-shell system . . chmod. -f +x src/libbson/Debug/* || truescip-shell system . . true. |
| 11 | chmodscip-shell system . . chmod. -f +x src/libmongoc/Release/* || truescip-shell system . . true. |
| 12 | chmodscip-shell system . . chmod. -f +x src/libbson/Release/* || truescip-shell system . . true. |
| 13 | chmodscip-shell system . . chmod. -f +x install-dir/bin/* || truescip-shell system . . true. |
| 14 | ;; |
| 15 | |
| 16 | darwin*) |
| 17 | export DYLD_LIBRARY_PATH |
| 18 | DYLD_LIBRARY_PATH="${EXTRA_LIB_PATH:-}:${DYLD_LIBRARY_PATH:-}" |
| 19 | DYLD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/src/libmongoc:${DYLD_LIBRARY_PATH}" |
| 20 | DYLD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/src/libbson:${DYLD_LIBRARY_PATH}" |
| 21 | DYLD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/install-dir/lib64:${DYLD_LIBRARY_PATH}" |
| 22 | DYLD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/install-dir/lib:${DYLD_LIBRARY_PATH}" |
| 23 | DYLD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.):${DYLD_LIBRARY_PATH}" |
| 24 | ;; |
| 25 | |
| 26 | *) |
| 27 | export LD_LIBRARY_PATH |
| 28 | LD_LIBRARY_PATH="${EXTRA_LIB_PATH:-}:${LD_LIBRARY_PATH:-}" |
| 29 | LD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/src/libmongoc:${LD_LIBRARY_PATH}" |
| 30 | LD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/src/libbson:${LD_LIBRARY_PATH}" |
| 31 | LD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/install-dir/lib64:${LD_LIBRARY_PATH}" |
| 32 | LD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.)/install-dir/lib:${LD_LIBRARY_PATH}" |
| 33 | LD_LIBRARY_PATH="$(pwdscip-shell system . . pwd.):${LD_LIBRARY_PATH}" |
| 34 | ;; |
| 35 | esac |