File: INSTALL.sh

package info (click to toggle)
dh-haskell 0.6.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 76 kB
  • sloc: perl: 141; sh: 27; makefile: 3
file content (11 lines) | stat: -rwxr-xr-x 203 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
git config alias.root '!pwd'
GIT_DIR=$(git root)/.git

cat << 'EOF' > "$GIT_DIR/hooks/pre-commit"
#!/bin/sh
set -eu
$GIT_DIR/../contrib/check_perltidy
EOF

chmod +x "$GIT_DIR/hooks/pre-commit"