[CalendarServer-changes] [14904] CalendarServer/trunk/bin/package
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 22 14:45:58 PDT 2015
Revision: 14904
http://trac.calendarserver.org//changeset/14904
Author: dre at apple.com
Date: 2015-06-22 14:45:57 -0700 (Mon, 22 Jun 2015)
Log Message:
-----------
bin/package should emit an environment.sh file
Modified Paths:
--------------
CalendarServer/trunk/bin/package
Modified: CalendarServer/trunk/bin/package
===================================================================
--- CalendarServer/trunk/bin/package 2015-06-20 15:47:17 UTC (rev 14903)
+++ CalendarServer/trunk/bin/package 2015-06-22 21:45:57 UTC (rev 14904)
@@ -156,6 +156,18 @@
-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__
+
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150622/2db4cc52/attachment.html>
More information about the calendarserver-changes
mailing list