i=999
-while [ $i != 9 ]
+while [ "$i" != 9 ]
do
echo
echo
else
suitable="NO"
fi
-
+ if [ "$suitable" = "YES" ]
+ then
+ source scripts/CreaTools-configure.sh
+ fi
+
if [ "$suitable" = "NO" ]
then
echo
echo
# ------------------
- linuxUserName=""
- while [ "$linuxUserName" == "" ]
+ loginUserName=""
+ while [ "$loginUserName" == "" ]
do
echo "Have a look at the following line to know 'Login User Name'/'Login Group Name'"
ls -l menu.sh
echo "Login User Name (mandatory!)"
- read linuxUserName
- echo "you said : [" $linuxUserName "]"
+ read loginUserName
+ echo "you said : [" $loginUserName "]"
done
echo
echo
- linuxGroupName=""
- while [ "$linuxGroupName" == "" ]
+ loginGroupName=""
+ while [ "$loginGroupName" == "" ]
do
#echo "Have a look at the following line to know 'Login User Name'/'Login Group Name'"
#echo "Login Group Name (mandatory!)"
echo "Login Group Name (mandatory!)"
- read linuxGroupName
- echo "you said : [" $linuxGroupName "]"
+ read loginGroupName
+ echo "you said : [" $loginGroupName "]"
done
echo
echo
then
echo " CVS User Name : $cvsUserName"
fi
- echo " Login User Name : $linuxUserName"
- echo " Login Group Name : $linuxGroupName"
+ echo " Login User Name : $loginUserName"
+ echo " Login Group Name : $loginGroupName"
echo " Build type : $buildType"
echo " Gdcm version : $gdcmVersion"
echo
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
echo "cvsUserName=$cvsUserName" >> $configureFile
- echo "loginUserName=$linuxUserName" >> $configureFile
- echo "loginGroupName=$linuxGroupName" >> $configureFile
+ echo "loginUserName=$loginUserName" >> $configureFile
+ echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile
echo "gdcmVersion=$gdcmVersion" >> $configureFile
3)
echo "========================== 3"
+ source scripts/CreaTools-configure.sh
sh scripts/CreaTools-compile.sh
# To allow (*very* aware) user to patch code, later
- chown -R $linuxUserName $generationdir/creatools_source
- chgrp -R $linuxGroupName $generationdir/creatools_source
+
+ chown -R $loginUserName $generationdir/creatools_source
+ chgrp -R $loginGroupName $generationdir/creatools_source
# Too much time consuming
- #chown -R $linuxUserName $generationdir/creatools_source
- #chgrp -R $linuxGroupName $generationdir/creatools_source
+ #chown -R $loginUserName $generationdir/creatools_source
+ #chgrp -R $loginGroupName $generationdir/creatools_source
;;
4)
;;
*)
- echo "Your answer must be in {0, 1, 2, 3, 4, 5, 9} (was $i)"
+ echo "Your answer must be in {0, 1, 2, 3, 4, 5, 9} (was [ $i ])"
;;
esac