From b8db8c6d0081f096614713fc9ecf5d35194d6bed Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 8 Feb 2018 08:55:19 -0600 Subject: Make it easy to patch submodules from non-Multitech sources. --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index 71dab11..cf52064 100755 --- a/setup.sh +++ b/setup.sh @@ -15,6 +15,13 @@ echo "" echo "Updating git submodules..." git submodule update --init +# Apply patches +for f in $(ls patches) ; do + if patch --dry-run -Np1 < patches/$f ; then + patch -Np1 < patches/$f + fi +done + if [ "$1" != "--update" ]; then response=y test -f env-oe.sh && read -p "Overwrite env-oe.sh with defaults? (y/N) " response -- cgit v1.2.3