redox/repo.sh
2025-10-25 19:34:51 +07:00

31 lines
558 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source `dirname "$0"`/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
export COOKBOOK_OFFLINE=true
else
recipes+=" $arg"
fi
done
repo cook $COOK_OPT $recipes
repo_builder "$ROOT/repo/$TARGET" $recipes