mxml/makesrcdist

52 lines
826 B
Plaintext
Raw Normal View History

2003-06-03 20:28:21 +00:00
#!/bin/sh
#
2005-02-26 05:36:25 +00:00
# "$Id$"
#
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..."
if test $# = 0; then
echo -n "Version number for distribution? "
read version
else
version=$1
fi
2005-02-26 05:36:25 +00:00
cd /tmp
2003-06-03 20:28:21 +00:00
2005-02-26 05:36:25 +00:00
if test $version = snapshot; then
url="https://svn.easysw.com/public/mxml/trunk"
else
url="https://svn.easysw.com/public/mxml/tags/release-$version"
2003-06-03 20:28:21 +00:00
2005-02-26 05:36:25 +00:00
svn copy https://svn.easysw.com/public/mxml/trunk "$url" \
-m "Tag $version" || exit 1
2003-06-03 20:28:21 +00:00
fi
2005-02-26 05:36:25 +00:00
rm -rf mxml-$version
svn export $url mxml-$version
cd mxml-$version
2003-06-03 20:28:21 +00:00
2005-02-26 05:36:25 +00:00
echo "Removing Subversion files and directories..."
2003-06-03 20:28:21 +00:00
rm -f makesrcdist TODO mvalidate.c
2004-05-21 02:59:52 +00:00
rm -rf www
2003-06-03 20:28:21 +00:00
cd ..
2005-02-26 05:36:25 +00:00
echo "Making .tar.gz distribution..."
2003-06-03 20:28:21 +00:00
gtar czf mxml-$version.tar.gz mxml-$version
echo "Removing distribution directory..."
2005-02-26 05:36:25 +00:00
rm -rf mxml-$version
2003-06-03 20:28:21 +00:00
echo "Done!"
2005-02-26 05:36:25 +00:00
#
# End of "$Id$".
#