diff options
author | 2013-03-08 08:36:52 +0100 | |
---|---|---|
committer | 2013-03-08 08:36:52 +0100 | |
commit | 9ba9012c6e85e3a8493f6c1a9919850a63c7258c (patch) | |
tree | a7e03685663c72d809b28cb66bed356e3ac93161 /keyword-generation.sh | |
parent | Update copyright years. (diff) | |
download | ebuild-mode-9ba9012c6e85e3a8493f6c1a9919850a63c7258c.tar.gz ebuild-mode-9ba9012c6e85e3a8493f6c1a9919850a63c7258c.tar.bz2 ebuild-mode-9ba9012c6e85e3a8493f6c1a9919850a63c7258c.zip |
keyword-generation.sh: Suppress empty variables.
* keyword-generation.sh: Don't output variables with an empty list
of functions.
Diffstat (limited to 'keyword-generation.sh')
-rw-r--r-- | keyword-generation.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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}" |