--- trunk/www/working/scripts/2site 2010/08/16 17:02:25 100 +++ trunk/www/working/scripts/2site 2010/09/16 13:06:07 122 @@ -20,7 +20,7 @@ # # ############################################################################## - +pushd "$PWD" ############################################################################## # Configuration section # @@ -31,6 +31,17 @@ ############################################################################## # 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 .. @@ -39,7 +50,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 @@ -57,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