add "-x" option for "executable only" to deply patched SICServer

r2599 | dcl | 2008-05-29 14:57:42 +1000 (Thu, 29 May 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-05-29 14:57:42 +10:00
parent 4b81f0836b
commit 55a5f2c538

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# $Revision: 1.25 $ # $Revision: 1.26 $
# $Date: 2007-05-15 02:31:22 $ # $Date: 2008-05-29 04:57:42 $
# Author: Ferdi Franceschini (ffr@ansto.gov.au) # Author: Ferdi Franceschini (ffr@ansto.gov.au)
# Last revision by $Author: dcl $ # Last revision by $Author: dcl $
@ -64,6 +64,16 @@ else
DEPLOY="YES" DEPLOY="YES"
fi fi
if [[ "$1" = "-x" ]]
then
EXEONLY="YES"
EXEPATH="/sics/server/SICServer"
shift
else
EXEONLY="NO"
EXEPATH=""
fi
if [ $# -eq 0 -o $# -gt 3 ] if [ $# -eq 0 -o $# -gt 3 ]
then then
usage 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 # Strip leading / from DESTDIR and extract to destination
if [[ "$DEPLOY" = "YES" ]] if [[ "$DEPLOY" = "YES" ]]
then then
tar -cz $TARDIR | $EXTRACT tar -cz ${TARDIR}${EXEPATH} | $EXTRACT
else else
echo "tar -cz -C $TEMPDIR $TARDIR | $EXTRACT_NODEPLOY" echo "tar -cz -C $TEMPDIR $TARDIR${EXEPATH} | $EXTRACT_NODEPLOY"
fi fi