summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-02-08 08:55:19 -0600
committerJohn Klug <john.klug@multitech.com>2018-02-08 08:55:19 -0600
commitb8db8c6d0081f096614713fc9ecf5d35194d6bed (patch)
tree1c93fbf1595eea2f26e86dadb2cce065be43639d
parent993fe6c2fdb9e825e52ab94a935e5fdc9865eb43 (diff)
downloadmlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.tar.gz
mlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.tar.bz2
mlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.zip
Make it easy to patch submodules from non-Multitech sources.
-rwxr-xr-xsetup.sh7
1 files changed, 7 insertions, 0 deletions
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