Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/tools/generate-hooklist.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / tools / generate-hooklist.sh` 33 lines ยท 494 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Usage: ./generate-hooklist.sh >hook-list.h 4 5 SOURCE_DIR="$1" 6 OUTPUT="$2" 7 8 if test -z "$SOURCE_DIR" || ! test -d "$SOURCE_DIR" || test -z "$OUTPUT" 9 then 10 echo >&2 "USAGE: $0 " 11 exit 1 12 fi 13 14 { 15 16 cat <"$OUTPUT"