summaryrefslogtreecommitdiff
path: root/src/prepare_environment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/prepare_environment.sh')
-rwxr-xr-xsrc/prepare_environment.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/prepare_environment.sh b/src/prepare_environment.sh
index 1edfd9c..0457e98 100755
--- a/src/prepare_environment.sh
+++ b/src/prepare_environment.sh
@@ -1,6 +1,7 @@
#!/bin/sh
export MAKEFLAGS="-j12"
+export LDFLAGS="-liconv"
export XIB_DIR="/var/lib/xib"
export XIB_BUILDFILES="$XIB_DIR/buildfiles"
@@ -8,17 +9,22 @@ export XIB_CHROOT="$XIB_DIR/chroot"
export XIB_EXPORT="$XIB_DIR/export"
export PRIV_KEY="/home/david/.ssh/xi.pem"
+export DEVELOPMENT_BUILDFILES="/home/david/docs/proj/xilinux/buildfiles"
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
+if [ -d $DEVELOPMENT_BUILDFILES ]; then
+ cp -r $DEVELOPMENT_BUILDFILES/* $XIB_BUILDFILES/
else
- git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES
+ if [ -d $XIB_BUILDFILES/.git ]; then
+ cd $XIB_BUILDFILES
+ git pull
+ cd $OLDPWD
+ else
+ git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES
+ fi
fi