aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <jauhien@gentoo.org>2014-12-01 23:43:42 +0100
committerJauhien Piatlicki <jauhien@gentoo.org>2014-12-01 23:43:42 +0100
commit9d0509b374832e4c9528ff000df54781e14b2721 (patch)
treef5f10d16bcce3993fe9b33788093a27ca2233630
parent[gs-elpa.eclass] issue #4: handle compilation and installation of elisp packa... (diff)
downloadgs-elpa-9d0509b374832e4c9528ff000df54781e14b2721.tar.gz
gs-elpa-9d0509b374832e4c9528ff000df54781e14b2721.tar.bz2
gs-elpa-9d0509b374832e4c9528ff000df54781e14b2721.zip
[gs-elpa.eclass] filter directories for BYTECOMPFLAGS, so it has only uniq entries
-rw-r--r--gs_elpa/data/gs-elpa.eclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/gs_elpa/data/gs-elpa.eclass b/gs_elpa/data/gs-elpa.eclass
index 2c3e922..aa4eca4 100644
--- a/gs_elpa/data/gs-elpa.eclass
+++ b/gs_elpa/data/gs-elpa.eclass
@@ -49,11 +49,10 @@ gs-elpa_src_compile() {
local directories=""
rm -f ${PN}-pkg.el || die
elisp-make-autoload-file || die
- for i in `find . -name "*.el" -print`; do
- directories+=" -L "
- directories+="$(dirname $i)"
+ directories=`find . -name "*.el" | xargs -I{} dirname {} | sort | uniq`
+ for i in ${directories}; do
+ BYTECOMPFLAGS+=" -L ${i}"
done
- BYTECOMPFLAGS+="${directories}"
ebegin "Compiling GNU Emacs Elisp files"
${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} --eval '(byte-recompile-directory "./" 0 t)'
eend $? "elisp-compile: batch-byte-compile failed" || die