repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
show-ref: use die_for_incompatible_opt3()
[git.git]
/
generate-hooklist.sh
blob
2f9f54eb545be2bd79c37a868dbeef96d2ddfb9f
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