mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 08:37:50 -04:00
22 lines
462 B
Text
22 lines
462 B
Text
|
|
#! /bin/sh
|
||
|
|
#
|
||
|
|
# unwrap - extract the combined package (created with wrap)
|
||
|
|
#
|
||
|
|
#ident "@(#)cvs/examples:$Name: $:$Id: unwrap,v 1.1 1995/11/14 23:20:30 woods Exp $"
|
||
|
|
|
||
|
|
# 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
|
||
|
|
gzcat -d $1.cvswrap | gnutar --preserve --sparse -x -f -
|
||
|
|
else
|
||
|
|
gnutar --preserve --sparse -x -f $1.cvswrap
|
||
|
|
fi
|
||
|
|
|
||
|
|
# remove the original
|
||
|
|
rm -rf $1.cvswrap
|