Ticket #945: diff_maketools

File diff_maketools, 535 bytes (added by rkandilarov, 8 years ago)
Line 
1Index: /home/rossi/NEMO/NEMOGCM/TOOLS/maketools
2===================================================================
3--- /home/rossi/NEMO/NEMOGCM/TOOLS/maketools (revision 3321)
4+++ /home/rossi/NEMO/NEMOGCM/TOOLS/maketools (working copy)
5@@ -73,7 +73,8 @@
6 
7 #- Local variables ---
8 b_n=$(basename ${0})
9-export MAIN_DIR=${PWD%/TOOLS*}
10+#export MAIN_DIR=${$WorkDir%/TOOLS*}
11+export MAIN_DIR="$(dirname $(which ${0}))/.."
12 export TOOLS_DIR=${MAIN_DIR}/TOOLS
13 export COMPIL_DIR=${MAIN_DIR}/TOOLS/COMPILE
14 export NEMO_DIR=${MAIN_DIR}/NEMO