emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa-admin 5067b05 258/357: Change to package directory before ch


From: Stefan Monnier
Subject: [elpa] elpa-admin 5067b05 258/357: Change to package directory before checking .elpaignore exclusions.
Date: Thu, 10 Dec 2020 18:06:54 -0500 (EST)

branch: elpa-admin
commit 5067b052d61b344aad7a6683df441811bac5e022
Author: Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]