mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 21:34:18 +08:00
Merge pull request #7 from ids1024/update-all
update-packages.sh improvements
This commit is contained in:
commit
1efcd84aea
6
cook.sh
6
cook.sh
@ -33,7 +33,11 @@ function usage {
|
||||
}
|
||||
|
||||
function op {
|
||||
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m" >&2
|
||||
if [ ! "$COOK_QUIET" = "1" ]
|
||||
then
|
||||
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m" >&2
|
||||
fi
|
||||
|
||||
case "$2" in
|
||||
dist)
|
||||
op $1 fetch
|
||||
|
||||
@ -18,15 +18,15 @@ do
|
||||
./cook.sh $recipe dist
|
||||
publish="${publish} $recipe"
|
||||
else
|
||||
oldver=$(./cook.sh $recipe gitversion)
|
||||
oldver=$(COOK_QUIET=1 ./cook.sh $recipe gitversion)
|
||||
./cook.sh $recipe fetch
|
||||
newver=$(./cook.sh $recipe gitversion)
|
||||
newver=$(COOK_QUIET=1 ./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
|
||||
./cook.sh $recipe unstage untar dist
|
||||
publish="${publish} $recipe"
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user