summaryrefslogtreecommitdiff
path: root/scripts/fetch-git.sh
blob: 460df4607c3222340187b97b0edcebaf292c8dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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/*
fi