diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-10-26 12:26:17 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-10-26 12:26:17 +0200 |
commit | 9038a1de78d8ef4170abfa201167a690aeaf0b02 (patch) | |
tree | 13cd37459e77266cf7d586740d883035f19f0a9f /maintainer-scripts | |
parent | abb967da1c0d6deb98de488213aaaa06a785adc5 (diff) | |
download | gcc-9038a1de78d8ef4170abfa201167a690aeaf0b02.zip gcc-9038a1de78d8ef4170abfa201167a690aeaf0b02.tar.gz gcc-9038a1de78d8ef4170abfa201167a690aeaf0b02.tar.bz2 |
gcc_release (error, inform): Use $@ instead of $1.
* gcc_release (error, inform): Use $@ instead of $1.
(build_sources): Check for ^[[:blank:]]*GCC in both index.html
and changes.html, rather than for GCC in one and ^GCC in another one.
From-SVN: r265526
Diffstat (limited to 'maintainer-scripts')
-rw-r--r-- | maintainer-scripts/ChangeLog | 6 | ||||
-rwxr-xr-x | maintainer-scripts/gcc_release | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index 0259aab..db6cffe 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,9 @@ +2018-10-26 Jakub Jelinek <jakub@redhat.com> + + * gcc_release (error, inform): Use $@ instead of $1. + (build_sources): Check for ^[[:blank:]]*GCC in both index.html + and changes.html, rather than for GCC in one and ^GCC in another one. + 2018-05-03 Jakub Jelinek <jakub@redhat.com> PR other/85622 diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 440b0ba..bfb6b03 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -45,18 +45,18 @@ # Functions ######################################################################## -# Issue the error message given by $1 and exit with a non-zero +# Issue the error message given by $@ and exit with a non-zero # exit code. error() { - echo "gcc_release: error: $1" + echo "gcc_release: error: $@" exit 1 } -# Issue the informational message given by $1. +# Issue the informational message given by $@. inform() { - echo "gcc_release: $1" + echo "gcc_release: $@" } # Issue a usage message explaining how to use this script. @@ -128,12 +128,12 @@ build_sources() { previndex="http:\/\/gcc.gnu.org\/gcc-`expr ${RELEASE_MAJOR} - 1`\/index.html" sed -n -e "/^${thisindex}/,/^${thischanges}/p" NEWS |\ sed -n -e "/Release History/,/References and Acknowledgments/p" |\ - grep -q "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\ + grep -q "^[[:blank:]]*GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\ error "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR} not mentioned "\ "in gcc-${RELEASE_MAJOR}/index.html" sed -n -e "/^${thischanges}/,/^${previndex}/p" NEWS |\ - grep -q "^GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\ + grep -q "^[[:blank:]]*GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\ error "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR} not mentioned "\ "in gcc-${RELEASE_MAJOR}/changes.html" |