mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-17 08:25:31 +00:00
52 lines
814 B
Bash
Executable File
52 lines
814 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# "$Id$"
|
|
#
|
|
# makesrcdist - make a source distribution of mxml.
|
|
#
|
|
|
|
echo "Getting distribution..."
|
|
|
|
if test $# = 0; then
|
|
echo -n "Version number for distribution? "
|
|
read version
|
|
else
|
|
version=$1
|
|
fi
|
|
|
|
cd /tmp
|
|
|
|
if test $version = snapshot; then
|
|
url="https://svn.easysw.com/public/mxml/trunk"
|
|
else
|
|
url="https://svn.easysw.com/public/mxml/tags/release-$version"
|
|
|
|
svn copy https://svn.easysw.com/public/mxml/trunk "$url" \
|
|
-m "Tag $version" || exit 1
|
|
fi
|
|
|
|
rm -rf mxml-$version
|
|
svn export $url mxml-$version
|
|
cd mxml-$version
|
|
|
|
echo "Removing Subversion files and directories..."
|
|
|
|
rm -f makesrcdist TODO
|
|
rm -rf www
|
|
|
|
cd ..
|
|
|
|
echo "Making .tar.gz distribution..."
|
|
|
|
gtar czf mxml-$version.tar.gz mxml-$version
|
|
|
|
echo "Removing distribution directory..."
|
|
|
|
rm -rf mxml-$version
|
|
|
|
echo "Done!"
|
|
|
|
#
|
|
# End of "$Id$".
|
|
#
|