https://github.com/git/git
Revision 6de51d3b6e806ec3ca4c3441beebe780f1694e92 authored by bruce1234567 on 01 November 2014, 00:56:27 UTC, committed by bruce1234567 on 01 November 2014, 00:56:27 UTC
$ before base_present is deleted.
1 parent 4ace7ff
Raw File
Tip revision: 6de51d3b6e806ec3ca4c3441beebe780f1694e92 authored by bruce1234567 on 01 November 2014, 00:56:27 UTC
Update bc
Tip revision: 6de51d3
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 "};"
back to top