Skip to content

Commit

Permalink
generate-cmdlist: style cleanups.
Browse files Browse the repository at this point in the history
Instead of giving multiple commands concatenated with semicolon
to sed, write them on separate lines.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Mar 20, 2006
1 parent ad52e77 commit fd662dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions generate-cmdlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "};"

0 comments on commit fd662dd

Please sign in to comment.