mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-01 11:34:17 +01:00
18 lines
234 B
Bash
Executable File
18 lines
234 B
Bash
Executable File
#!/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=()
|