Initial version of new dependency based patch system.

This commit is contained in:
Sebastian Lackner
2014-07-11 18:51:03 +02:00
parent 9d3369d7a6
commit 42afbafa33
32 changed files with 582 additions and 175 deletions

View File

@ -2,12 +2,12 @@
# 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/generate-patchlist.sh$ ]]; then
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/ ]]; then
echo ""
echo "*** GENERATING patch-list.patch ***"
echo "*** UPDATING AUTOGENERATED FILES ***"
echo ""
debian/tools/generate-patchlist.sh > patches/patch-list.patch || exit 1
git add patches/patch-list.patch || exit 1
debian/tools/patchupdate.py > patches/Makefile || exit 1
git add patches/Makefile || exit 1
break;
fi
done