mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
Do not use realpath
This commit is contained in:
parent
6e1d2b88b0
commit
60904ec479
24
cook.sh
24
cook.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export RUST_TARGET_PATH=`realpath targets`
|
||||
export RUST_TARGET_PATH="$PWD/targets"
|
||||
export RUSTFLAGS="--cfg redox"
|
||||
export CARGOFLAGS=
|
||||
TARGET=x86_64-unknown-redox
|
||||
@ -16,6 +16,17 @@ then
|
||||
for arg in "${@:2}"
|
||||
do
|
||||
case "$arg" in
|
||||
fetch)
|
||||
git clone --recursive "$GIT" build
|
||||
;;
|
||||
unfetch)
|
||||
rm -rf build
|
||||
;;
|
||||
update)
|
||||
pushd build > /dev/null
|
||||
xargo update
|
||||
popd > /dev/null
|
||||
;;
|
||||
build)
|
||||
pushd build > /dev/null
|
||||
xargo build --target "$TARGET" $CARGOFLAGS
|
||||
@ -26,12 +37,6 @@ then
|
||||
xargo clean
|
||||
popd > /dev/null
|
||||
;;
|
||||
fetch)
|
||||
git clone --recursive "$GIT" build
|
||||
;;
|
||||
unfetch)
|
||||
rm -rf build
|
||||
;;
|
||||
stage)
|
||||
mkdir -p stage/bin
|
||||
pushd build > /dev/null
|
||||
@ -50,11 +55,6 @@ then
|
||||
untar)
|
||||
rm -rf stage.tar
|
||||
;;
|
||||
update)
|
||||
pushd build > /dev/null
|
||||
xargo update
|
||||
popd > /dev/null
|
||||
;;
|
||||
*)
|
||||
echo "$0 {package} {build|clean|fetch|update}"
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user