Remove sics dir when creating tar for testing.

r1296 | ffr | 2006-11-16 14:39:25 +1100 (Thu, 16 Nov 2006) | 2 lines
This commit is contained in:
Ferdi Franceschini
2006-11-16 14:39:25 +11:00
committed by Douglas Clowes
parent 640e71153c
commit f2b209c04a

View File

@@ -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"