From f699ab95581584d5cd595bc4e0ec17da7951a5ed Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Sat, 28 Oct 2017 12:22:37 -0400 Subject: [PATCH] Update makesrcdist script, drop old announcements file. --- .gitattributes | 3 +++ ANNOUNCEMENT | 17 ----------------- makesrcdist | 51 +++++++++----------------------------------------- 3 files changed, 12 insertions(+), 59 deletions(-) create mode 100644 .gitattributes delete mode 100644 ANNOUNCEMENT diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..767237e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.git* export-ignore +makesrcdist export-ignore +mvalidate.c export-ignore diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT deleted file mode 100644 index d2783ac..0000000 --- a/ANNOUNCEMENT +++ /dev/null @@ -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! diff --git a/makesrcdist b/makesrcdist index 2fa96df..387c31c 100755 --- a/makesrcdist +++ b/makesrcdist @@ -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 - -if test $version = snapshot; then - url="https://svn.msweet.org/mxml/trunk" -else - url="svn+ssh://msweet.org/var/svn/mxml/tags/release-$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..." +version=$1 -rm -f makesrcdist TODO mvalidate.c -rm -rf www -rm -rf doc/mxml-cover* doc/hires -cd .. +echo Creating tag for release... +git tag -m "Tag $version" v$version +git push origin v$version -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