source: issm/trunk-jpl/externalpackages/tclx/install.sh@ 23435

Last change on this file since 23435 was 23435, checked in by jdquinn, 6 years ago

CHG: Renamed download_external_package.bash -> DownloadExternalPackage.sh and updated calls to it in install scripts

  • Property svn:executable set to *
File size: 650 bytes
RevLine 
[12712]1#!/bin/bash
[13246]2set -eu
[12712]3
4#Some cleanup
5rm -rf src
6rm -rf install
7rm -rf tclx8.4
8mkdir src install
9
10#Download from ISSM server
[23435]11$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/tclx8.4.tar.gz' 'tclx8.4.tar.gz'
[12712]12
13#Untar
14tar -zxvf tclx8.4.tar.gz
15
16#Move tclx into src directory
17mv tclx8.4/* src
18rm -rf tclx8.4
19
20#Configure tclx
21cd src
22./configure --prefix="$ISSM_DIR/externalpackages/tclx/install" \
23 --exec-prefix="$ISSM_DIR/externalpackages/tclx/install" \
[21616]24 --with-tcl=$ISSM_DIR/externalpackages/tcl/install/lib
[12712]25
26#Compile and install tclx
[13249]27if [ $# -eq 0 ]; then
[12712]28 make
29else
30 make -j $1
31fi
32make install
Note: See TracBrowser for help on using the repository browser.