]>
Commit | Line | Data |
---|---|---|
cfe853e6 ÆAB |
1 | #!/bin/sh |
2 | # | |
3 | # Usage: ./generate-hooklist.sh >hook-list.h | |
4 | ||
5 | cat <<EOF | |
6 | /* Automatically generated by generate-hooklist.sh */ | |
7 | ||
8 | static const char *hook_name_list[] = { | |
9 | EOF | |
10 | ||
11 | sed -n \ | |
12 | -e '/^~~~~*$/ {x; s/^.*$/ "&",/; p;}' \ | |
13 | -e 'x' \ | |
14 | <Documentation/githooks.txt | | |
15 | LC_ALL=C sort | |
16 | ||
17 | cat <<EOF | |
18 | NULL, | |
19 | }; | |
20 | EOF |