From 191f93dbaaf2de8e28340ebdc32dc1b73b39de8c Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 11 Jan 2011 17:37:33 +0000 Subject: [PATCH] revert to user/group for creatools_source --- Linux/menu.sh | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/Linux/menu.sh b/Linux/menu.sh index be48f29..5918a29 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -133,12 +133,25 @@ echo linuxUserName="" while [ "$linuxUserName" == "" ] - do - echo "LINUX/MacOS User Name (mandatory!)" + do + echo "Have a look at the following line to know 'Login User Name'/'Login Group Name'" + ls -l .bashrc + echo "Login User Name (mandatory!)" read linuxUserName echo "you said : [" $linuxUserName "]" done echo +echo + + linuxGroupName="" + while [ "$linuxGroupName" == "" ] + do + echo "Have a look at the following line to know 'Login User Name'/'Login Group Name'" + echo "Login Group Name (mandatory!)" + read linuxGroupName + echo "you said : [" $linuxGroupName "]" + done +echo echo # ------------------ @@ -182,7 +195,8 @@ if [ $sourcesFrom = CVS ] then echo " CVS User Name : $cvsUserName" fi -echo " LINUX/MacOS User Name : $linuxUserName" +echo " Login User Name : $linuxUserName" +echo " Login Group Name : $linuxGroupName" echo " Build type : $buildType" echo " Gdcm version : $gdcmVersion" echo @@ -212,7 +226,8 @@ echo "installPrefix=$installPrefix" >> $configureFile echo "docgeneration=$docgeneration" >> $configureFile echo "sourcesFrom=$sourcesFrom" >> $configureFile echo "cvsUserName=$cvsUserName" >> $configureFile -echo "linuxUserName=$linuxUserName" >> $configureFile +echo "loginUserName=$linuxUserName" >> $configureFile +echo "loginGroupName=$linuxGroupName" >> $configureFile echo "buildType=$buildType" >> $configureFile echo "gdcmVersion=$gdcmVersion" >> $configureFile @@ -262,7 +277,14 @@ echo "gdcmVersion=$gdcmVersion" >> $configureFile 2) echo "========================== $i" - sh scripts/CreaTools-compile.sh + sh scripts/CreaTools-compile.sh + + # To allow (very aware) user to patch code + chown -R $generationdir/creatools_source $linuxUserName + chgrp -R $generationdir/creatools_source $linuxGroupName + # Too much time consuming + #chown -R $generationdir/creatools_source $linuxUserName + #chgrp -R $generationdir/creatools_source $linuxGroupName ;; 3) -- 2.45.1