Add pull command

This commit is contained in:
Jeremy Soller 2016-10-31 14:44:50 -06:00
parent 60904ec479
commit 027c7daf16
2 changed files with 12 additions and 0 deletions

4
all.sh Executable file
View File

@ -0,0 +1,4 @@
for recipe in `ls -1 recipes | grep -v libstd`
do
./cook.sh $recipe $*
done

View File

@ -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