]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/libMicro/mk_tarball
xnu-1456.1.26.tar.gz
[apple/xnu.git] / tools / tests / libMicro / mk_tarball
1 #!/bin/sh -x
2 #
3 # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
4 # Use is subject to license terms.
5 #
6 #
7 # script to make tarball... args are contents to be inserted
8 #
9
10 libmicro_version=`bin/getpid -V`
11 case $libmicro_version in
12 [0-9]*)
13 ;;
14 *)
15 echo "ERROR: cannot determine libMicro version"
16 exit 1
17 esac
18 dirname="libMicro-$libmicro_version"
19
20 here=`pwd`
21 target=$here/libMicro.tar
22 tmpdir=/private/tmp/libmicro.$$
23 mkdir -p $tmpdir/$dirname
24 cp $* $tmpdir/$dirname
25 cd $tmpdir
26 tar cvf $target $dirname
27 cd $here
28 rm -rf $tmpdir