From: Mike Frysinger Date: Mon, 5 Mar 2012 18:08:07 -0500 Subject: [U-Boot] [PATCH] MAKEALL: Add -m/-M option to determine maintainers In-Reply-To: <1330981868-29895-1-git-send-email-marex@denx.de> References: <1330968789-17997-1-git-send-email-marex@denx.de> <1330981868-29895-1-git-send-email-marex@denx.de> Message-ID: <201203051808.11351.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 05 March 2012 16:11:08 Marek Vasut wrote: > +get_target_location() { > + target=$1 > + > + BOARD_NAME="" > + CONFIG_NAME="" > + board="" > + vendor="" please use "local" when declaring variables that are function local > + line=`egrep -i "^[[:space:]]*${target}[[:space:]]" boards.cfg` obviously i prefer $(...) rather than `...` > + if [ -z "${line}" ] ; then echo "" ; return ; fi please unroll > + [ "${BOARD_NAME}" ] || BOARD_NAME="${1%_config}" : ${BOARD_NAME:=${1%_config}} > + [ $# -gt 6 ] && [ "$7" != "-" ] && { please use: if ... ; then > + if ! grep -i ${name} MAINTAINERS >/dev/null 2>&1 ; then use -qs and then you can drop the redirects > + return ; drop the semi-colon -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: