diff options
author | davidovski <david@davidovski.xyz> | 2022-02-16 16:48:43 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-16 16:48:43 +0000 |
commit | a8636e960d24cf986b716fc0dd923313f0366eb4 (patch) | |
tree | 1b36ce226384c30cbc88588e2bf7311fa88deb5d /xibuild | |
parent | cd5039ca874c38ea52a43a9ff815a1a0dd93955f (diff) |
added moved preparing outside of xib env
Diffstat (limited to 'xibuild')
-rw-r--r-- | xibuild/prepare.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xibuild/prepare.sh b/xibuild/prepare.sh new file mode 100644 index 0000000..81f52a5 --- /dev/null +++ b/xibuild/prepare.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +mkdir -p $XIB_DIR $XIB_BUILDFILES $XIB_CHROOT $XIB_EXPORT + +if [ -d $DEVELOPMENT_BUILDFILES ]; then + cp -r $DEVELOPMENT_BUILDFILES/* $XIB_BUILDFILES/ +else + if [ -d $XIB_BUILDFILES/.git ]; then + cd $XIB_BUILDFILES + git pull + cd $OLDPWD + else + git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES + fi +fi + +[ -f $INSTALLED_PACKAGES ] || touch $INSTALLED_PACKAGES + +[ -f $XIB_CHROOT/etc/resolv.conf ] || cp /etc/resolv.conf $XIB_CHROOT/etc/resolv.conf |