From e05054c3f9b6cf6ee0dbeafd0438b562f06afc64 Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Mon, 26 Dec 2016 11:25:21 -0800 Subject: [PATCH] Change to package directory before checking .elpaignore exclusions. If we don't do this, the package's directory's name is included in the file names that are checked for .elpaignore matches. .elpaignore matches should be assumed to occur inside the package's directory. --- GNUmakefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 6d57fae..8edb2f8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -150,13 +150,18 @@ $(foreach al, $(autoloads), $(eval $(call RULE-srcdeps, $(al)))) included_els := $(shell \ for pt in packages/*; do \ if [ -d $$pt ]; then \ - if [ -f "$${pt}/.elpaignore" ]; then \ - tar -ch $$pt/*.el --no-recursion \ - --exclude-vcs -X "$${pt}/.elpaignore" \ + prev=$$(pwd); \ + cd $$pt; \ + if [ -f .elpaignore ]; then \ + tar -ch *.el --no-recursion \ + --exclude-vcs -X .elpaignore \ | tar --list; \ else \ - ls -1 $$pt/*.el; \ - fi; \ + ls -1 *.el; \ + fi | while read line; \ + do echo "$${pt}/$${line}"; \ + done; \ + cd $$prev; \ fi; \ done) els := $(call FILTER-nonsrc, $(included_els)) -- 2.1.4