summary refs log tree commit diff
path: root/generate-cmdlist.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-19 23:54:45 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-19 23:54:45 -0800
commitfd662dd500cded4b04b1154dc77cc989a5ddc5b8 (patch)
treeabb4d1b103df04ba37d39c8a2eaff7f5313518f9 /generate-cmdlist.sh
parentad52e7708dca3ea5c295867e844d9228d1a96f36 (diff)
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-xgenerate-cmdlist.sh10
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 "};"