]> git.ipfire.org Git - thirdparty/git.git/blob - generate-hooklist.sh
Start the 2.46 cycle
[thirdparty/git.git] / generate-hooklist.sh
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