mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
Use system 'pkg' when run on Redox
This commit is contained in:
parent
8eba3003c6
commit
c6c877611d
11
cook.sh
11
cook.sh
@ -8,6 +8,13 @@ source config.sh
|
||||
export BINDIR=bin
|
||||
export CARGOFLAGS=
|
||||
|
||||
if [ ! "$(uname -s)" = "Redox" ]
|
||||
then
|
||||
function pkg {
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- $@
|
||||
}
|
||||
fi
|
||||
|
||||
function usage {
|
||||
echo "cook.sh $1 <op>" >&2
|
||||
echo " dist" >&2
|
||||
@ -118,7 +125,7 @@ function op {
|
||||
|
||||
for i in "${BUILD_DEPENDS[@]}"
|
||||
do
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
|
||||
pkg --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
|
||||
done
|
||||
fi
|
||||
|
||||
@ -229,7 +236,7 @@ function op {
|
||||
echo "target = \"$TARGET\"" >> "stage.toml"
|
||||
mkdir -p stage/pkg
|
||||
cp -v stage.toml "stage/pkg/$1.toml"
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET create stage
|
||||
pkg --target=$TARGET create stage
|
||||
;;
|
||||
untar)
|
||||
rm -rfv stage.tar.gz stage.sig stage.toml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user