Fix pkgutils build

This commit is contained in:
Jeremy Soller 2017-06-04 20:05:24 -06:00
parent 66e7642ce6
commit 5f85e466a0

10
cook.sh
View File

@ -195,12 +195,20 @@ function op {
rm -rfv stage
;;
tar)
# Compile pkgutils if needed
if [ ! -f "$ROOT/pkgutils/target/release/pkg" ]
then
pushd "$ROOT/pkgutils/" > /dev/null
TARGET=x86_64-unknown-redox cargo build --release
popd > /dev/null
fi
echo "name = \"$1\"" > "stage.toml"
echo "version = \"$(op $1 version)\"" >> "stage.toml"
echo "target = \"$TARGET\"" >> "stage.toml"
mkdir -p stage/pkg
cp -v stage.toml "stage/pkg/$1.toml"
TARGET=x86_64-unknown-redox cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- create stage
"$ROOT/pkgutils/target/release/pkg" create stage
;;
untar)
rm -rfv stage.tar stage.sig stage.toml