diff options
author | Ralph Giles <ralph.giles@artifex.com> | 2008-06-12 00:21:58 +0000 |
---|---|---|
committer | Ralph Giles <ralph.giles@artifex.com> | 2008-06-12 00:21:58 +0000 |
commit | a70eca27a93d4eb088d87f830e811081fa31ec9b (patch) | |
tree | 702cd86ce4e4878bb4383d9dafd0f633e9b8e0bd /tools | |
parent | f333ed64aa251089e632c0e863af926114f82131 (diff) |
Check a series of the most recent ghostpcl build directories for the
latest automatic regression baseline in case clusterpush is invoked
when the latest regression is still running.
Also port changes from the version in the gs tree.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3088 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/clusterpush.sh | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/tools/clusterpush.sh b/tools/clusterpush.sh index 050d11a5b..6d73d43e3 100755 --- a/tools/clusterpush.sh +++ b/tools/clusterpush.sh @@ -8,7 +8,11 @@ DEST=$USER # try to use the same directory name on the cluster TARGET=`basename $PWD` if test -z "$TARGET"; then - TARGET='ghostpcl' + if test -d gs; then + TARGET='ghostpcl' + else + TARGET='gs' + fi fi # try get the current revision @@ -19,7 +23,7 @@ fi echo "Pushing to $DEST/$TARGET on the cluster..." rsync -avz \ - --exclude .svn \ + --exclude .svn --exclude .git \ --exclude bin --exclude obj --exclude debugobj \ --exclude main/obj --exclude main/debugobj \ --exclude language_switch/obj --exclude language_switch/obj \ @@ -28,10 +32,18 @@ rsync -avz \ --exclude ufst --exclude ufst-obj \ ./* $HOST:$DEST/$TARGET -echo -n "Copying regression baseline" -LATEST=`ssh $HOST ls regression \| \ - egrep 'ghostpcl-r[0-9]+\+[0-9]+' \| sort -r \| head -1` -echo " from $LATEST..." +echo -n "Copying regression baseline..." +if test -d src; then + LATEST='gs' +else + LATEST=`ssh tticluster.com 'for file in \`ls regression |\ + egrep ghostpcl-r[0-9]+\+[0-9]+ | sort -r | head\`; do\ + if test -r regression/$file/reg_baseline.txt; then\ + echo $file; break;\ + fi;\ + done'` +fi +echo "from $LATEST..." ssh $HOST "cp regression/$LATEST/reg_baseline.txt $DEST/$TARGET/" echo "Queuing regression test..." |