mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
14 lines
417 B
Bash
14 lines
417 B
Bash
|
#!/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" =~ ^patch-list-template.diff$ ]]; then
|
||
|
echo ""
|
||
|
echo "*** GENERATING patch-list.patch ***"
|
||
|
echo ""
|
||
|
./generate-patchlist.sh > patches/patch-list.patch || exit 1
|
||
|
git add patches/patch-list.patch || exit 1
|
||
|
break;
|
||
|
fi
|
||
|
done
|