]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/setup/general/jointar
3 # Written by Martin Sperl
4 # (sperl@dsn.ast.univie.ac.at)
8 if test $# -lt 3 ; then
10 Usage: `basename $0` <basedir> <SOURCE-FILES> <DESTINATION-FILS>
11 copies all files from the source-tar-files to the common
12 destination-tar-file with basedir as a common base directory.
22 while test "$#" != 2 ; do
24 Sourcefiles
="$Sourcefiles $1"
30 Destination
=/tmp
/join$$.
tar
41 for each
in $Sourcefiles ; do
43 if test `basename $each gz` != `basename $each` ; then \
44 gzip -dc ..
/..
/$each;\
52 tar -cf $Destination *
61 if test `basename $Final gz` != `basename $Final` ; then
62 gzip -c $Destination > $Final
64 cat $Destination > $Final