Changeset 23381


Ignore:
Timestamp:
10/03/18 11:29:52 (6 years ago)
Author:
jdquinn
Message:

CHG: Mac binaries utilized precompiled copy of GMT (for now)

Location:
issm/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/jenkins/macosx_pine-island_static

    r23362 r23381  
    2525        --with-fortran-lib="/usr/local/gfortran/lib/libgfortran.a /usr/local/gfortran/lib/libquadmath.a /usr/local/gfortran/lib/gcc/x86_64-apple-darwin14/5.2.0/libgcc.a"'
    2626
    27 
    2827#PYTHON and MATLAB testing
    2928MATLAB_TEST=0
     
    4241                                        triangle        install-macosx64.sh
    4342                                        math77          install.sh
    44                                         gshhg           install.sh
    45                                         hdf5            install.sh
    46                                         netcdf          install.sh
    47                                         gmt                     install-static.sh
     43                                        gmt                     install-mac-precompiled.sh
    4844                                        gmsh            install-mac-precompiled.sh
    4945                                        shell2junit     install.sh"
  • issm/trunk/packagers/macosx/package.sh

    r22788 r23381  
    11#!/bin/bash
    22
    3 echo "modify generic"
     3TARBALL_NAME='issm-mac-static_build'
     4TARBALL=$TARBALL_NAME.tar.gz
     5
     6# Clean up from previous packaging
     7echo "Cleaning up existing assets"
     8cd $ISSM_DIR
     9rm -rf trunk
     10mkdir trunk trunk/externalpackages
     11
     12# Add/modify required binaries
    413cd $ISSM_DIR/bin
     14
     15echo "Modifying generic"
    516cat 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 .
    9 echo "move gmsh to bin"
     17
     18echo "Moving mpiexec to bin"
     19if [ -f ../externalpackages/mpich/install/bin/mpiexec ]; then
     20        cp ../externalpackages/mpich/install/bin/mpiexec .
     21        cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy .
     22else
     23        echo "mpich not found"
     24fi
     25
     26echo "Moving gmsh to bin"
    1027if [ -f ../externalpackages/gmsh/install/gmsh ]; then
    1128        cp ../externalpackages/gmsh/install/gmsh .
     
    1431fi
    1532
    16 #Check that test101 runs
     33# Copy gmt to trunk
     34# NOTE: The following assumes the precompiled version of gmt
     35echo "Moving gmt to externalpackages"
     36if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then
     37        mkdir $ISSM_DIR/trunk/externalpackages/gmt
     38        cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/trunk/externalpackages/gmt
     39else
     40        echo "gmt not found"
     41fi
     42
     43# Check that test101 runs
    1744cd $ISSM_DIR/test/NightlyRun
    1845rm matlab.log
     
    2653fi
    2754
    28 tarball_name='issm-mac-static_build.tar.gz'
     55echo "Creating tarball: ${TARBALL_NAME}"
     56cd $ISSM_DIR
     57rm -f $TARBALL
     58cp -rf bin lib test examples scripts trunk/
    2959
    30 echo "Cleanup first"
    31 cd $ISSM_DIR
    32 rm $tarball_name
     60# Create link to gmt from bin
     61if [ -f $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt ]; then
     62        ln -s $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt $ISSM_DIR/trunk/bin/gmt
     63fi
    3364
    34 echo "Creating tarball: ${tarball_name}"
    35 cd $ISSM_DIR
    36 rm -rf trunk
    37 mkdir trunk
    38 cp -rf bin lib test examples scripts trunk/
    39 tar -czf $tarball_name trunk
    40 ls -lah $tarball_name
     65tar -czf $TARBALL trunk
     66ls -lah $TARBALL
    4167
    4268echo "Shipping binaries to website"
     
    5682ssh-add ~/.ssh/macosx-bins_richese-to-ross
    5783
    58 scp $tarball_name ross.ics.uci.edu:/var/www/html/$tarball_name
     84scp $TARBALL ross.ics.uci.edu:/var/www/html/$TARBALL
    5985
    6086if [ $? -ne 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.