mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-05 11:33:57 +01:00
14 lines
231 B
Bash
14 lines
231 B
Bash
set -e
|
|
|
|
if [ "$#" != 1 ] ; then
|
|
echo 'usage: fetch-git.sh dir' >&2
|
|
exit 2
|
|
fi
|
|
|
|
cd "$1"
|
|
|
|
git submodule update --init --checkout src
|
|
if [ -d patch ] ; then
|
|
git -C src am --keep-non-patch --whitespace=nowarn "$PWD"/patch/*.patch
|
|
fi
|