diff --git a/all.sh b/all.sh deleted file mode 100755 index 098cb8936cff4d9d205ece99a71ffc8d7f304777..0000000000000000000000000000000000000000 --- a/all.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -e - -for recipe in `ls -1 recipes` -do - ./cook.sh $recipe $* -done diff --git a/cook.sh b/cook.sh index bc1d74eb4feffcb32dfc33378c1759d55b6d71dd..2577487c158ce85ced25cbe228cf37d083114143 100755 --- a/cook.sh +++ b/cook.sh @@ -222,7 +222,18 @@ function op { if [ -n "$1" ] then - if [ -d "$ROOT/recipes/$1" ] + if [ "$1" = "repo" ] + then + echo -e "\033[01;38;5;215mcook - repo\033[0m" >&2 + + echo "[packages]" > "$REPO.toml" + for toml in "$REPO/"*".toml" + do + package="$(basename "$toml" .toml)" + version="$(grep version "$toml" | cut -d '=' -f2-)" + echo "$package =$version" >> "$REPO.toml" + done + elif [ -d "$ROOT/recipes/$1" ] then cd "$ROOT/recipes/$1" source recipe.sh diff --git a/update-packages.sh b/update-packages.sh index a5b8e2255a53f21489fb999c08fabf7001ed46f3..0109dd2343d3757a2ae42cc62d8b9bf8925d28d4 100755 --- a/update-packages.sh +++ b/update-packages.sh @@ -36,3 +36,5 @@ for recipe in $publish do ./cook.sh $recipe publish done + +./cook.sh repo