diff --git a/mkwaccess b/mkwaccess index ee21ede..345ca6c 100755 --- a/mkwaccess +++ b/mkwaccess @@ -1,8 +1,7 @@ #!/bin/sh -# $Id: mkwaccess,v 1.5 2012/05/24 23:12:56 tundra Exp $ +# $Id: mkwaccess,v 1.6 2012/05/25 20:22:00 tundra Exp $ -RFILES="waccess" -FILES="Makefile waccess.1 waccess-license.txt" +FILES="Makefile waccess waccess.1.gz waccess-license.txt" DIR="waccess-"$1 if [ $# -ne 1 ] @@ -11,17 +10,22 @@ exit fi -cvs co -d sources waccess -mv -v sources/* . -rm -rf sources +# Make sure target directories exist mkdir $DIR Releases -gzip *.1 -mv $RFILES $FILES $DIR -mv *.gz $DIR + +# Create release package + +gzip -c waccess.1 >waccess.1.gz +cp -pv $FILES $DIR cvs rlog waccess >$DIR/CHANGELOG.waccess + +# Create tarball and move to the releases directory + tar -czvf $DIR.tar.gz $DIR rm -rf $DIR mv $DIR.tar.gz Releases + +