b05543098c
plus a couple of minor changes.. Some highlights of the new stuff that was not in the old version: - remote access support.. full checkout/commit/log/etc.. - much improved dead file support.. - speed improvements - better $CVSROOT handling - $Name$ support - support for a "cvsadmin" group to cut down rampant use of "cvs admin -o" - safer setuid/setgid support - many bugs fixed.. :-) - probably some new ones.. :-( - more that I cannot remember offhand..
22 lines
462 B
Bash
22 lines
462 B
Bash
#! /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
|