config.mak.dev: fix a typo
[git/gitster.git] / generate-hooklist.sh
blob2f9f54eb545be2bd79c37a868dbeef96d2ddfb9f
1 #!/bin/sh
3 # Usage: ./generate-hooklist.sh >hook-list.h
5 cat <<EOF
6 /* Automatically generated by generate-hooklist.sh */
8 static const char *hook_name_list[] = {
9 EOF
11 sed -n \
12 -e '/^~~~~*$/ {x; s/^.*$/ "&",/; p;}' \
13 -e 'x' \
14 <Documentation/githooks.txt |
15 LC_ALL=C sort
17 cat <<EOF
18 NULL,
20 EOF