Revision 816f290752cb43c88e31ea1a9e06ec84d559add3 authored by Junio C Hamano on 07 December 2012, 22:18:55 UTC, committed by Junio C Hamano on 07 December 2012, 23:17:21 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 00704e4
generate-cmdlist.sh
#!/bin/sh
echo "/* Automatically generated by $0 */
struct cmdname_help {
char name[16];
char help[80];
};
static struct cmdname_help common_cmds[] = {"
sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
sort |
while read cmd
do
sed -n '
/^NAME/,/git-'"$cmd"'/H
${
x
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", N_("\1")},/
p
}' "Documentation/git-$cmd.txt"
done
echo "};"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...