22 lines
424 B
Bash
Executable file
22 lines
424 B
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# $Id$
|
|
# $FreeBSD: unwrap,v 1.3 1999/08/27 22:46:57 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
|