--- trunk/www/working/scripts/2site 2010/08/16 13:00:26 99 +++ trunk/www/working/scripts/2site 2010/09/15 13:20:07 112 @@ -20,7 +20,7 @@ # # ############################################################################## - +pushd "$PWD" ############################################################################## # Configuration section # @@ -31,6 +31,15 @@ ############################################################################## # Script starts here # ############################################################################## +while getopts "d:" Option +do + case $Option in + d) thisDate="$OPTARG" + ;; + esac +done +./pack-them + # Go to www/ directory cd .. @@ -39,7 +48,9 @@ echo -n " template.html... " myDate=`sed -n '1p' working/release-data ` myVersion=`sed -n '2p' working/release-data ` -thisDate=`date '+%d/%m/%Y'` +if [ -z "$thisDate" ];then + thisDate=`date '+%d/%m/%Y'` +fi whereIsTheISO="$whereIsTheISO""$myVersion" whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz @@ -93,6 +104,7 @@ echo 'done' + ############################################################################# # # # Create news.php # @@ -410,3 +422,25 @@ rm onepage-tmp.html 2>/dev/null + + +############################################################################# +# # +# Fix download.html warning versions # +# # +############################################################################# +verLineIndex=`grep bordertable index.html | grep "$myversion"| grep '[0-9][0-9]*/[0-9][0-9]/[0-9][0-9]' |sed "s|.*"$myVersion"||" | sed 's/"]//g' | sed -n '1p'` + + +CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'` +verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"` +SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'` +sed " +s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ +s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ +" download.html > download.html.$$ && mv download.html.$$ download.html + +popd +./html2doc +./html2txt +