Skip to content
Snippets Groups Projects
Unverified Commit 3bd2f7cf authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Add update-all.sh script to rebuild only out of date packages

parent 7baa834c
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,14 @@ function op { ...@@ -101,6 +101,14 @@ function op {
fi fi
popd > /dev/null popd > /dev/null
;; ;;
gitversion)
if [ -d build/.git ]
then
echo "$(op $1 version)-$(git -C build rev-parse --short HEAD)"
else
op $1 version
fi
;;
update) update)
pushd build > /dev/null pushd build > /dev/null
skip="0" skip="0"
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment