From f2b209c04a0147a193f090034c77ec452024f863 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Thu, 16 Nov 2006 14:39:25 +1100 Subject: [PATCH] Remove sics dir when creating tar for testing. r1296 | ffr | 2006-11-16 14:39:25 +1100 (Thu, 16 Nov 2006) | 2 lines --- site_ansto/instrument/deploySICS.sh | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/site_ansto/instrument/deploySICS.sh b/site_ansto/instrument/deploySICS.sh index 0b6142e1..078120e7 100755 --- a/site_ansto/instrument/deploySICS.sh +++ b/site_ansto/instrument/deploySICS.sh @@ -1,8 +1,8 @@ -#!/bin/sh -# $Revision: 1.11 $ -# $Date: 2006-11-16 03:05:23 $ +#!/bin/sh -x +# $Revision: 1.12 $ +# $Date: 2006-11-16 03:39:25 $ # Author: Ferdi Franceschini (ffr@ansto.gov.au) -# Last revision by $Author: dcl $ +# Last revision by $Author: ffr $ # Deploys SICServer and configuration files to # an instrument control computer. @@ -85,22 +85,22 @@ esac if [ "$TESTING" = "test" ] then -DESTHOST=${2:-ics1-test.nbi.ansto.gov.au} -DESTDIR=${3:-/usr/local}/TEST_SICS/$INSTRUMENT -# remove and recreate the temporary directory -rm -fr $TEMPDIR/$DESTDIR -mkdir -p $TEMPDIR/$DESTDIR -#copy TEST_SICS/fakeDMC and remove CVS any directories -cp -a $SRCDIR/TEST_SICS/* $TEMPDIR/$DESTDIR -rm -fr $(find $TEMPDIR/$DESTDIR -name CVS) -# step down to the sics directory -DESTDIR=$DESTDIR/sics -mkdir -p $TEMPDIR/$DESTDIR + DESTHOST=${2:-ics1-test.nbi.ansto.gov.au} + DESTDIR=${3:-/usr/local}/TEST_SICS/$INSTRUMENT + # remove and recreate the temporary directory + rm -fr $TEMPDIR/$DESTDIR + mkdir -p $TEMPDIR/$DESTDIR + #copy TEST_SICS/fakeDMC and remove CVS any directories + cp -a $SRCDIR/TEST_SICS/* $TEMPDIR/$DESTDIR + rm -fr $(find $TEMPDIR/$DESTDIR -name CVS) + # step down to the sics directory + DESTDIR=$DESTDIR + mkdir -p $TEMPDIR/$DESTDIR else -DESTDIR=${3:-/usr/local}/sics -# remove and recreate the temporary directory -rm -fr $TEMPDIR/$DESTDIR -mkdir -p $TEMPDIR/$DESTDIR + DESTDIR=${3:-/usr/local}/sics + # remove and recreate the temporary directory + rm -fr $TEMPDIR/$DESTDIR + mkdir -p $TEMPDIR/$DESTDIR fi echo "Deploying $INSTRUMENT to $DESTHOST:$DESTDIR"