vtkdirVariable=""
while [ "$vtkdirVariable" = "" ]
do
- echo
- echo " --------------------------------"
- echo " Set VTK_DIR environment variable"
- echo " --------------------------------"
- echo
- read vtkdirVariable
+ while [ ! -e "$vtkdirVariable" ]
+ do
+ echo
+ echo " --------------------------------"
+ echo " Set VTK_DIR environment variable"
+ echo " --------------------------------"
+ echo
+ read vtkdirVariable
+ if [ ! -e "$vtkdirVariable" ]
+ then
+ echo $vtkdirVariable is NOT a valid directory
+ fi
+ done
done
echo "you said [" $vtkdirVariable "]"
latexCompilerVariable=""
while [ "$latexCompilerVariable" = "" ]
do
- echo
- echo " ---------------------------------------"
- echo " Set LATEX_COMPILER environment variable"
- echo " ---------------------------------------"
- echo
- read latexCompilerVariable
+ while [ ! -f "$latexCompilerVariable" ]
+ do
+ echo
+ echo " ---------------------------------------"
+ echo " Set LATEX_COMPILER environment variable"
+ echo " ---------------------------------------"
+ echo
+ read latexCompilerVariable
+ if [ ! -e "$latexCompilerVariable" ]
+ then
+ echo $latexCompilerVariable is NOT a valid file
+ fi
+ done
done
echo "you said [" $latexCompilerVariable "]"
echo $buildType
echo --gdcmVersion--
echo $gdcmVersion
- echo --sourcesFrom--
- echo $sourcesFrom
+# echo --sourcesFrom--
+# echo $sourcesFrom
# echo --scriptDir--
# echo $scriptDir
# echo --start_point--
mkdir $binDir
fi
-if [ -f $installPrefix/share/creatools_third_party_library_config.sh ]
-then
- rm $installPrefix/share/creatools_third_party_library_config.sh
-fi
# the following stupid test is used at debug time; Please don't remove!
if [ true = true ]
cp tth $installPrefix/bin
fi
+
#deal with create creatools_third_party_libraries_config.sh
+if [ -f $installPrefix/share/creatools_third_party_library_config.sh ]
+then
+ rm $installPrefix/share/creatools_third_party_library_config.sh
+fi
+
+if [ ! -e $installPrefix/share ]
+then
+ mkdir $installPrefix/share
+fi
touch $installPrefix/share/creatools_third_party_library_config.sh
chmod 755 $installPrefix/share/creatools_third_party_library_config.sh