wine-staging/precommit-hook.sh

14 lines
423 B
Bash
Raw Normal View History

#!/bin/bash
# Installation: ln -s ../../precommit-hook.sh .git/hooks/pre-commit
git diff --cached --name-status | while read status file; do
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/ ]] || [[ "$file" =~ ^debian/changelog ]]; then
echo ""
echo "*** UPDATING AUTOGENERATED FILES ***"
echo ""
debian/tools/patchupdate.py || exit 1
2014-11-29 18:54:53 -08:00
git add patches/Makefile README.md || exit 1
break;
fi
done