mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
14 lines
423 B
Bash
Executable File
14 lines
423 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
|
|
git add patches/Makefile README.md || exit 1
|
|
break;
|
|
fi
|
|
done
|