summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-12-19 11:04:09 -0800
committerGerald Combs <gerald@wireshark.org>2017-01-04 17:52:04 +0000
commitf7124f64a8bafe70cb52cfeb225265d229befa66 (patch)
tree582bd61a195eb6525198adf13d341be168cc7243 /tools
parent9e7e30e6743e9336f310c281b3a54c923e73a54f (diff)
downloadwireshark-f7124f64a8bafe70cb52cfeb225265d229befa66.tar.gz
Escape opening curly braces in gen-bugnote.
Curly braces are used for attribute replacement in AsciiDoc. Change-Id: I1461ee26543dd20a9f799084a01710faef78f2d0 Reviewed-on: https://code.wireshark.org/review/19517 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-bugnote11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/gen-bugnote b/tools/gen-bugnote
index b6960a8353..e7004a53e6 100755
--- a/tools/gen-bugnote
+++ b/tools/gen-bugnote
@@ -49,14 +49,15 @@ if [ -z "$bug_id" ] ; then
exit 1
fi
-bug_title=`
- curl -s -o - "https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=$bug_id" |
- grep -i '<title>' |
- sed \
+bug_title=$(
+ curl -s -o - "https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=$bug_id" \
+ | grep -i '<title>' \
+ | sed \
-e 's:.*<title>.*ndash; ::' \
-e 's:</title>.*::' \
-e 's/[^\.]$/&./' \
- `
+ -e 's/{/\\{/' \
+ )
echo -e "* $bug_title (ws-buglink:$bug_id[])\n" \
| $recode_cmd \