Update scripts for compat

This commit is contained in:
Wildan M 2025-10-25 17:53:13 +07:00
parent 1e37be1d4f
commit 5621fe799f
5 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
source config.sh
source `dirname "$0"`/config.sh
if [ $# = 0 ]
then

View File

@ -17,8 +17,11 @@ if [ x"${HOST}" == x"riscv64gc-unknown-redox" ] ; then
HOST="riscv64-unknown-redox"
fi
# Cookbook requires correct CWD to work
cd `dirname "$0"`
# Automatic variables
ROOT="$(cd `dirname "$0"` && pwd)"
ROOT=`pwd`
export AR="${HOST}-gcc-ar"
export AS="${HOST}-as"

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
source config.sh
source `dirname "$0"`/config.sh
# Intentionally empty to allow fetch and cook running in parallel

View File

@ -1,8 +1,7 @@
#!/usr/bin/env bash
set -e
shopt -s nullglob
source config.sh
source `dirname "$0"`/config.sh
APPSTREAM="0"
COOK_OPT=""
@ -17,7 +16,7 @@ do
COOK_OPT+=" --with-package-deps"
elif [ "$arg" == "--nonstop" ]
then
COOK_OPT+=" --nonstop"
export COOKBOOK_OFFLINE=true
else
recipes+=" $arg"
fi
@ -25,7 +24,4 @@ done
repo cook $COOK_OPT $recipes
repo="$ROOT/repo/$TARGET"
mkdir -p "$repo"
repo_builder "$repo" $recipes

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
source config.sh
source `dirname "$0"`/config.sh
if [ $# = 0 ]
then