mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Marks the shell scripts executable and sets nullglob so that the lack of merge drivers doesn't cause shenanigans.
13 lines
309 B
Bash
Executable File
13 lines
309 B
Bash
Executable File
#!/bin/bash
|
|
shopt -s nullglob
|
|
cd "$(dirname "$0")"
|
|
for f in *.hook; do
|
|
echo Installing hook: ${f%.hook}
|
|
cp $f ../../.git/hooks/${f%.hook}
|
|
done
|
|
for f in *.merge; do
|
|
echo Installing merge driver: ${f%.merge}
|
|
git config --replace-all merge.${f%.merge}.driver "tools/hooks/$f %P %O %A %B %L"
|
|
done
|
|
echo "Done"
|