summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes1
-rw-r--r--Makefile6
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..5e5a56d
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+Makefile export-ignore
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..651b426
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,6 @@
+DISTDIR ?= $(shell portageq distdir)
+TAG ?= HEAD
+VERSION ?= $(shell git describe --tags $(TAG))
+
+dist:
+ git archive $(TAG) | xz > $(DISTDIR)/python-gentoo-patches-$(VERSION).tar.xz