File: pre-commit.sh

package info (click to toggle)
dash-el 2.20.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 560 kB
  • sloc: lisp: 6,152; makefile: 39; sh: 7
file content (9 lines) | stat: -rwxr-xr-x 172 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env sh

git stash -q --keep-index
make check
RESULT=$?
[ $RESULT -eq 0 ] && make docs && git add ./README.md
git stash pop -q
[ $RESULT -ne 0 ] && exit 1
exit 0