--- trunk/www/working/scripts/2site 2010/05/20 11:24:47 46 +++ trunk/www/working/scripts/2site 2010/09/16 11:30:36 121 @@ -20,23 +20,27 @@ # # ############################################################################## - +pushd "$PWD" ############################################################################## # 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 - -############################################################################## - +whereIsTheISO=/e/clonezilla-sysresccd-"$myVersion" ############################################################################## # Script starts here # ############################################################################## +while getopts "d:n" Option +do + case $Option in + d) thisDate="$OPTARG" + ;; + n) noDoc=1;; + esac +done +./pack-them + # Go to www/ directory cd .. @@ -45,9 +49,18 @@ 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")" +if [ -z "$thisDate" ];then + thisDate=`date '+%d/%m/%Y'` +fi + +whereIsTheISO="$whereIsTheISO""$myVersion" +whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz +ISO_I686_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/clonezilla-sysresccd-i686-"$myVersion".iso | sed 's|[ \t].*||'` +ISO_I686_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` +ISO_AMD64_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/clonezilla-sysresccd-amd64-"$myVersion".iso | sed 's|[ \t].*||'` +ISO_AMD64_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` +ISO_I486_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/clonezilla-sysresccd-i486-"$myVersion".iso | sed 's|[ \t].*||'` +ISO_I486_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') isoSizeEN=$(echo "$isoSize" | sed 's|,|.|') @@ -57,7 +70,6 @@ - tr -d '\n' < working/clonezilla-sysresccd.rss | sed 's|<[tT][iI][tT][lL][eE]>|\n