[cig-commits] commit: Add setup.bat and setup.sh

Mercurial hg at geodynamics.org
Thu Dec 29 10:40:08 PST 2011


changeset:   58:e025aa246b0a
user:        Walter Landry <wlandry at caltech.edu>
date:        Thu Dec 29 10:38:20 2011 -0800
files:       setup.bat setup.sh
description:
Add setup.bat and setup.sh


diff -r 7d0d8de7f07c -r e025aa246b0a setup.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.bat	Thu Dec 29 10:38:20 2011 -0800
@@ -0,0 +1,33 @@
+if not exist relax.exe (goto :error)
+
+SET GMT_SHAREDIR=%CD%\share
+
+SET PROJ_LIB=%CD%\share
+
+PATH=%CD%;%PATH%
+
+echo "Ready to run Relax"
+
+
+
+goto :theend
+
+:error
+echo
+
+echo *** Error! ***
+
+echo
+
+echo Run this script from the top-level Relax directory:
+
+echo
+
+echo     cd [directory containing 'setup_win.bat']
+
+echo     setup_win.bat
+
+echo
+
+
+:theend
diff -r 7d0d8de7f07c -r e025aa246b0a setup.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.sh	Thu Dec 29 10:38:20 2011 -0800
@@ -0,0 +1,17 @@
+relax=`pwd`
+
+if test ! -f relax; then
+    echo
+    echo "*** Error! ***"
+    echo
+    echo "Source this script from the top-level Relax directory:"
+    echo
+    echo "    cd [directory containing 'setup.sh']"
+    echo "    source setup.sh"
+    echo 
+else
+    export PATH="$relax:$relax/util:$PATH"
+    export GMT_SHAREDIR="$relax/share"
+    export PROJ_LIB="$relax/share"
+    echo "Ready to run Relax."
+fi



More information about the CIG-COMMITS mailing list