mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 23:04:19 +08:00
Add method to create summary toml
This commit is contained in:
parent
207c3cb3c5
commit
282bba2655
8
all.sh
8
all.sh
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
for recipe in `ls -1 recipes`
|
||||
do
|
||||
./cook.sh $recipe $*
|
||||
done
|
||||
13
cook.sh
13
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
|
||||
|
||||
@ -36,3 +36,5 @@ for recipe in $publish
|
||||
do
|
||||
./cook.sh $recipe publish
|
||||
done
|
||||
|
||||
./cook.sh repo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user