branch: elpa/lua-mode
commit a3ed4486cf187a1a081d72dcbb48c477868d650c
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
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 && \