From cad99ecff5a382d456ff81511f99a7f5ade9e1b2 Mon Sep 17 00:00:00 2001
From: Ian Douglas Scott <ian@iandouglasscott.com>
Date: Mon, 24 Apr 2017 21:40:12 -0700
Subject: [PATCH] Use "pkg create" to build package

---
 cook.sh  | 4 +---
 setup.sh | 6 ++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/cook.sh b/cook.sh
index 5c0ac2914..36549d991 100755
--- a/cook.sh
+++ b/cook.sh
@@ -195,9 +195,7 @@ function op {
             rm -rfv stage
             ;;
         tar)
-            pushd stage > /dev/null
-            tar cfv ../stage.tar .
-            popd > /dev/null
+            $ROOT/pkgutils/target/release/pkg create stage
             ;;
         untar)
             rm -rfv stage.tar
diff --git a/setup.sh b/setup.sh
index 62aa36f5b..795627d99 100755
--- a/setup.sh
+++ b/setup.sh
@@ -24,4 +24,10 @@ then
     cargo install -f xargo
 fi
 
+echo "Building pkgutils"
+pushd pkgutils
+# TODO Change pkgutils to not hard code TARGET
+TARGET=x86_64-unknown-redox cargo build --release
+popd
+
 echo "cook.sh is ready to use"
-- 
GitLab