Changeset 18436
- Timestamp:
- 08/19/14 08:27:11 (11 years ago)
- Location:
- issm/trunk-jpl/packagers/ubuntu
- Files:
-
- 1 added
- 3 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/packagers/ubuntu/package.sh
r11575 r18436 1 # /bin/bash1 #!/bin/bash 2 2 3 #Just tar gz the bin/ directory and test/ directory and put a startup.m file. 3 echo "modify generic" 4 cd $ISSM_DIR/bin 5 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m 6 echo "move mpiexec to bin" 7 cp ../externalpackages/mpich/install/bin/mpiexec . 8 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy . 4 9 5 rm -rf ISSM ISSM-Ubuntu32.tar.gz 10 #Check that test101 runs 11 cd $ISSM_DIR/test/NightlyRun 12 rm matlab.log 13 $MATLAB_DIR/bin/matlab -nojvm -nosplash -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 6 14 7 mkdir ISSM 8 cd ISSM 9 ln -s $ISSM_TIER/bin ./bin 10 ln -s $ISSM_TIER/test ./test 11 cp ../startup.m ./ 12 cp ../README.m ./ 13 cd .. 14 tar zcvfh ISSM-Ubuntu32.tar.gz --exclude='.svn' ./ISSM 15 rm -rf ISSM 15 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then 16 echo "test101 FAILED" 17 exit 1; 18 else 19 echo "test101 passed" 20 fi 21 22 tarball_name='issm-ubuntu-static_build.tar.gz' 23 24 echo "Cleanup first" 25 cd $ISSM_DIR 26 rm $tarball_name 27 28 echo "Creating tarball: ${tarball_name}" 29 cd $ISSM_DIR 30 tar -czf $tarball_name ./bin ./lib ./test ./examples 31 ls -lah $tarball_name
Note:
See TracChangeset
for help on using the changeset viewer.