#!/bin/bash
#set -e

KUMATUXMESSAGE=$KUMATUXBIN/message.sh/message.sh
KUMATUXWARNING=$KUMATUXBIN/message.sh/warning.sh
#$KUMATUXMESSAGE "Exporting kumatux variables..."

KUMATUXSETUP=$KUMATUXBIN/setup.sh
KUMATUXDELETE=$KUMATUXBIN/delete.sh
KUMATUXCHECK=$KUMATUXBIN/check.sh
## 8 is for RUBYLIB
## 10 is for aclocal
KUMATUXROOTDIRSNOTHIRD="0 1 2 3 4 5 6 8 9 10"
KUMATUXROOTDIRS="$KUMATUXROOTDIRSNOTHIRD 7"
KUMATUXETC=$KUMATUXLINKS
KUMATUXETCBIN="bin"
KUMATUXETCINCLUDE="include"
KUMATUXETCLIB="lib"
KUMATUXETCLDFLAGS="ldflags"
KUMATUXETCPKGCONFIG="pkgconfig"
KUMATUXETCPERL="perl"
KUMATUXETCMAN="man"
KUMATUXETCINFO="info"
KUMATUXETCPYTHON="python"
KUMATUXETCRUBYLIB="rubylib"
KUMATUXETCACLOCAL="aclocal"
KUMATUXETCDIRSNOTHIRD="$KUMATUXETCBIN $KUMATUXETCINCLUDE $KUMATUXETCLIB $KUMATUXETCLDFLAGS $KUMATUXETCPKGCONFIG $KUMATUXETCPERL $KUMATUXETCMAN $KUMATUXETCINFO $KUMATUXETCRUBYLIB $KUMATUXETCACLOCAL"
KUMATUXETCDIRS="$KUMATUXETCDIRSNOTHIRD $KUMATUXETCPYTHON"
KUMATUXROOTBIN=0
KUMATUXROOTINCLUDE=1
KUMATUXROOTLIB=2
KUMATUXROOTPKGCONFIG=3
KUMATUXROOTPERL=4
KUMATUXROOTMAN=5
KUMATUXROOTINFO=6
KUMATUXROOTPYTHON=7
KUMATUXROOTRUBYLIB=8
KUMATUXROOTLDFLAGS=9
KUMATUXROOTACLOCAL=10
KUMATUXFIND=$KUMATUXBIN/find.sh
KUMATUXLINK=$KUMATUXBIN/link.sh
KUMATUXUNLINK=$KUMATUXBIN/unlink.sh
KUMATUXPYTHONVERSIONS="2.0 2.1 2.2 2.3 2.4 2.5 2.6 3.0 3.1"
KUMATUXEXPORT=$KUMATUXBIN/export.sh

## export bash, basename, and dirname locations properly
## based on whether we are in a proper kumatux.org environment
## or a testing kumatux.org clean environment

if [ "$KUMATUXTEST" ]
then
    export PS1="\u:kumatux.org-test:\w$ "
    export KUMATUXLINKS=$KUMATUXTESTLINKS
    export KUMATUXROOT=$KUMATUXTESTROOT
else
    export KUMATUXBASH=`which bash`
    export KUMATUXBASENAME=`which basename`
    export KUMATUXDIRNAME=`which dirname`
fi
