Move generate-patchlist.sh script into folder debian/tools, integrate patch-list-template.diff into the shell script

This commit is contained in:
Sebastian Lackner
2014-03-04 23:35:20 +01:00
parent 9fd0a6eb9d
commit 2f7523bffe
5 changed files with 30 additions and 29 deletions

View File

@ -2,11 +2,11 @@
# Installation: ln -s ../../precommit-hook.sh .git/hooks/pre-commit
git diff --cached --name-status | while read status file; do
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^patch-list-template.diff$ ]]; then
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/generate-patchlist.sh$ ]]; then
echo ""
echo "*** GENERATING patch-list.patch ***"
echo ""
./generate-patchlist.sh > patches/patch-list.patch || exit 1
debian/tools/generate-patchlist.sh > patches/patch-list.patch || exit 1
git add patches/patch-list.patch || exit 1
break;
fi