mxml/makesrcdist

52 lines
848 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
2014-01-04 21:50:06 +00:00
url="https://svn.msweet.org/mxml/trunk"
2005-02-26 05:36:25 +00:00
else
2014-01-05 03:32:14 +00:00
url="svn+ssh://msweet.org/var/svn/mxml/tags/release-$version"
2003-06-03 20:28:21 +00:00
2014-01-05 03:32:14 +00:00
svn copy svn+ssh://msweet.org/var/svn/mxml/trunk "$url" \
2005-02-26 05:36:25 +00:00
-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
rm -rf doc/mxml-cover* doc/hires
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
2007-11-23 06:37:26 +00:00
tar czf mxml-$version.tar.gz mxml-$version
2003-06-03 20:28:21 +00:00
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$".
#