diff options
-rwxr-xr-x | generate-cmdlist.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh index 76ba49c88c..6c59dbd68f 100755 --- a/generate-cmdlist.sh +++ b/generate-cmdlist.sh @@ -41,8 +41,12 @@ whatchanged EOF while read cmd do - sed -n "/NAME/,/git-$cmd/H; - \$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p;}" \ - "Documentation/git-$cmd.txt" + sed -n ' + /NAME/,/git-'"$cmd"'/H + ${ + x + s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ + p + }' "Documentation/git-$cmd.txt" done echo "};" |