]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - mkrelease.sh
SourceFormat Enforcement
[thirdparty/squid.git] / mkrelease.sh
index 7330c39cf1b316f80016ba8f7d506fbec8385875..b4e7560aee410f25085f2882fefcc48db403a51b 100755 (executable)
@@ -1,4 +1,12 @@
 #!/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
@@ -52,7 +60,12 @@ if [ ${name} != ${PACKAGE}-${VERSION} ]; then
        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
@@ -79,7 +92,7 @@ inst $tmpdir/${name}.tar.gz   $dst/${name}.tar.gz
 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