From 2c82b81fcd8fc723712ac605041da5142f765730 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 6 Feb 2022 00:40:22 +0000 Subject: moved src files to xibuild files --- xib_env | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 xib_env (limited to 'xib_env') diff --git a/xib_env b/xib_env new file mode 100755 index 0000000..c74a6fb --- /dev/null +++ b/xib_env @@ -0,0 +1,30 @@ +#!/bin/sh + +export MAKEFLAGS="-j$(grep "processor" /proc/cpuinfo | wc -l)" + +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 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 $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 + + +cp /etc/resolv.conf $XIB_CHROOT/etc/resolv.conf -- cgit v1.2.1