From 027c7daf161d369e1e66111b01e15534288268cb Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Mon, 31 Oct 2016 14:44:50 -0600 Subject: [PATCH] Add pull command --- all.sh | 4 ++++ cook.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 all.sh diff --git a/all.sh b/all.sh new file mode 100755 index 000000000..81e77c397 --- /dev/null +++ b/all.sh @@ -0,0 +1,4 @@ +for recipe in `ls -1 recipes | grep -v libstd` +do + ./cook.sh $recipe $* +done diff --git a/cook.sh b/cook.sh index c6c7ee7bf..152935406 100755 --- a/cook.sh +++ b/cook.sh @@ -15,6 +15,7 @@ then source recipe.sh for arg in "${@:2}" do + echo "$1" "$arg" case "$arg" in fetch) git clone --recursive "$GIT" build @@ -22,6 +23,13 @@ then unfetch) rm -rf build ;; + pull) + pushd build > /dev/null + git pull + git submodule sync + git submodule update --init --recursive + popd > /dev/null + ;; update) pushd build > /dev/null xargo update -- GitLab