--- trunk/www/working/scripts/2site 2010/05/20 15:43:26 49 +++ trunk/www/working/scripts/2site 2010/09/16 13:06:07 122 @@ -20,20 +20,28 @@ # # ############################################################################## - +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 # ############################################################################## +noDoc=1 +while getopts "d:n" Option +do + case $Option in + d) thisDate="$OPTARG" + ;; + n) unset noDoc;; + esac +done +./pack-them + # Go to www/ directory cd .. @@ -42,9 +50,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|,|.|') @@ -53,8 +70,24 @@ # tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|') +############################################################################# +# +# Copy RSS feed to trunk. No manipulation!!! +# +############################################################################# +pwd +cd working +cp clonezilla-sysresccd.rss .. +cd .. + +############################################################################# +# +# Create template.html +# +############################################################################# + tr -d '\n' < working/clonezilla-sysresccd.rss | sed 's|<[tT][iI][tT][lL][eE]>|\n