diff --git a/site_ansto/instrument/deploySICS.sh b/site_ansto/instrument/deploySICS.sh index 1aaebcbc..d7848594 100755 --- a/site_ansto/instrument/deploySICS.sh +++ b/site_ansto/instrument/deploySICS.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $Revision: 1.25 $ -# $Date: 2007-05-15 02:31:22 $ +# $Revision: 1.26 $ +# $Date: 2008-05-29 04:57:42 $ # Author: Ferdi Franceschini (ffr@ansto.gov.au) # Last revision by $Author: dcl $ @@ -64,6 +64,16 @@ else DEPLOY="YES" fi +if [[ "$1" = "-x" ]] +then + EXEONLY="YES" + EXEPATH="/sics/server/SICServer" + shift +else + EXEONLY="NO" + EXEPATH="" +fi + if [ $# -eq 0 -o $# -gt 3 ] then usage @@ -208,7 +218,7 @@ find $TARDIR -type d -exec chmod u+rwx,g+rwxs,o-w+rx {} \; # Strip leading / from DESTDIR and extract to destination if [[ "$DEPLOY" = "YES" ]] then - tar -cz $TARDIR | $EXTRACT + tar -cz ${TARDIR}${EXEPATH} | $EXTRACT else - echo "tar -cz -C $TEMPDIR $TARDIR | $EXTRACT_NODEPLOY" + echo "tar -cz -C $TEMPDIR $TARDIR${EXEPATH} | $EXTRACT_NODEPLOY" fi