diff options
author | John Klug <john.klug@multitech.com> | 2018-02-08 08:55:19 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-02-08 08:55:19 -0600 |
commit | b8db8c6d0081f096614713fc9ecf5d35194d6bed (patch) | |
tree | 1c93fbf1595eea2f26e86dadb2cce065be43639d | |
parent | 993fe6c2fdb9e825e52ab94a935e5fdc9865eb43 (diff) | |
download | mlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.tar.gz mlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.tar.bz2 mlinux-b8db8c6d0081f096614713fc9ecf5d35194d6bed.zip |
Make it easy to patch submodules from non-Multitech sources.
-rwxr-xr-x | setup.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |