--- trunk/www/working/scripts/2site 2010/05/18 14:22:00 42 +++ trunk/www/working/scripts/2site 2010/05/19 11:49:25 44 @@ -19,27 +19,31 @@ # along with Clonezilla-SysRescCD. If not, see . # #################################################################################### -cd .. -cd .. -echo 'Creating files' -echo -n " template.html... " -myDate=`sed -n '1p' working/release-data ` -myVersion=`sed -n '2p' working/release-data ` -thisDate=`date '+%d/%m/%Y'` +#################################################################################### +# Configuration section +# +# Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file +# Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz -# . "$HOME/.2site.conf" -[ -e "$whereIsTheISO" ] && isoSize=$(du -h "$whereIsTheISO" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') || { - echo " Error: The variable \"whereIsTheISO\" is invalid - Please edit your ~/.2site.conf file" -# exit 1 -} +#################################################################################### + +#################################################################################### +# Script starts here # +#################################################################################### +cd .. +cd .. +echo 'Creating files' +echo -n " template.html... " +myDate=`sed -n '1p' working/release-data ` +myVersion=`sed -n '2p' working/release-data ` +thisDate=`date '+%d/%m/%Y'` md5sum="$(echo "$whereIsTheISO" | sed 's|/[^/]*$|/md5sum.txt|')" md5sum="$(cat "$md5sum")"