Ignore:
Timestamp:
11/01/19 09:58:30 (5 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk and trunk-jpl

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl

  • issm/trunk-jpl/packagers/macosx/package.sh

    r23393 r24311  
    11#!/bin/bash
    22
    3 TARBALL_NAME='issm-mac-static_build'
     3MATLAB_PATH="/Applications/MATLAB_R2015b.app"
     4PACKAGE="ISSM" # Name of directory to copy distributable files to
     5TARBALL_NAME="issm-mac"
    46TARBALL=$TARBALL_NAME.tar.gz
    57
     
    79echo "Cleaning up existing assets"
    810cd $ISSM_DIR
    9 rm -rf trunk
    10 mkdir trunk
     11rm -rf $PACKAGE
     12mkdir $PACKAGE
    1113
    1214# Add/modify required binaries
     
    3133fi
    3234
    33 # Copy gmt to trunk
     35# Copy gmt to package
    3436# NOTE: The following assumes the precompiled version of gmt
    3537echo "Moving gmt to externalpackages"
    3638if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then
    37         mkdir $ISSM_DIR/trunk/externalpackages
    38         mkdir $ISSM_DIR/trunk/externalpackages/gmt
    39         cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/trunk/externalpackages/gmt
     39        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
    4042else
    4143        echo "gmt not found"
     
    4547cd $ISSM_DIR/test/NightlyRun
    4648rm 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.log
     49$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
    4850
    4951if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then
     
    5759cd $ISSM_DIR
    5860rm -f $TARBALL
    59 cp -rf bin lib test examples scripts trunk/
     61cp -rf bin lib test examples scripts $PACKAGE/
    6062
    6163# Create link to gmt from bin
    6264# 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 ]; then
    64         cd $ISSM_DIR/trunk/bin
    65         ln -s ../externalpackages/gmt/bin/gmt ./gmt
     65if [ -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
    6668fi
    6769
    6870cd $ISSM_DIR
    69 tar -czf $TARBALL trunk
     71tar -czf $TARBALL $PACKAGE
    7072ls -lah $TARBALL
    7173
Note: See TracChangeset for help on using the changeset viewer.