04d54677dc
* Makefile.in: - from cygwin: add -no-undefined to the library link line * conftools/get-version.sh: (new file) - script to extract the version number from expat.h * configure.in: (some from the cygwin patch) - update the prereq to 2.52 instead of just 2.50 - update the AC_INIT line to 2.52 standards: include the package name, version (with a lot of gunk to get this), and where to send bugs) - update the output file generation to 2.52 standards * make-release.sh: - update to use the new get-version.sh script * lib/expat.h: - from cygwin: add a little define for CYGWIN
62 lines
1.5 KiB
Bash
Executable File
62 lines
1.5 KiB
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# make-release.sh: make an Expat release
|
|
#
|
|
# USAGE: make-release.sh tagname
|
|
#
|
|
# Note: tagname may be HEAD to just grab the head revision (e.g. for testing)
|
|
#
|
|
|
|
if test $# != 1; then
|
|
echo "USAGE: $0 tagname"
|
|
exit 1
|
|
fi
|
|
|
|
tmpdir=expat-release.$$
|
|
if test -e $tmpdir; then
|
|
echo "ERROR: oops. chose the $tmpdir subdir, but it exists."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Checking out into temporary area: $tmpdir"
|
|
cvs -d :pserver:anonymous@cvs.expat.sourceforge.net:/cvsroot/expat export -r "$1" -d $tmpdir expat || exit 1
|
|
|
|
echo ""
|
|
echo "----------------------------------------------------------------------"
|
|
echo "Preparing $tmpdir for release (running buildconf.sh)"
|
|
(cd $tmpdir && ./buildconf.sh) || exit 1
|
|
|
|
# figure out the release version
|
|
vsn="`$tmpdir/conftools/get-version.sh $tmpdir/lib/expat.h`"
|
|
|
|
echo ""
|
|
echo "Release version: $vsn"
|
|
|
|
distdir=expat-$vsn
|
|
if test -e $distdir; then
|
|
echo "ERROR: for safety, you must manually remove $distdir."
|
|
rm -rf $tmpdir
|
|
exit 1
|
|
fi
|
|
mkdir $distdir || exit 1
|
|
|
|
echo ""
|
|
echo "----------------------------------------------------------------------"
|
|
echo "Building $distdir based on the MANIFEST:"
|
|
files="`sed -e 's/[ ]:.*$//' $tmpdir/MANIFEST`"
|
|
for file in $files; do
|
|
echo "Copying $file..."
|
|
(cd $tmpdir && cp -Pp $file ../$distdir) || exit 1
|
|
done
|
|
|
|
echo ""
|
|
echo "----------------------------------------------------------------------"
|
|
echo "Removing (temporary) checkout directory..."
|
|
rm -rf $tmpdir
|
|
|
|
tarball=$distdir.tar.gz
|
|
echo "Constructing $tarball..."
|
|
tar cf - $distdir | gzip -9 > $tarball
|
|
|
|
echo "Done."
|