[issm-svn] r23382 - issm/trunk/packagers/macosx

jdquinn at issm.ess.uci.edu jdquinn at issm.ess.uci.edu
Wed Oct 3 13:28:38 PDT 2018


Author: jdquinn
Date: 2018-10-03 13:28:38 -0700 (Wed, 03 Oct 2018)
New Revision: 23382

Modified:
   issm/trunk/packagers/macosx/package.sh
Log:
CHG: Updates Mac OSX binaries packager to use a relative path when sys linking to GMT

Modified: issm/trunk/packagers/macosx/package.sh
===================================================================
--- issm/trunk/packagers/macosx/package.sh	2018-10-03 18:29:52 UTC (rev 23381)
+++ issm/trunk/packagers/macosx/package.sh	2018-10-03 20:28:38 UTC (rev 23382)
@@ -58,8 +58,10 @@
 cp -rf bin lib test examples scripts trunk/
 
 # Create link to gmt from bin
+# NOTE: It is important that we are in the destination dir when sym linking so that the path is relative
 if [ -f $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt ]; then
-	ln -s $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt $ISSM_DIR/trunk/bin/gmt
+	cd $ISSM_DIR/trunk/bin
+	ln -s ../externalpackages/gmt/bin/gmt ./gmt
 fi
 
 tar -czf $TARBALL trunk



More information about the issm-svn mailing list