All of lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/scripts
Date: Sat, 10 Jan 2009 00:26:30 +0000 (UTC)	[thread overview]
Message-ID: <20090110002630.A8D457688F@busybox.osuosl.org> (raw)

Author: ulf
Date: 2009-01-10 00:26:30 +0000 (Sat, 10 Jan 2009)
New Revision: 24739

Log:
Add script allowing better overview of build status of single packages

Added:
   trunk/buildroot/scripts/mkpkg


Changeset:
Added: trunk/buildroot/scripts/mkpkg
===================================================================
--- trunk/buildroot/scripts/mkpkg	                        (rev 0)
+++ trunk/buildroot/scripts/mkpkg	2009-01-10 00:26:30 UTC (rev 24739)
@@ -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
+
+


Property changes on: trunk/buildroot/scripts/mkpkg
___________________________________________________________________
Added: svn:executable
   + *

             reply	other threads:[~2009-01-10  0:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10  0:26 ulf at uclibc.org [this message]
2009-01-11 13:23 ` [Buildroot] svn commit: trunk/buildroot/scripts Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2009-02-03 16:24 jacmet at uclibc.org
2009-02-02  7:19 ulf at uclibc.org
2009-02-02  7:18 ulf at uclibc.org
2009-01-25 23:09 ulf at uclibc.org
2009-01-22 23:10 ulf at uclibc.org
2009-01-22 23:05 ulf at uclibc.org
2009-01-16 22:45 ulf at uclibc.org
2009-01-15 23:17 ulf at uclibc.org
2009-01-13 18:43 ulf at uclibc.org
2009-01-12  7:45 ulf at uclibc.org
2009-01-12  7:43 ulf at uclibc.org
2009-01-11 20:37 ulf at uclibc.org
2009-01-03 16:59 ulf at uclibc.org
2009-01-02 15:44 ulf at uclibc.org
2009-01-03  7:04 ` Hamish Moffatt
2009-01-03  8:50   ` Ulf Samuelsson
2008-12-23 17:51 wberrier at uclibc.org
2008-10-22  5:19 jacmet at uclibc.org
2008-05-01 15:21 ninevoltz at uclibc.org
2008-04-06 10:01 ulf at uclibc.org
2008-04-01  9:53 jacmet at uclibc.org
2008-03-11 13:14 ninevoltz at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090110002630.A8D457688F@busybox.osuosl.org \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.