diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-19 23:54:45 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-19 23:54:45 -0800 |
commit | fd662dd500cded4b04b1154dc77cc989a5ddc5b8 (patch) | |
tree | abb4d1b103df04ba37d39c8a2eaff7f5313518f9 /generate-cmdlist.sh | |
parent | ad52e7708dca3ea5c295867e844d9228d1a96f36 (diff) | |
download | git-fd662dd500cded4b04b1154dc77cc989a5ddc5b8.tar.gz |
generate-cmdlist: style cleanups.
Instead of giving multiple commands concatenated with semicolon
to sed, write them on separate lines.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'generate-cmdlist.sh')
-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 "};" |