From fd662dd500cded4b04b1154dc77cc989a5ddc5b8 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 19 Mar 2006 23:54:45 -0800 Subject: [PATCH] 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 --- generate-cmdlist.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh index 76ba49c8..6c59dbd6 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 "};" -- 2.11.0