#!/bin/bash set -e for recipe in `ls -1 recipes` do if [ ! -f "recipes/$recipe/stage.tar" ] then echo "$recipe: building..." ./cook.sh $recipe dist else oldver=$(./cook.sh $recipe gitversion) ./cook.sh $recipe update newver=$(./cook.sh $recipe gitversion) if [ "$oldver" = "$newver" ] then echo "$recipe: up to date (version $newver)." else echo "$recipe: updating $oldver -> $newver..." ./cook.sh $recipe dist fi fi done