mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
35 lines
581 B
Bash
Executable File
35 lines
581 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
shopt -s nullglob
|
|
|
|
source config.sh
|
|
|
|
APPSTREAM="0"
|
|
COOK_OPT=""
|
|
recipes=""
|
|
for arg in "${@:1}"
|
|
do
|
|
if [ "$arg" == "--appstream" ]
|
|
then
|
|
APPSTREAM="1"
|
|
elif [ "$arg" == "--with-package-deps" ]
|
|
then
|
|
COOK_OPT+=" --with-package-deps"
|
|
elif [ "$arg" == "--nonstop" ]
|
|
then
|
|
COOK_OPT+=" --nonstop"
|
|
elif [ "$arg" == "--offline" ]
|
|
then
|
|
COOK_OPT+=" --offline"
|
|
else
|
|
recipes+=" $arg"
|
|
fi
|
|
done
|
|
|
|
cook $COOK_OPT $recipes
|
|
|
|
repo="$ROOT/repo/$TARGET"
|
|
mkdir -p "$repo"
|
|
|
|
repo_builder "$repo" $recipes
|