mirror of
https://github.com/oasislinux/oasis.git
synced 2025-12-20 09:13:52 +01:00
Since we are now using Lua to generate ninja files, use of rc in build scripts seems unnecessary and adds an additional bootstrap dependency. None of them are too fancy, so just port to POSIX sh instead.
14 lines
208 B
Bash
14 lines
208 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 --whitespace=nowarn "$PWD"/patch/*
|
|
fi
|