Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
generate-cmdlist: style cleanups.
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>
generate-cmdlist.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ad52e77
)
diff --git
a/generate-cmdlist.sh
b/generate-cmdlist.sh
index 76ba49c88c9ed28c737eace854dec1141f9f60ee..6c59dbd68fc15ddd392086d375c8ecfc35e30c1a 100755
(executable)
--- 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 "};"