projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad52e77
)
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
diff --git
a/generate-cmdlist.sh
b/generate-cmdlist.sh
index
76ba49c
..
6c59dbd
100755
(executable)
--- a/
generate-cmdlist.sh
+++ b/
generate-cmdlist.sh
@@
-41,8
+41,12
@@
whatchanged
EOF
while read cmd
do
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 "};"
done
echo "};"