2013-12-22 00:38:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Installation: ln -s ../../precommit-hook.sh .git/hooks/pre-commit
|
|
|
|
|
|
|
|
git diff --cached --name-status | while read status file; do
|
2014-07-13 01:32:09 +02:00
|
|
|
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/ ]] || [[ "$file" =~ ^debian/changelog ]]; then
|
2013-12-22 00:38:52 +01:00
|
|
|
echo ""
|
2014-07-11 18:51:03 +02:00
|
|
|
echo "*** UPDATING AUTOGENERATED FILES ***"
|
2013-12-22 00:38:52 +01:00
|
|
|
echo ""
|
2014-07-11 19:34:33 +02:00
|
|
|
debian/tools/patchupdate.py || exit 1
|
2014-07-29 02:33:30 +02:00
|
|
|
git add patches/Makefile README.md DEVELOPER.md || exit 1
|
2013-12-22 00:38:52 +01:00
|
|
|
break;
|
|
|
|
fi
|
|
|
|
done
|