generate-cmdlist.shon commit Fix linking for not-so-clever linkers. (b75a82b)
   1#!/bin/sh
   2
   3echo "/* Automatically generated by $0 */
   4struct cmdname_help
   5{
   6    char name[16];
   7    char help[64];
   8};
   9
  10struct cmdname_help common_cmds[] = {"
  11
  12sort <<\EOF |
  13add
  14apply
  15bisect
  16branch
  17checkout
  18cherry-pick
  19clone
  20commit
  21diff
  22fetch
  23grep
  24init-db
  25log
  26merge
  27mv
  28prune
  29pull
  30push
  31rebase
  32reset
  33revert
  34rm
  35show
  36show-branch
  37status
  38tag
  39verify-tag
  40EOF
  41while read cmd
  42do
  43     sed -n '
  44     /NAME/,/git-'"$cmd"'/H
  45     ${
  46            x
  47            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
  48            p
  49     }' "Documentation/git-$cmd.txt"
  50done
  51echo "};"