summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad52e77)
raw | patch | inline | side by side (parent: ad52e77)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 20 Mar 2006 07:54:45 +0000 (23:54 -0800) | ||
committer | Junio 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>
to sed, write them on separate lines.
Signed-off-by: Junio C Hamano <junkio@cox.net>
generate-cmdlist.sh | patch | blob | history |
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 76ba49c88c9ed28c737eace854dec1141f9f60ee..6c59dbd68fc15ddd392086d375c8ecfc35e30c1a 100755 (executable)
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
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 "};"