Changeset 23403 for issm/trunk
- Timestamp:
- 10/08/18 17:16:31 (6 years ago)
- Location:
- issm/trunk/packagers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/packagers/macosx/package.sh
r23383 r23403 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-static_build" 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 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 if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/bin/gmt ]; then 66 cd $ISSM_DIR/$PACKAGE/bin 65 67 ln -s ../externalpackages/gmt/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 -
issm/trunk/packagers/win10/package64.sh
r23385 r23403 1 1 #!/bin/bash 2 2 3 MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 3 5 TARBALL_NAME='ISSM-Win10-64' 4 6 TARBALL=$TARBALL_NAME.tar.gz 5 MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a"6 7 7 8 # Source Windows environment … … 11 12 echo "Cleaning up existing assets" 12 13 cd $ISSM_DIR 13 rm -rf trunk14 mkdir trunk14 rm -rf $PACKAGE 15 mkdir $PACKAGE 15 16 16 17 # Add/modify required binaries … … 26 27 echo "Copying gmsh to bin" 27 28 if [ -f ../externalpackages/gmsh/install/gmsh.exe ]; then 28 cp ../externalpackages/gmsh/install/gmsh.exe . 29 cp ../externalpackages/gmsh/install/gmsh.exe ./gmsh 29 30 else 30 31 echo "gmsh not found" 31 32 fi 32 33 33 # Copy gmt to trunk34 # Copy gmt to package 34 35 # NOTE: The following assumes the precompiled version of gmt 35 36 echo "Moving gmt to externalpackages" 36 37 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/gmt38 mkdir $ISSM_DIR/$PACKAGE/externalpackages 39 mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt 40 cp -a $ISSM_DIR/externalpackages/gmt/install $ISSM_DIR/$PACKAGE/externalpackages/gmt/install 40 41 else 41 42 echo "gmt not found" … … 67 68 cd $ISSM_DIR 68 69 rm -f $TARBALL 69 cp -rf bin lib test examples scripts trunk/70 cp -rf bin lib test examples scripts $PACKAGE/ 70 71 71 72 # Create link to gmt from bin 72 73 # NOTE: It is important that we are in the destination dir when sym linking so that the path is relative 73 if [ -f $ISSM_DIR/ trunk/externalpackages/gmt/bin/gmt ]; then74 cd $ISSM_DIR/ trunk/bin75 ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt 74 if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/bin/gmt ]; then 75 cd $ISSM_DIR/$PACKAGE/bin 76 ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt.exe 76 77 fi 77 78 78 79 cd $ISSM_DIR 79 tar -czf $TARBALL trunk80 tar -czf $TARBALL $PACKAGE 80 81 ls -lah $TARBALL 81 82
Note:
See TracChangeset
for help on using the changeset viewer.