Files
oasis-linux-mirror/scripts/fetch-git.sh
Michael Forney 741d252822 Port build scripts to POSIX shell
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.
2018-02-16 02:52:34 -08:00

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