mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
25 lines
407 B
Bash
Executable File
25 lines
407 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
source `dirname "$0"`/config.sh
|
|
|
|
COOK_OPT=""
|
|
recipes=""
|
|
for arg in "${@:1}"
|
|
do
|
|
if [[ "$arg" == "--appstream" ]]
|
|
then
|
|
export APPSTREAM="1"
|
|
elif [[ "$arg" == "--offline" ]]
|
|
then
|
|
export COOKBOOK_OFFLINE=true
|
|
elif [[ $arg == "--*" ]]
|
|
then
|
|
COOK_OPT+=" ${arg}"
|
|
else
|
|
recipes+=" $arg"
|
|
fi
|
|
done
|
|
|
|
repo cook $COOK_OPT $recipes
|