summaryrefslogtreecommitdiff
path: root/scripts/fetch-git.rc
blob: c01de87b8430e92bcd3ca6bf07d9d5f2c1c6d857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/rc

flag e +

if(! ~ $#* 1) {
	echo 'usage: fetch-git.rc dir' >[1=2]
	exit 2
}

cd $1

git submodule update --init --checkout src
if([ -d patch ]) {
	patches=patch/*
	git -C src am '--whitespace=nowarn' ../$patches
}
status=()