mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 23:04:19 +08:00
Update scripts for compat
This commit is contained in:
parent
1e37be1d4f
commit
5621fe799f
2
clean.sh
2
clean.sh
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
source config.sh
|
||||
source `dirname "$0"`/config.sh
|
||||
|
||||
if [ $# = 0 ]
|
||||
then
|
||||
|
||||
@ -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"
|
||||
|
||||
3
fetch.sh
3
fetch.sh
@ -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
|
||||
|
||||
8
repo.sh
8
repo.sh
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
source config.sh
|
||||
source `dirname "$0"`/config.sh
|
||||
|
||||
if [ $# = 0 ]
|
||||
then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user