redox/repo.sh
2025-10-24 19:34:41 +07:00

32 lines
511 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"
else
recipes+=" $arg"
fi
done
repo cook $COOK_OPT $recipes
repo="$ROOT/repo/$TARGET"
mkdir -p "$repo"
repo_builder "$repo" $recipes