Changeset 24311 for issm/trunk-jpl/packagers/macosx/package.sh
- Timestamp:
- 11/01/19 09:58:30 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl
- Property svn:mergeinfo changed
/issm/trunk merged: 23397-23398,23403-23405,23407,23436,23447,23449-23450,23452,23454,23456,23458,23564,23567,23915-23918,23927-23934
- Property svn:mergeinfo changed
-
issm/trunk-jpl/packagers/macosx/package.sh
r23393 r24311 1 1 #!/bin/bash 2 2 3 TARBALL_NAME='issm-mac-static_build' 3 MATLAB_PATH="/Applications/MATLAB_R2015b.app" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 5 TARBALL_NAME="issm-mac" 4 6 TARBALL=$TARBALL_NAME.tar.gz 5 7 … … 7 9 echo "Cleaning up existing assets" 8 10 cd $ISSM_DIR 9 rm -rf trunk10 mkdir trunk11 rm -rf $PACKAGE 12 mkdir $PACKAGE 11 13 12 14 # Add/modify required binaries … … 31 33 fi 32 34 33 # Copy gmt to trunk35 # Copy gmt to package 34 36 # NOTE: The following assumes the precompiled version of gmt 35 37 echo "Moving gmt to externalpackages" 36 38 if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then 37 mkdir $ISSM_DIR/ trunk/externalpackages38 mkdir $ISSM_DIR/ trunk/externalpackages/gmt39 cp -a $ISSM_DIR/externalpackages/gmt/install /. $ISSM_DIR/trunk/externalpackages/gmt39 mkdir $ISSM_DIR/$PACKAGE/externalpackages 40 mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt 41 cp -a $ISSM_DIR/externalpackages/gmt/install $ISSM_DIR/$PACKAGE/externalpackages/gmt/install 40 42 else 41 43 echo "gmt not found" … … 45 47 cd $ISSM_DIR/test/NightlyRun 46 48 rm matlab.log 47 /Applications/MATLAB_R2015b.app/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log49 $MATLAB_PATH/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 48 50 49 51 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then … … 57 59 cd $ISSM_DIR 58 60 rm -f $TARBALL 59 cp -rf bin lib test examples scripts trunk/61 cp -rf bin lib test examples scripts $PACKAGE/ 60 62 61 63 # Create link to gmt from bin 62 64 # NOTE: It is important that we are in the destination dir when sym linking so that the path is relative 63 if [ -f $ISSM_DIR/ trunk/externalpackages/gmt/bin/gmt ]; then64 cd $ISSM_DIR/ trunk/bin65 ln -s ../externalpackages/gmt/ bin/gmt ./gmt65 if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/install/bin/gmt ]; then 66 cd $ISSM_DIR/$PACKAGE/bin 67 ln -s ../externalpackages/gmt/install/bin/gmt ./gmt 66 68 fi 67 69 68 70 cd $ISSM_DIR 69 tar -czf $TARBALL trunk71 tar -czf $TARBALL $PACKAGE 70 72 ls -lah $TARBALL 71 73
Note:
See TracChangeset
for help on using the changeset viewer.