Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/config/unpack.sh
ViewVC logotype

View of /sml/trunk/config/unpack.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 212 - (download) (as text) (annotate)
Fri Jan 15 16:19:21 1999 UTC (20 years, 9 months ago) by monnier
File size: 670 byte(s)
This commit was generated by cvs2svn to compensate for changes in r211,
which included commits to RCS files with non-trunk default branches.
#!/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
  elif [ -r $TARFILE.gz ]; then
    cd $SRCDIR
    echo "unpacking $OBJECT source files"
    gunzip -c $TARFILE.gz | tar -xf -
  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