generate-cmdlist: style cleanups.
authorJunio C Hamano <junkio@cox.net>
Mon, 20 Mar 2006 07:54:45 +0000 (23:54 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 20 Mar 2006 07:54:45 +0000 (23:54 -0800)
Instead of giving multiple commands concatenated with semicolon
to sed, write them on separate lines.

Signed-off-by: Junio C Hamano <junkio@cox.net>
generate-cmdlist.sh

index 76ba49c..6c59dbd 100755 (executable)
@@ -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 "};"