Changeset 1752 for LMDZ5/branches/testing/build_gcm
- Timestamp:
- Apr 30, 2013, 8:34:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing/build_gcm
r1542 r1752 1 1 #!/bin/bash 2 # Usage: 3 # ./build_gcm [path] 4 # where 'path' is an optional argument to this script specifying 5 # the full path to where the 'fcm' command is to be found 2 6 3 7 if test -f '.lock' … … 8 12 echo "vous pouvez continuer en repondant oui." 9 13 echo "Voulez-vous vraiment continuer?" 14 echo "" 15 echo "WARNING: you are probably already compiling the model somewhere else." 16 echo "Wait until the first compilation is finished before launching this one." 17 echo "If you are sure that you are not compiling elsewhere, just answer " 18 echo "yes (or 'oui') to the question below to proceed." 19 echo "Do you wish to continue?" 10 20 read ouinon 11 if [[ $ouinon == "oui" ]]21 if [[ $ouinon == "oui" || $ouinon == "yes" ]] 12 22 then 13 23 echo OK … … 16 26 fi 17 27 else 18 echo "compil ation en cours..." > '.lock'28 echo "compiling..." > '.lock' 19 29 fi 20 30 21 #set arch=$1 31 dirname="" #path to where the fcm command will be found 32 if (( $# >= 1 )) ; then 33 dirname=$1 34 # check that "dirname" exists and is a directory 35 if [[ ! -d $dirname ]] ; then 36 echo "$0 error : $dirname is not a directory" 37 exit 38 fi 39 # add a trailing "/" to $dirname 40 dirname=${dirname}"/" 41 fi 22 42 43 # run "fcm build" command 44 ${dirname}fcm build 23 45 24 fcm build 25 46 # cleanup 26 47 \rm -f '.lock' 27 48
Note: See TracChangeset
for help on using the changeset viewer.