citadel/setup-build-env
2018-01-18 18:22:23 -05:00

21 lines
413 B
Bash

#!/bin/sh
if [ -n "$BASH_SOURCE" ]; then
THIS_SCRIPT=$BASH_SOURCE
elif [ -n "$ZSH_NAME" ]; then
THIS_SCRIPT=$0
else
THIS_SCRIPT="$(pwd)/setup-build-env"
fi
if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then
echo "Error: This script needs to be sourced. Please run as '. $THIS_SCRIPT'"
exit 1
fi
PS1="[(build) \W]$ "
TEMPLATECONF=../meta-citadel-distro/conf
. poky/oe-init-build-env