Changeset 23426


Ignore:
Timestamp:
10/15/18 18:45:13 (6 years ago)
Author:
jdquinn
Message:

CHG: Added header documentation and silent flags to get commands to bash external package download script; modified Dakota install config

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64.sh

    r23425 r23426  
    2222rm -rf dakota-${DAK_VER}.0.src
    2323
    24 # Set up Dakota cmake variables and config
    25 DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build
    26 DAK_INSTALL=$ISSM_DIR/externalpackages/dakota/install
    27 DAK_SRC=$ISSM_DIR/externalpackages/dakota/src
     24# Set up Dakota and CMake variables
     25export DAK_PATH=$ISSM_DIR/externalpackages/dakota
     26
     27export DAK_BUILD=$DAK_PATH/build
     28export DAK_INSTALL=$DAK_PATH/install
     29export DAK_SRC=$DAK_PATH/src
    2830export MPIHOME=$ISSM_DIR/externalpackages/mpich/install
    2931export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install
     
    3840patch src/packages/pecos/src/pecos_global_defs.hpp configs/$DAK_VER/pecos_global_defs.hpp.patch
    3941
    40 # Configure dakota
    41 # Set your local gcc compiler here
     42# Configure and build Dakota
    4243cd $DAK_BUILD
    4344cmake \
     
    5859        $DAK_SRC
    5960
    60 # Snowleopard: Mpi should be made with these compilers
    61 #-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
    62 #-DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
    63 
    64 #Compile and install dakota
    6561if [ $# -eq 0 ];
    6662then
     
    7167        make -j $1 install
    7268fi
     69
     70# Set paths and library paths
     71export PATH=$DAK_INSTALL/bin:$DAK_INSTALL/test:$PATH
     72export DYLD_LIBRARY_PATH=$DAK_INSTALL/lib:$DAK_INSTALL/bin:$DYLD_LIBRARY_PATH
  • issm/trunk-jpl/scripts/download_external_package.bash

    r23418 r23426  
    11#!/bin/bash
    22#
     3# download_external_package.bash
     4# Generally, used to download a hosted file from a URL
     5# URL - Location of file to download
     6# file - File to write to (including path)
     7# usage: download_external_package.bash URL file
    38
    49## Constants
    510#
    6 ERR_NO_GET_CMD="No supported file download command was found"
    7 ERR_NUM_ARGS="Illegal number of args"
    8 ERR_USAGE=""
     11MSG_ERR_NO_GET_CMD="No supported file download command was found"
     12MSG_USAGE="usage: $(basename ${0}) [-h] URL file
     13  URL  : Location of file to download
     14  file : File to write to (including path)"
    915
    1016## Variables
     
    1319URL=""
    1420
    15 ## Check number of args
     21## Check that number of args is 2 (note that this also handles case where user
     22#       explicitly requests help)
    1623#
    1724if [ $# != 2 ]
    1825then
    19         echo $ERR_NUM_ARGS
     26        echo "$MSG_USAGE"
     27        exit 0
    2028fi
    2129
     
    3745if [ ! -z `which wget` ]
    3846then
    39         wget --no-check-certificate -O $OUT_FILE $URL
     47        wget --quiet -O $OUT_FILE $URL
    4048elif [ ! -z `which curl` ]
    4149then
    42         curl $URL -o $OUT_FILE
     50        curl --silent $URL -o $OUT_FILE
    4351else
    44         echo $ERR_NO_GET_CMD
     52        echo $MSG_ERR_NO_GET_CMD
    4553        exit 0
    4654fi
Note: See TracChangeset for help on using the changeset viewer.