replaces %d with @, % is magic to crontab
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Tue, 20 Mar 2007 09:00:34 +0000 (09:00 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Tue, 20 Mar 2007 09:00:34 +0000 (09:00 +0000)
scripts/nightly-build.sh

index a53696d..c998144 100755 (executable)
@@ -108,7 +108,7 @@ function usage () {
   echo "Usage: $COMMAND [option] make-targets"
   echo "This is revision $REVISION"
   echo "Supported options"
-  echo " -b BASE - may include %d, then replaced with current date"
+  echo " -b BASE - may include @, then replaced with current date"
   echo " -u : uses directory given as BASE as is, even if already exists"
   echo " -e : exits (does nothing) if BASE already exists"
   echo " -d DISTRO"
@@ -160,7 +160,7 @@ function main () {
 
     ### set BASE from DISTRO, if unspecified
     [ -z "$BASE" ] && BASE=${DISTRO}
-    BASE=$(echo ${BASE} | sed -e "s,%d,${DATE},g")
+    BASE=$(echo ${BASE} | sed -e "s,@,${DATE},g")
 
     if [ -n "$EXITIFOLD" -a -d "$BASE" ] ; then
       echo "$COMMAND: -e : exits on existing base directory $BASE"