--- trunk/www/working/scripts/2site 2010/09/14 19:24:13 106 +++ trunk/www/working/scripts/2site 2010/09/16 13:06:07 122 @@ -20,7 +20,7 @@ # # ############################################################################## - +pushd "$PWD" ############################################################################## # Configuration section # @@ -31,11 +31,13 @@ ############################################################################## # Script starts here # ############################################################################## -while getopts "d:" Option +noDoc=1 +while getopts "d:n" Option do case $Option in d) thisDate="$OPTARG" ;; + n) unset noDoc;; esac done ./pack-them @@ -68,6 +70,23 @@ # 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|g' | sed 's|</[pP][uU][bB][Dd][aA][tT][eE]>|</pubDate>\n|g' | grep '<title>' > /tmp/iaa.$$ @@ -148,7 +167,7 @@ sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$ sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$ sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d' >> p1.$$ -sed '/<!--seperator-->/d' p1.$$ > 404.html +sed '/<!--seperator-->/d' p1.$$ | sed "s|myVersion|"$myVersion"|g" > 404.html rm *.$$ xxx.html echo 'done' @@ -439,3 +458,13 @@ 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 +else + echo + echo " **** NOT HANDLING DOCS ****" +fi +