gluon/scripts/patch.sh

22 lines
488 B
Bash
Raw Normal View History

2013-12-28 14:11:59 +00:00
#!/bin/bash
set -e
shopt -s nullglob
. "$GLUONDIR"/scripts/modules.sh
2013-12-28 14:11:59 +00:00
for module in $GLUON_MODULES; do
cd "$GLUONDIR"/$module
git checkout -B patching base
2013-12-28 14:11:59 +00:00
for patch in "$GLUONDIR"/patches/$module/*.patch; do
if ! git -c user.name='Gluon Patch Manager' -c user.email='gluon@void.example.com' am --whitespace=nowarn --committer-date-is-author-date "$patch"; then
git am --abort
git checkout patched
git branch -D patching
exit 1
fi
done
2014-01-02 14:16:32 +00:00
git branch -M patched
2013-12-28 14:11:59 +00:00
done