#!/bin/sh -ex
+#
+## Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
if [ $# -ne 1 -a $# -ne 2 ]; then
echo "Usage: $0 revision [destination]"
exit 1
echo "${name} != ${PACKAGE}-${VERSION}"
exit 1
fi
-RELEASE=`echo $VERSION | cut -d. -f1,2 | cut -d- -f1`
+RELEASE=`echo $VERSION | cut -d. -f1,1 | cut -d- -f1`
+NOTES_VERSION=`grep "$VERSION" doc/release-notes/release-${RELEASE}.sgml`
+if test "x$NOTES_VERSION" = "x"; then
+ echo "ERROR! Release Notes HTML version numbers do not match!"
+ exit 1
+fi
ed -s configure.ac <<EOS
g/${VERSION}-BZR/ s//${VERSION}/
w
inst $tmpdir/${name}.tar.bz2 $dst/${name}.tar.bz2
inst $tmpdir/CONTRIBUTORS $dst/CONTRIBUTORS.txt
inst $tmpdir/COPYING $dst/COPYING.txt
-inst $tmpdir/COPYRIGHT $dst/COPYRIGHT.txt
+inst $tmpdir/README $dst/README.txt
inst $tmpdir/CREDITS $dst/CREDITS.txt
inst $tmpdir/SPONSORS $dst/SPONSORS.txt
inst $tmpdir/ChangeLog $dst/ChangeLog.txt