if [ -e $generationdir ]
then
- cd $generationdir
- source creatools_install/share/creatools/Version.sh
- distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.$creatoolsMinorVersion.x/
-echo distanceAdress:
-echo $distanceAdress
+ echo generationdir:
+ echo $generationdir
+ cd $generationdir
+ mkdir GenerateBinTGZ
+ cd GenerateBinTGZ
- fileTGZ=CreaTools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion-`getDistrib`-`getDistribVersion`.tgz
- fileTGZstring=CreaTools-Bin-Release-\$creatoolsMajorVersion.\$creatoolsMinorVersion.\$creatoolsBuildVersion-\`getDistrib\`-\`getDistribVersion\`
+ ln -s $installPrefix creatools_install
+ ln -s $installPrefixThird thirdparty_install
+
+ source creatools_install/share/creatools/Version.sh
+ distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.$creatoolsMinorVersion.x/
+
+ fileTGZ=CreaTools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion-`getDistrib`-`getDistribVersion`.tgz
+ fileTGZstring=CreaTools-Bin-Release-\$creatoolsMajorVersion.\$creatoolsMinorVersion.\$creatoolsBuildVersion-\`getDistrib\`-\`getDistribVersion\`
+
+ tar -cvzf $fileTGZ creatools_install/* thirdparty_install/*
+
+ rm creatools_install
+ rm thirdparty_install
- tar -cvzf $fileTGZ creatools_install thirdparty_install
scp $fileTGZ $distanceAdress/$fileTGZ
filename_BinVersion=creatools-Linux-Bin-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh