aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT/unwrap
blob: 535209aee23d96217ce33a0582b7548de4182604 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# $Id: unwrap,v 1.1 1996/02/07 14:35:43 peter Exp $
#
#   unwrap - extract the combined package (created with wrap)

# move the file to a new name with an extension
rm -rf $1.cvswrap
mv $1 $1.cvswrap

# untar the file

if `gzip -t $1.cvswrap > /dev/null 2>&1`
then
    zcat -d $1.cvswrap | tar --preserve --sparse -x -f -
else
    tar --preserve -x -f $1.cvswrap
fi

# remove the original
rm -rf $1.cvswrap