generate-cmdlist.sh: avoid selecting synopsis at wrong place

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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2008-11-30 17:54:31 +07:00 коммит произвёл Junio C Hamano
Родитель 539eec48f0
Коммит 16d258332e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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"},/