SCM Repository
View of /sml/trunk/config/unpack.sh
Parent Directory
|
Revision Log
Revision 2 -
(download)
(as text)
(annotate)
Sat Oct 4 23:33:09 1997 UTC (23 years, 3 months ago) by monnier
File size: 543 byte(s)
Sat Oct 4 23:33:09 1997 UTC (23 years, 3 months ago) by monnier
File size: 543 byte(s)
Initial revision
#!/bin/sh # # unpack object src-path obj-src tar-file # OBJECT=$1 SRCDIR=$2 SRCPATH=$SRCDIR/$3 TARFILE=$4 if [ ! -d $SRCPATH ]; then if [ -r $TARFILE.Z ]; then cd $SRCDIR echo "unpacking $OBJECT source files" zcat $TARFILE.Z | tar -xf - elif [ -r $TARFILE ]; then cd $SRCDIR echo "unpacking $OBJECT source files" tar -xf $TARFILE else echo "!!! the $OBJECT source files are missing" exit 1 fi if [ ! -d $SRCPATH ]; then echo "!!! unable to unpack $OBJECT source files" exit 1 fi fi exit 0
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |