diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-10 00:26:30 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-10 00:26:30 +0000 |
commit | a3afd2ce59451a0f49d367ab66be54c2be9f4056 (patch) | |
tree | 49e8142ac969093fc2ede1d0e50f3563ac07cb15 | |
parent | 5cf17da1dea7216b6d8648d6cb3c7469e27004ed (diff) | |
download | buildroot-novena-a3afd2ce59451a0f49d367ab66be54c2be9f4056.tar.gz buildroot-novena-a3afd2ce59451a0f49d367ab66be54c2be9f4056.zip |
Add script allowing better overview of build status of single packages
-rwxr-xr-x | scripts/mkpkg | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/mkpkg b/scripts/mkpkg new file mode 100755 index 000000000..2d9018734 --- /dev/null +++ b/scripts/mkpkg @@ -0,0 +1,45 @@ +#!/bin/bash +OK=0 +FAIL=1 +TOPDIR=`pwd` +LOG_FILE=$1.log +LOG_DIR=${TOPDIR}/log/ +LOG=${LOG_DIR}/${LOG_FILE} +DEPENDENCY=${LOG_DIR}/DEPEND/$1.depend.txt + +LOG_OK_DIR=${LOG_DIR}/OK +LOG_FAIL_DIR=${LOG_DIR}/FAIL +LOG_OK_FILE=${LOG_OK_DIR}/${LOG_FILE}.OK +LOG_FAIL_FILE=${LOG_FAIL_DIR}/${LOG_FILE}.FAIL + +mkdir -p ${LOG_DIR} +mkdir -p ${LOG_OK_DIR} +mkdir -p ${LOG_FAIL_DIR} +mkdir -p ${LOG_DIR}/DEPEND + +test=${OK} + +function build_package () +{ + printf "%-52s" "$1" + rm -f {LOG} + rm -f {LOG_OK_FILE} + rm -f {LOG_FAIL_FILE} + rm -f ${DEPENDENCY} + + make $1-dirclean > /dev/null 2>&1 + + make $1 >> ${LOG} 2>&1 || test=${FAIL} + grep "\.tar\." ${LOG} > ${DEPENDENCY} + if [ ${test} == ${OK} ] ; then + mv ${LOG} ${LOG_OK_FILE} + echo "OK" + else + mv ${LOG} ${LOG_FAIL_FILE} + echo "FAIL" + fi +} + +build_package $1 + + |