]> Creatis software - creaToolsTools.git/commitdiff
Some more idiot-proof features
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 22 Mar 2011 16:07:31 +0000 (16:07 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 22 Mar 2011 16:07:31 +0000 (16:07 +0000)
Linux/scripts/CreaTools-install.sh
Linux/scripts/CreaTools-load.sh

index d5b107f1133bf35c06273fe0cc02f501556a3ad3..6ea2d1bb1a31179ec0abe360a7da7d3bf80d8195 100644 (file)
@@ -6,6 +6,26 @@
   # Set all local variables
   source $PWD/scripts/CreaTools-configure.sh
   source $PWD/scripts/CreaTools-names.sh
+  if [ -e $generationdir ]
+  then
+     if [ ! -e $generationdir/creatools_install ]
+     then
+       mkdir $generationdir/creatools_install
+     fi
+  else
+   echo
+   echo "..ERROR.."
+   echo "==================================================="
+   echo "REMEMBER !"
+   echo ""
+   echo "You MUST load the Creatools sources before (use 2.2)!"
+   echo "==================================================="
+   echo
+   echo 
+   read a
+   exit 0 
+  fi  
   
   cd $scriptDir
 
index 15a46e9b7af97f23f1cb785dee278b504f543275..1dcc13ad2dd6f4e9b1ee04661c89551b1c9d5e3a 100644 (file)
@@ -46,6 +46,7 @@ then
    mkdir $generationdir
    mkdir $generationdir/creatools_source
    mkdir $generationdir/creatools_bin
+   mkdir $generationdir/creatools_install   
 fi
 
 cd $generationdir