2
## Copyright (C) 2004 Aaron Bentley
4
## See the file "COPYING" for further information about
5
## the copyright and warranty status of this work.
9
# executes the command ("$@" are the arguments after the command name)
12
# scan through the parameters, finding the CHANGESET parameter
14
until [ -z "$1" ] # Until all parameters used up...
16
if expr $1 : '-' > /dev/null ; then
21
tmpdir=`aba_mktempdir`
22
tar -x -z --strip-path=1 -f "$1" -C "$tmpdir"
23
if [ "$?" != "0" ] ; then
27
parms="$parms $tmpdir"
38
tla apply-changeset $parms
40
if [ ! -z "$tmpdir" ] ; then
46
# one-liner description for aba help
49
aba_desc $(basename $0) "apply a whole-tree changeset (directory or tar.gz)"
52
# short help for aba command -h, --help
55
tla apply-changeset -h
56
echo "This is the aba version and additionally accepts"
57
echo "a tar.gz as the CHANGESET parameter, which is then"
58
echo "unpacked transparently."
62
# extended help for aba command -H or aba help command
65
tla apply-changeset -H
66
echo "This is the aba version and additionally accepts"
67
echo "a tar.gz as the CHANGESET parameter, which is then"
68
echo "unpacked transparently."
74
# arch-tag: abb83fcf-a20b-4bbc-9ec0-24123dc5054a