[CalendarServer-changes] [13412] CalendarServer/trunk/bin/develop
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 2 17:01:35 PDT 2014
Revision: 13412
http://trac.calendarserver.org//changeset/13412
Author: wsanchez at apple.com
Date: 2014-05-02 17:01:34 -0700 (Fri, 02 May 2014)
Log Message:
-----------
OK no links; write a script that has the right environment.
Modified Paths:
--------------
CalendarServer/trunk/bin/develop
Modified: CalendarServer/trunk/bin/develop
===================================================================
--- CalendarServer/trunk/bin/develop 2014-05-02 23:48:16 UTC (rev 13411)
+++ CalendarServer/trunk/bin/develop 2014-05-03 00:01:34 UTC (rev 13412)
@@ -37,7 +37,17 @@
find .develop/virtualenv/bin -type f -name "calendarserver_*" | {
while read source; do
target="${wd}/bin/$(basename ${source})";
- ln -s "../${source}" "${target}";
+
+ rm -f "${target}";
+ cat << __END__ > "${target}"
+export PATH="${PATH:-}";
+export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}";
+export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH:-}";
+
+exec "\$(dirname \$0)/../${source}" "\$@";
+__END__
+ chmod +x "${target}";
+
done;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140502/db4905f3/attachment-0001.html>
More information about the calendarserver-changes
mailing list