[PATCH 1/8] generate-cmdlist.sh: avoid selecting synopsis at wrong place
- From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
- Date
- Nov 30, 2008, 10:54 UTC
- Message-ID
- <1228042478-1886-2-git-send-email-pclouds@gmail.com>
- In-Reply-To
- <1228042478-1886-1-git-send-email-pclouds@gmail.com>
In "common" man pages there is luckily no "NAME" anywhere except at beginning of documents. If there is another "NAME", sed could mis-select it and lead to common-cmds.h corruption. So better nail it at beginning of line, which would reduce corruption chance.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> --- generate-cmdlist.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh index a2913c2..75c68d9 100755 --- a/generate-cmdlist.sh +++ b/generate-cmdlist.sh @@ -14,7 +14,7 @@ sort | while read cmd do sed -n ' - /NAME/,/git-'"$cmd"'/H + /^NAME/,/git-'"$cmd"'/H ${ x s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
-- 1.6.0.3.890.g95457