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

Last change on this file since 13249 was 13249, checked in by seroussi, 12 years ago

BUG: fixed installation scripts when checking for number of inputs

  • Property svn:executable set to *
File size: 679 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src
6rm -rf install
7rm -rf tclx8.4
8mkdir src install
9
10#Download from ISSM server
11$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/tclx8.4.tar.gz' 'tclx8.4.tar.gz'
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" \
24 --with-tcl=$ISSM_DIR/externalpackages/tcl/install/Library/Frameworks/Tcl.framework
25
26#Compile and install tclx
27if [ $# -eq 0 ]; then
28 make
29else
30 make -j $1
31fi
32make install
Note: See TracBrowser for help on using the repository browser.