aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-03-17 23:59:21 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-03-17 23:59:21 +0000
commit655e4aeecda020effc7909bffeb0f0f920b50101 (patch)
tree084fd5cdc75a212b2d4ed65eabd0e00fee6318f7
parent832013cdfa2192009e2c5c71509e3cad77dc8cc5 (diff)
downloadgcc-655e4aeecda020effc7909bffeb0f0f920b50101.zip
gcc-655e4aeecda020effc7909bffeb0f0f920b50101.tar.gz
gcc-655e4aeecda020effc7909bffeb0f0f920b50101.tar.bz2
update_web_docs: Don't strip leading -r from argument following -r...
* update_web_docs: Don't strip leading -r from argument following -r, or leading -d from argument following -d. Bug pointed out by Matt Kraai. From-SVN: r40590
-rw-r--r--maintainer-scripts/ChangeLog4
-rwxr-xr-xmaintainer-scripts/update_web_docs4
2 files changed, 6 insertions, 2 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index 1f4cedc..752d70d 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,5 +1,9 @@
2001-03-17 Joseph S. Myers <jsm28@cam.ac.uk>
+ * update_web_docs: Don't strip leading -r from argument following
+ -r, or leading -d from argument following -d. Bug pointed out by
+ Matt Kraai.
+
* update_web_docs: Handle -r and -d options to generate docs for a
release or branch in a subdirectory. Determine names of G77 news
and bugs files and contributors file after updated docs have been
diff --git a/maintainer-scripts/update_web_docs b/maintainer-scripts/update_web_docs
index cfaf80f..bb67366 100755
--- a/maintainer-scripts/update_web_docs
+++ b/maintainer-scripts/update_web_docs
@@ -21,7 +21,7 @@ while [ $# -gt 0 ]; do
RELEASE="${1#-r}"
if [ -z "$RELEASE" ]; then
shift
- RELEASE="${1#-r}"
+ RELEASE="$1"
if [ -z "$RELEASE" ]; then
echo "No release specified with -r" >&2
exit 1
@@ -36,7 +36,7 @@ while [ $# -gt 0 ]; do
SUBDIR="${1#-d}"
if [ -z "$SUBDIR" ]; then
shift
- SUBDIR="${1#-d}"
+ SUBDIR="$1"
if [ -z "$SUBDIR" ]; then
echo "No subdirectory specified with -d" >&2
exit 1