--- elwix/build_tools.sh 2013/07/21 16:48:54 1.5.2.1 +++ elwix/build_tools.sh 2013/05/22 15:29:14 1.5.4.3 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_tools.sh,v 1.5.2.1 2013/07/21 16:48:54 misho Exp $ +# $Id: build_tools.sh,v 1.5.4.3 2013/05/22 15:29:14 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -15,13 +15,7 @@ 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 echo "ELWIX project is not configured - missing BSD sources !?!" @@ -69,15 +63,13 @@ clean_bootstrap() compile_deps() { echo "+++ Compile ELWIX programs bootstrap tools ..." - if [ -d tools -a -f tools/Makefile ]; then - cd tools - make cleandepend - make clean - make obj - make - make install - cd - - fi + cd tools + make cleandepend + make clean + make obj + make + make install + cd - } compile_bootstrap() @@ -112,6 +104,8 @@ USE_NATIVE_GCC= yes .endif # end cross-compilation settings _EOF + + echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/elwix/elwix.ver } compile_fbsdtools() @@ -195,7 +189,7 @@ compile_files() TARGET_ARCH=${TARGET_ARCH} install DESTDIR=${WORLD} cd - -# strip -s ${WORLD}/usr/bin/csh + strip -s ${WORLD}/usr/bin/csh } compile_tools() @@ -300,32 +294,29 @@ compile_tools() ${CBUILD} install cd - - cd $CROSS_WIFINATOR - ${WIFINATOR_CFG} - ${CBUILD} clean - ${CBUILD} - ${CBUILD} install - cd - + echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver } ### main() if ! SnitVer ${WORLD}/elwix/elwix.ver; then compile_deps || exit 1 - clean_bootstrap - compile_bootstrap || exit 1 - - echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/elwix/elwix.ver +# clean_bootstrap +# compile_bootstrap || exit 1 else echo "Skipped ELWIX bootstrap pkgsrc tools build ..." fi +V=${VERSION} +[ -r ${CENV} ] && . ${CENV} +unset INSTALL +unset VERSION +VERSION="$V" + if ! SnitVer ${WORLD}/usr/local/elwix.ver; then clean_tools compile_fbsdtools compile_files compile_tools - - echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver else echo "Skipped ELWIX tools build ..." fi