From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7AE71198003 for ; Sat, 9 Mar 2013 07:42:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0762CE08A2; Sat, 9 Mar 2013 07:42:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 54066E08A2 for ; Sat, 9 Mar 2013 07:42:33 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 392DF33E8FB for ; Sat, 9 Mar 2013 07:42:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B7A23E4073 for ; Sat, 9 Mar 2013 07:42:30 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: <1362728212.9ba9012c6e85e3a8493f6c1a9919850a63c7258c.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:gentoo-syntax commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog keyword-generation.sh X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: 9ba9012c6e85e3a8493f6c1a9919850a63c7258c X-VCS-Branch: gentoo-syntax Date: Sat, 9 Mar 2013 07:42:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d5ea92ce-eb38-416d-a5f6-8981555fe1ba X-Archives-Hash: 76a2e265b2630d7e921110130ebed131 commit: 9ba9012c6e85e3a8493f6c1a9919850a63c7258c Author: Ulrich Müller gentoo org> AuthorDate: Fri Mar 8 07:36:52 2013 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Fri Mar 8 07:36:52 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=9ba9012c keyword-generation.sh: Suppress empty variables. * keyword-generation.sh: Don't output variables with an empty list of functions. --- ChangeLog | 5 +++++ keyword-generation.sh | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39cf846..d1360fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-08 Ulrich Müller + + * keyword-generation.sh: Don't output variables with an empty list + of functions. + 2013-01-13 Ulrich Müller * gentoo-syntax.el (ebuild-mode-collect-equal-cdrs): New optional diff --git a/keyword-generation.sh b/keyword-generation.sh index 1416490..90525b0 100644 --- a/keyword-generation.sh +++ b/keyword-generation.sh @@ -33,6 +33,7 @@ for eclass in ${ECLASSES}; do functions=$(env -i bash -c \ ". ${ECLASSDIR}/${eclass}; declare -F" 2>/dev/null \ | sed 's/.*[[:space:]]//;/^_/d;s/.*/"&"/') + [[ -z ${functions} ]] && continue { echo "(defvar ebuild-mode-keywords-${eclass%.eclass}"