Update makesrcdist script, drop old announcements file.

This commit is contained in:
Michael Sweet 2017-10-28 12:22:37 -04:00
parent b79c23ebb4
commit f699ab9558
3 changed files with 12 additions and 59 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
.git* export-ignore
makesrcdist export-ignore
mvalidate.c export-ignore

View File

@ -1,17 +0,0 @@
Mini-XML 2.10 is now available for download from:
http://www.msweet.org/downloads.php/Mini-XML
Mini-XML 2.10 fixes some stack overflow, XML, and API issues. Changes include:
- The version number in mxml.h was wrong (Bug #532)
- The mxml.spec file was out of date (Bug #521)
- Mini-XML no longer allows malformed element names (Bug #509)
- mxmlLoad* and mxmlSAXLoad* did not properly create text nodes when
MXML_TEXT_CALLBACK was specified (Bug #531)
- mxmlDelete used a recursive algorithm which could require large amounts of
stack space depending on the file (Bug #549, CVE-2016-4570)
- mxmlWrite* used a recursive algorithm which could require large amounts of
stack space depending on the file (Bug #549, CVE-2016-4571)
Enjoy!

View File

@ -1,51 +1,18 @@
#!/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
if test $# != 1; then
echo "Usage: ./makesrcdist version"
exit 1
fi
cd /tmp
version=$1
if test $version = snapshot; then
url="https://svn.msweet.org/mxml/trunk"
else
url="svn+ssh://msweet.org/var/svn/mxml/tags/release-$version"
echo Creating tag for release...
git tag -m "Tag $version" v$version
git push origin v$version
svn copy svn+ssh://msweet.org/var/svn/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 mvalidate.c
rm -rf www
rm -rf doc/mxml-cover* doc/hires
cd ..
echo "Making .tar.gz distribution..."
tar czf mxml-$version.tar.gz mxml-$version
echo "Removing distribution directory..."
rm -rf mxml-$version
echo "Done!"
#
# End of "$Id$".
#
echo Creating mxml-$version.tar.gz...
git archive --format tar HEAD | gzip -v9 >mxml-$version.tar.gz