2006-03-09 19:24:19 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "/* Automatically generated by $0 */
|
2011-03-16 10:08:34 +03:00
|
|
|
struct cmdname_help {
|
2006-03-09 19:24:19 +03:00
|
|
|
char name[16];
|
2006-12-14 13:31:05 +03:00
|
|
|
char help[80];
|
2006-03-09 19:24:19 +03:00
|
|
|
};
|
|
|
|
|
2007-06-13 12:42:05 +04:00
|
|
|
static struct cmdname_help common_cmds[] = {"
|
2006-03-09 19:24:19 +03:00
|
|
|
|
2007-12-02 10:39:19 +03:00
|
|
|
sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
|
|
|
|
sort |
|
2006-03-09 19:24:19 +03:00
|
|
|
while read cmd
|
|
|
|
do
|
2006-03-20 10:54:45 +03:00
|
|
|
sed -n '
|
2008-11-30 13:54:31 +03:00
|
|
|
/^NAME/,/git-'"$cmd"'/H
|
2006-03-20 10:54:45 +03:00
|
|
|
${
|
2011-08-05 17:31:29 +04:00
|
|
|
x
|
2012-04-23 16:30:24 +04:00
|
|
|
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", N_("\1")},/
|
2006-03-20 10:54:45 +03:00
|
|
|
p
|
|
|
|
}' "Documentation/git-$cmd.txt"
|
2006-03-09 19:24:19 +03:00
|
|
|
done
|
|
|
|
echo "};"
|