emacs-devel
[Top][All Lists]
Advanced

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

Re: Git version of ELPA


From: Dmitry Gutov
Subject: Re: Git version of ELPA
Date: Sat, 17 Aug 2013 03:59:22 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

On 14.08.2013 18:30, Stefan Monnier wrote:
So we could easily handle
a list of exclusions by passing the list to "tar".

How does this look to you?

Downsides, so far:

1) Incessant "tar: Removing leading `../' from member names" warnings.
2) .elpaignore file itself is included. Maybe even not a downside.

diff --git a/GNUmakefile b/GNUmakefile
index cc06e48..4a9f185 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -48,8 +48,11 @@ process-archive:
        @cd $(ARCHIVE_TMP)/packages; \
          for pt in *; do \
              if [ -d $$pt ]; then \
+                 cd $$pt; \
                  echo "Creating tarball $${pt}.tar" && \
-                 tar -cf $${pt}.tar $$pt --remove-files; \
+                 tar -cf ../$${pt}.tar ../$$pt \
+                 $$(if [ -f .elpaignore ]; then echo "-X .elpaignore"; fi;); \
+                 cd ..; rm -r $${pt}; \
              fi; \
          done
        mkdir -p archive/packages




reply via email to

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