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

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

[nongnu] elpa/lua-mode a3ed448 106/468: Make dist with git-archive


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode a3ed448 106/468: Make dist with git-archive
Date: Thu, 5 Aug 2021 04:58:17 -0400 (EDT)

branch: elpa/lua-mode
commit a3ed4486cf187a1a081d72dcbb48c477868d650c
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    Make dist with git-archive
---
 .gitattributes | 1 +
 Makefile       | 9 +--------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..e4504cf
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+.git* export-ignore
diff --git a/Makefile b/Makefile
index 4bc3ae5..a5f9de7 100644
--- a/Makefile
+++ b/Makefile
@@ -3,19 +3,12 @@
 VERSION="$(shell sed -nre '/^;; Version:/ { s/^;; Version:[ \t]+//; p }' 
lua-mode.el)"
 DISTFILE = lua-mode-$(VERSION).zip
 
-DIST_CONTENTS = \
-       lua-mode.el \
-       README \
-       README.md \
-       TODO \
-       Makefile
-
 default:
        @echo version is $(VERSION)
 
 dist:
        rm -f $(DISTFILE) && \
-       zip $(DISTFILE) -r $(DIST_CONTENTS)
+       git archive --format=zip -o $(DISTFILE) --prefix=lua-mode/ HEAD
 
 release:
        git diff --exit-code && \



reply via email to

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