2003-06-03 20:28:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-05-21 12:18:12 +00:00
|
|
|
# makesrcdist - make a source distribution of mxml.
|
2003-06-03 20:28:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
echo "Getting distribution..."
|
|
|
|
|
|
|
|
CVS_RSH=ssh; export CVS_RSH
|
|
|
|
MAINTAINER=mike
|
|
|
|
|
|
|
|
cd /tmp
|
2004-05-21 02:59:52 +00:00
|
|
|
cvs -q -d$MAINTAINER@tango.easysw.com:/development/cvs get mxml
|
2003-06-03 20:28:21 +00:00
|
|
|
|
|
|
|
if test $# = 0; then
|
|
|
|
echo -n "Version number for distribution? "
|
|
|
|
read version
|
|
|
|
else
|
|
|
|
version=$1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf mxml-$version
|
|
|
|
mv mxml mxml-$version
|
|
|
|
cd mxml-$version
|
|
|
|
|
2004-05-21 12:18:12 +00:00
|
|
|
if test x$version != xsnapshot; then
|
2003-06-03 20:28:21 +00:00
|
|
|
echo "Tagging release..."
|
|
|
|
|
|
|
|
tag=`echo v$version | tr '.' '_'`
|
|
|
|
|
|
|
|
cvs tag -F $tag
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Removing CVS directories..."
|
|
|
|
|
|
|
|
find . -name .cvsignore -exec rm -f '{}' \;
|
|
|
|
find . -name CVS -exec rm -rf '{}' \;
|
|
|
|
|
|
|
|
rm makesrcdist
|
2004-05-21 02:59:52 +00:00
|
|
|
rm -rf www
|
2003-06-03 20:28:21 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo "Making UNIX distribution..."
|
|
|
|
|
|
|
|
gtar czf mxml-$version.tar.gz mxml-$version
|
|
|
|
|
|
|
|
echo "Removing distribution directory..."
|
|
|
|
|
|
|
|
#rm -rf mxml-$version
|
|
|
|
|
|
|
|
echo "Done!"
|