Cross Reference: mk_tarball
xref
: /
libmicro
/
mk_tarball
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
#!/
bin
/
sh
-x
0
N/A
#
0
N/A
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
0
N/A
# Use is subject to license terms.
0
N/A
#
0
N/A
#
0
N/A
# script to make tarball... args are contents to be inserted
0
N/A
#
0
N/A
0
N/A
libmicro_version
=
`
bin
/
getpid
-V`
0
N/A
case
$libmicro_version
in
0
N/A
[
0
-
9
]*)
0
N/A
;;
0
N/A
*)
0
N/A
echo
"ERROR: cannot determine libMicro version"
0
N/A
exit
1
0
N/A
esac
0
N/A
dirname
=
"libMicro-
$libmicro_version
"
0
N/A
0
N/A
here
=
`
pwd
`
0
N/A
target
=
$here
/
libMicro.tar
0
N/A
tmpdir
=/
tmp
/
libmicro
.$$
0
N/A
mkdir
-p
$tmpdir
/
$dirname
0
N/A
cp
$*
$tmpdir
/
$dirname
0
N/A
cd
$tmpdir
0
N/A
tar
cvf
$target
$dirname
0
N/A
cd
$here
0
N/A
rm
-
rf
$tmpdir