#!/usr/bin/env bash | |
export LANG=C | |
export LC_ALL=C | |
BITNUM=$(getconf LONG_BIT) | |
#TOPDIR=/home/lianghu/openwrt | |
#TOOLDIR="$TOPDIR/owtoolchain/linux$BITNUM" | |
#Note: the TOPDIR variable can't be transferred into the sript by test! | |
# However, this script will be run only in the TOPDIR in toplevel.mk | |
# So we get some lazy method here like below | |
TOOLDIR="owtoolchain/linux$BITNUM" | |
HOSTDIR="host/linux$BITNUM" | |
if [ -d $TOOLDIR ] && [ -d $HOSTDIR ]; then | |
NONEXIST=0 | |
else | |
NONEXIST=1 | |
fi | |
echo "$NONEXIST" |