Add update script

This commit is contained in:
Jeremy Soller 2017-07-23 11:58:04 -06:00
parent 943fe8ae8c
commit 3863dc9b42

19
update.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
source config.sh
if [ $# = 0 ]
then
recipes="$(ls -1 recipes)"
else
recipes="$@"
fi
for recipe in $recipes
do
if [ -d "recipes/$recipe/build" ]
then
./cook.sh "$recipe" update
fi
done