--- trunk/www/working/scripts/2site 2010/09/15 13:20:07 112 +++ trunk/www/working/scripts/2site 2010/09/16 11:30:36 121 @@ -31,11 +31,12 @@ ############################################################################## # Script starts here # ############################################################################## -while getopts "d:" Option +while getopts "d:n" Option do case $Option in d) thisDate="$OPTARG" ;; + n) noDoc=1;; esac done ./pack-them @@ -148,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' @@ -441,6 +442,8 @@ " download.html > download.html.$$ && mv download.html.$$ download.html popd -./html2doc -./html2txt +if [ -z "$noDoc" ];then + ./html2doc + ./html2txt +fi