From a1fa6e2aff1e12c125eeb7ac151d4f6b304f7fd9 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 24 Dec 2004 00:55:16 -0500 Subject: [svn-r9716] Purpose: Feature Description: Added the deploydir feature. Platforms tested: Hand tested. --- bin/runtest | 6 ++++++ bin/snapshot | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/bin/runtest b/bin/runtest index 75e78dc..ba49faa 100755 --- a/bin/runtest +++ b/bin/runtest @@ -341,6 +341,11 @@ RUNSNAPTEST() shift SNAPCMD_OPT="$SNAPCMD_OPT deploy $1" ;; + deploydir) + # default directory for deployment. + shift + SNAPCMD_OPT="$SNAPCMD_OPT deploydir $1" + ;; *) # unknown test PRINT "$0: unknown type of test ($1)" retcode=1 @@ -420,6 +425,7 @@ RUNSNAPTEST() # skip skip this test # srcdirname use as the build-directory. # deploy deploy the built binary at directory . +# deploydir use as the default directory for deployment. SNAPTEST_CONFIG_PARSE() { while read x y ; do diff --git a/bin/snapshot b/bin/snapshot index f2b98c2..eee8bbc 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -83,6 +83,7 @@ while [ $# -gt 0 ] ; do cmd="" ;; deploy) + # deploy the built binary. shift if [ $# -lt 1 ]; then echo "deploy missing" @@ -93,6 +94,17 @@ while [ $# -gt 0 ] ; do cmddeploy="deploy" DEPLOYDIRNAME="$1" ;; + deploydir) + # default directory for deployment. + shift + if [ $# -lt 1 ]; then + echo "deploydir missing" + errcode=1 + cmd="help" + break + fi + deploydir="$1" + ;; test) cmdtest="test" cmd="" @@ -199,7 +211,7 @@ if [ "$cmd" = help ]; then set - cat <] + [clean] [distclean] [echo] [deploy ] [deploydir ] [zlib ] [archive ] [srcdirname ] [op-configure