summaryrefslogtreecommitdiff
path: root/src/prepare_environment.sh
blob: c45c895a038158431515a49221859d44e8ad50ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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/david/.ssh/xi.pem"

export BUILDFILES_GIT_REPO="https://xi.davidovski.xyz/git/buildfiles.git"

mkdir -p $XIB_DIR $XIB_BUILDFILES $XIB_CHROOT $XIB_EXPORT

if [ -d $XIB_BUILDFILES/.git ]; then
    cd $XIB_BUILDFILES
    git pull
    cd $OLDPWD
else
    git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES
fi