Skip to content
Snippets Groups Projects
Commit 5f85e466 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix pkgutils build

parent 66e7642c
No related branches found
No related tags found
No related merge requests found
...@@ -195,12 +195,20 @@ function op { ...@@ -195,12 +195,20 @@ function op {
rm -rfv stage rm -rfv stage
;; ;;
tar) 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 "name = \"$1\"" > "stage.toml"
echo "version = \"$(op $1 version)\"" >> "stage.toml" echo "version = \"$(op $1 version)\"" >> "stage.toml"
echo "target = \"$TARGET\"" >> "stage.toml" echo "target = \"$TARGET\"" >> "stage.toml"
mkdir -p stage/pkg mkdir -p stage/pkg
cp -v stage.toml "stage/pkg/$1.toml" 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) untar)
rm -rfv stage.tar stage.sig stage.toml rm -rfv stage.tar stage.sig stage.toml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment