gluon/scripts/update-patches.sh
2013-12-28 15:31:11 +01:00

16 lines
269 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 patched
rm -f "$1"/patches/$module/*.patch
mkdir -p "$1"/patches/$module
git -C "$dir" format-patch -o "$1"/patches/$module base
done