0
0
mirror of https://gitlab.winehq.org/wine/wine-staging.git synced 2025-01-28 22:04:43 -08:00
wine-staging/precommit-hook.sh

13 lines
376 B
Bash
Executable File

#!/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
break;
fi
done