--- elwix/build_tools.sh 2012/03/20 15:10:06 1.1.2.4 +++ elwix/build_tools.sh 2012/03/20 15:54:00 1.1.2.6 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_tools.sh,v 1.1.2.4 2012/03/20 15:10:06 misho Exp $ +# $Id: build_tools.sh,v 1.1.2.6 2012/03/20 15:54:00 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -15,7 +15,11 @@ if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then echo exit 1 fi +V=${VERSION} [ -r ${CENV} ] && . ${CENV} +unset INSTALL +unset VERSION +VERSION="$V" if [ ! -d $BSDSRC ]; then echo @@ -146,8 +150,6 @@ compile_tools() { echo "+++ Compile ELWIX Cross ..." - unset INSTALL - cd $CROSS_AXL ${AXL_CFG} ${CBUILD} clean @@ -257,14 +259,14 @@ compile_tools() } ### main() -if SnitVer ${WORLD}/elwix/elwix.ver; then +if ! SnitVer ${WORLD}/elwix/elwix.ver; then clean_bootstrap compile_bootstrap else echo "Skipped ELWIX bootstrap pkgsrc tools build ..." fi -if SnitVer ${WORLD}/usr/local/elwix.ver; then +if ! SnitVer ${WORLD}/usr/local/elwix.ver; then clean_tools compile_fbsdtools compile_tools