summaryrefslogtreecommitdiff
path: root/create.sh
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-08 13:58:59 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-08 13:58:59 +0100
commit7f01f3ea7b83aa132f929b6341f21bba6485e096 (patch)
tree27c0fdc6ce51f9313871d24aa78f5e2c7254f057 /create.sh
parent31450a095be705bac7fc4ccad62a940fee6de55d (diff)
creating transitive package dependency tree for bootstrap
Diffstat (limited to 'create.sh')
-rwxr-xr-xcreate.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/create.sh b/create.sh
index 1dec4ef..66ff1bc 100755
--- a/create.sh
+++ b/create.sh
@@ -21,20 +21,24 @@
set -eu
die() { echo "$*" 1>&2 ; exit 1; }
-export -f die
+msg() { echo " :: $*"; }
+export -f die msg
[ $(id -u) -ne 0 ] && die "must be root"
[ -z "${SUDO_USER:-}" ] && die "SUDO_USER not set"
export _builddir=build
-mkdir -p $_builddir
-chown $SUDO_USER "$_builddir"
+mkdir -vp $_builddir
+chown -v $SUDO_USER "$_builddir"
export _toolchain=riscv64-linux-gnu
# stage 0: prepare host
./src/stage0.sh
+# stage 1: cross-makepkg a base system
+./src/stage1.sh
+
# cleanup
-rm -rf "$_builddir"
+# rm -rf "$_builddir"
echo "all done :)"