From 282bba2655d8c4d608c78d6271f1ed89c4bf3385 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sun, 7 May 2017 15:47:42 -0600 Subject: [PATCH] Add method to create summary toml --- all.sh | 8 -------- cook.sh | 13 ++++++++++++- update-packages.sh | 2 ++ 3 files changed, 14 insertions(+), 9 deletions(-) delete mode 100755 all.sh diff --git a/all.sh b/all.sh deleted file mode 100755 index 098cb8936..000000000 --- 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 bc1d74eb4..2577487c1 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 a5b8e2255..0109dd234 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 -- GitLab