[issm-svn] r23403 - in issm/trunk/packagers: macosx win10
jdquinn at issm.ess.uci.edu
jdquinn at issm.ess.uci.edu
Mon Oct 8 17:16:32 PDT 2018
Author: jdquinn
Date: 2018-10-08 17:16:31 -0700 (Mon, 08 Oct 2018)
New Revision: 23403
Modified:
issm/trunk/packagers/macosx/package.sh
issm/trunk/packagers/win10/package64.sh
Log:
CHG: Adjustments to packaging of Mac and Windows binaries
Modified: issm/trunk/packagers/macosx/package.sh
===================================================================
--- issm/trunk/packagers/macosx/package.sh 2018-10-07 08:58:08 UTC (rev 23402)
+++ issm/trunk/packagers/macosx/package.sh 2018-10-09 00:16:31 UTC (rev 23403)
@@ -1,13 +1,15 @@
#!/bin/bash
-TARBALL_NAME='issm-mac-static_build'
+MATLAB_PATH="/Applications/MATLAB_R2015b.app"
+PACKAGE="ISSM" # Name of directory to copy distributable files to
+TARBALL_NAME="issm-mac-static_build"
TARBALL=$TARBALL_NAME.tar.gz
# Clean up from previous packaging
echo "Cleaning up existing assets"
cd $ISSM_DIR
-rm -rf trunk
-mkdir trunk
+rm -rf $PACKAGE
+mkdir $PACKAGE
# Add/modify required binaries
cd $ISSM_DIR/bin
@@ -30,13 +32,13 @@
echo "gmsh not found"
fi
-# Copy gmt to trunk
+# Copy gmt to package
# NOTE: The following assumes the precompiled version of gmt
echo "Moving gmt to externalpackages"
if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then
- mkdir $ISSM_DIR/trunk/externalpackages
- mkdir $ISSM_DIR/trunk/externalpackages/gmt
- cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/trunk/externalpackages/gmt
+ mkdir $ISSM_DIR/$PACKAGE/externalpackages
+ mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt
+ cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/$PACKAGE/externalpackages/gmt
else
echo "gmt not found"
fi
@@ -44,7 +46,7 @@
# Check that test101 runs
cd $ISSM_DIR/test/NightlyRun
rm matlab.log
-/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
+$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
if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then
echo "test101 FAILED"
@@ -56,17 +58,17 @@
echo "Creating tarball: ${TARBALL_NAME}"
cd $ISSM_DIR
rm -f $TARBALL
-cp -rf bin lib test examples scripts trunk/
+cp -rf bin lib test examples scripts $PACKAGE/
# Create link to gmt from bin
# NOTE: It is important that we are in the destination dir when sym linking so that the path is relative
-if [ -f $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt ]; then
- cd $ISSM_DIR/trunk/bin
+if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/bin/gmt ]; then
+ cd $ISSM_DIR/$PACKAGE/bin
ln -s ../externalpackages/gmt/bin/gmt ./gmt
fi
cd $ISSM_DIR
-tar -czf $TARBALL trunk
+tar -czf $TARBALL $PACKAGE
ls -lah $TARBALL
echo "Shipping binaries to website"
Modified: issm/trunk/packagers/win10/package64.sh
===================================================================
--- issm/trunk/packagers/win10/package64.sh 2018-10-07 08:58:08 UTC (rev 23402)
+++ issm/trunk/packagers/win10/package64.sh 2018-10-09 00:16:31 UTC (rev 23403)
@@ -1,8 +1,9 @@
#!/bin/bash
+MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a"
+PACKAGE="ISSM" # Name of directory to copy distributable files to
TARBALL_NAME='ISSM-Win10-64'
TARBALL=$TARBALL_NAME.tar.gz
-MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a"
# Source Windows environment
source $ISSM_DIR/externalpackages/windows/windows_environment.sh
@@ -10,8 +11,8 @@
# Clean up from previous packaging
echo "Cleaning up existing assets"
cd $ISSM_DIR
-rm -rf trunk
-mkdir trunk
+rm -rf $PACKAGE
+mkdir $PACKAGE
# Add/modify required binaries
cd $ISSM_DIR/bin
@@ -25,18 +26,18 @@
echo "Copying gmsh to bin"
if [ -f ../externalpackages/gmsh/install/gmsh.exe ]; then
- cp ../externalpackages/gmsh/install/gmsh.exe .
+ cp ../externalpackages/gmsh/install/gmsh.exe ./gmsh
else
echo "gmsh not found"
fi
-# Copy gmt to trunk
+# Copy gmt to package
# NOTE: The following assumes the precompiled version of gmt
echo "Moving gmt to externalpackages"
if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then
- mkdir $ISSM_DIR/trunk/externalpackages
- mkdir $ISSM_DIR/trunk/externalpackages/gmt
- cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/trunk/externalpackages/gmt
+ mkdir $ISSM_DIR/$PACKAGE/externalpackages
+ mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt
+ cp -a $ISSM_DIR/externalpackages/gmt/install $ISSM_DIR/$PACKAGE/externalpackages/gmt/install
else
echo "gmt not found"
fi
@@ -66,17 +67,17 @@
echo "Creating tarball: ${TARBALL_NAME}"
cd $ISSM_DIR
rm -f $TARBALL
-cp -rf bin lib test examples scripts trunk/
+cp -rf bin lib test examples scripts $PACKAGE/
# Create link to gmt from bin
# NOTE: It is important that we are in the destination dir when sym linking so that the path is relative
-if [ -f $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt ]; then
- cd $ISSM_DIR/trunk/bin
- ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt
+if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/bin/gmt ]; then
+ cd $ISSM_DIR/$PACKAGE/bin
+ ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt.exe
fi
cd $ISSM_DIR
-tar -czf $TARBALL trunk
+tar -czf $TARBALL $PACKAGE
ls -lah $TARBALL
# Ship binaries to website
More information about the issm-svn
mailing list