--- trunk/www/working/scripts/2site 2010/08/16 17:02:25 100 +++ trunk/www/working/scripts/2site 2010/09/16 11:30:36 121 @@ -20,7 +20,7 @@ # # ############################################################################## - +pushd "$PWD" ############################################################################## # Configuration section # @@ -31,6 +31,16 @@ ############################################################################## # 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 .. @@ -39,7 +49,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 @@ -137,7 +149,7 @@ sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$ sed '1,//d' working/.404.html >> p1.$$ sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d' >> p1.$$ -sed '//d' p1.$$ > 404.html +sed '//d' p1.$$ | sed "s|myVersion|"$myVersion"|g" > 404.html rm *.$$ xxx.html echo 'done' @@ -428,3 +440,10 @@ s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ " download.html > download.html.$$ && mv download.html.$$ download.html + +popd +if [ -z "$noDoc" ];then + ./html2doc + ./html2txt +fi +