summaryrefslogtreecommitdiff
path: root/src/prepare_environment.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-30 02:34:51 +0000
committerdavidovski <david@davidovski.xyz>2022-01-30 02:34:51 +0000
commit4a5d2a3c22096c563608ce2e3603ea40810f030b (patch)
tree20a4cec9c6b010598c562d8f38faa11b19e41909 /src/prepare_environment.sh
parentd4d14ed58d10ee3e5a71d6e664409c1283529406 (diff)
moved everything to bash again
Diffstat (limited to 'src/prepare_environment.sh')
-rwxr-xr-xsrc/prepare_environment.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/prepare_environment.sh b/src/prepare_environment.sh
new file mode 100755
index 0000000..73fca98
--- /dev/null
+++ b/src/prepare_environment.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+export XIB_DIR="/var/lib/xib"
+export XIB_BUILDFILES="$XIB_DIR/buildfiles"
+export XIB_CHROOT="$XIB_DIR/chroot"
+export XIB_EXPORT="$XIB_DIR/export"
+
+export PRIV_KEY="$HOME/.ssh/xi.pem"
+
+export BUILDFILES_GIT_REPO="https://xi.davidovski.xyz/git/buildfiles.git"
+
+mkdir -pv $XIB_DIR $XIB_BUILDFILES $XIB_CHROOT $XIB_EXPORT
+
+if [ -d $XIB_BUILDFILES/.git ]; then
+ cd $XIB_BUILDFILES
+ git pull
+else
+ git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES
+fi