Skip to content
Snippets Groups Projects
Verified Commit d78ad131 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Also build pkg's

parent bd71b545
No related branches found
No related tags found
No related merge requests found
Subproject commit d3b5dfc7af711f32ca115bc39d45f77dac4b7b99 Subproject commit 0b8522c860af161f72075da4683c3856e1526ea1
...@@ -58,6 +58,20 @@ do ...@@ -58,6 +58,20 @@ do
echo -e "\033[01;38;5;155mrepo - $recipe up to date\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - $recipe up to date\033[0m" >&2
fi fi
fi fi
if [ ! -f "recipes/$recipe/stage.pkg" ]
then
echo -e "\033[01;38;5;155mrepo - packaging $recipe\033[0m" >&2
./cook.sh "$recipe" pkg $DEBUG
else
TIME_STAGE="$($STAT -c "%Y" recipes/$recipe/stage.tar.gz)"
TIME_PKG="$($STAT -c "%Y" recipes/$recipe/stage.pkg)"
if [ "$TIME_STAGE" -gt "$TIME_PKG" ]
then
echo -e "\033[01;38;5;155mrepo - repackaging $recipe\033[0m" >&2
./cook.sh "$recipe" unpkg pkg $DEBUG
fi
fi
done done
for recipe in $recipes for recipe in $recipes
...@@ -67,6 +81,12 @@ do ...@@ -67,6 +81,12 @@ do
echo -e "\033[01;38;5;155mrepo - publishing $recipe\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - publishing $recipe\033[0m" >&2
./cook.sh $recipe publish ./cook.sh $recipe publish
fi fi
if [ "recipes/$recipe/stage.pkg" -nt "$REPO/$recipe.pkg" ]
then
echo -e "\033[01;38;5;155mrepo - publishing $recipe\033[0m" >&2
cp -v "recipes/$recipe/stage.pkg" "$REPO/$recipe.pkg"
fi
done done
echo -e "\033[01;38;5;155mrepo - generating repo.toml\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - generating repo.toml\033[0m" >&2
......
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