--- trunk/www/working/scripts/2site 2010/08/16 17:02:25 100 +++ trunk/www/working/scripts/2site 2010/09/14 19:24:13 106 @@ -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