Changeset 18436


Ignore:
Timestamp:
08/19/14 08:27:11 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: trying static compile on ubuntu

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/bash
     1#!/bin/bash
    22
    3 #Just tar gz the bin/ directory and test/ directory and put a startup.m file.
     3echo "modify generic"
     4cd $ISSM_DIR/bin
     5cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m
     6echo "move mpiexec to bin"
     7cp ../externalpackages/mpich/install/bin/mpiexec .
     8cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy .
    49
    5 rm -rf ISSM ISSM-Ubuntu32.tar.gz
     10#Check that test101 runs
     11cd $ISSM_DIR/test/NightlyRun
     12rm 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
    614
    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
     15if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then
     16        echo "test101 FAILED"
     17        exit 1;
     18else
     19        echo "test101 passed"
     20fi
     21
     22tarball_name='issm-ubuntu-static_build.tar.gz'
     23
     24echo "Cleanup first"
     25cd $ISSM_DIR
     26rm $tarball_name
     27
     28echo "Creating tarball: ${tarball_name}"
     29cd $ISSM_DIR
     30tar -czf $tarball_name ./bin ./lib ./test ./examples
     31ls -lah $tarball_name
Note: See TracChangeset for help on using the changeset viewer.