Skip to content
Permalink
Browse files

bin/package should emit an environment.sh file

  • Loading branch information...
dreness committed Jun 22, 2015
1 parent 0149fda commit 47126b06b03705fccbd2008a8923aef29331b609
Showing with 12 additions and 0 deletions.
  1. +12 −0 bin/package
@@ -156,6 +156,18 @@ main () {
-name '*.dylib' \
")" -print0 \
| xargs -0 -I % ln -s % .;

# Write out environment.sh
local dst="${destination}";
cat > "${dst}/environment.sh" << __EOF__
export PATH="${dst}/bin:\${PATH}";
export C_INCLUDE_PATH="${dst}/include:\${C_INCLUDE_PATH:-}";
export LD_LIBRARY_PATH="${dst}/lib:${dst}/lib64:\${LD_LIBRARY_PATH:-}:\$ORACLE_HOME";
export CPPFLAGS="-I${dst}/include \${CPPFLAGS:-} ";
export LDFLAGS="-L${dst}/lib -L${dst}/lib64 \${LDFLAGS:-} ";
export DYLD_LIBRARY_PATH="${dst}/lib:${dst}/lib64:\${DYLD_LIBRARY_PATH:-}:\$ORACLE_HOME";
__EOF__

}


0 comments on commit 47126b0

Please sign in to comment.
You can’t perform that action at this time.