From f732e53f58b8f92132dece66b05f32576f830cc4 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 27 Jun 2016 20:30:15 -0700 Subject: Integrate source fetching into ninja files --- scripts/fetch-git.rc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/fetch-git.rc (limited to 'scripts/fetch-git.rc') diff --git a/scripts/fetch-git.rc b/scripts/fetch-git.rc new file mode 100755 index 00000000..fec6a809 --- /dev/null +++ b/scripts/fetch-git.rc @@ -0,0 +1,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 ../$patches +} +status=() -- cgit v1.2.3