#!/bin/sh

#set -x

. ../vsn.mk

echo tagging and packing release ${YAWS_VSN} 

CVS_RSH=ssh
Y=`echo ${YAWS_VSN} | sed 's/\./-/g'`

if [ ! -f ./make-release ]; then
    echo "need to be in scripts dir"; exit 1;
fi


cd ../..

cvs tag -F yaws-${Y}

rm -rf tmp 2> /dev/null
mkdir tmp

cvs export -d tmp -r yaws-$Y .
cd tmp
mv yaws yaws-${YAWS_VSN}
ln -s yaws-${YAWS_VSN} yaws
tar cfz  yaws-${YAWS_VSN}.tar.gz yaws  yaws-${YAWS_VSN}

#mv yaws-${YAWS_VSN}.tar.gz ..
#cd ..

echo release resides in `pwd`/yaws-${YAWS_VSN}.tar.gz 



