generate-cmdlist.shon commit send-email: address expansion for common mailers (994d6c6)
   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
  40whatchanged
  41EOF
  42while read cmd
  43do
  44     sed -n '
  45     /NAME/,/git-'"$cmd"'/H
  46     ${
  47            x
  48            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
  49            p
  50     }' "Documentation/git-$cmd.txt"
  51done
  52echo "};"