gluon/scripts/patch.sh
2013-12-28 15:11:59 +01:00

15 lines
246 B
Bash
Executable File

#!/bin/bash
set -e
shopt -s nullglob
. $1/modules
for module in $GLUON_MODULES; do
dir=$1/$module
git -C $dir checkout -B patched base
if [ -z $1/patches/$module/*.patch ]; then continue; fi
git -C $dir am $1/patches/$module/*.patch
done