aboutsummaryrefslogtreecommitdiff
path: root/Makefile.PL
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2018-03-09 10:33:19 +0000
committerSimon McVittie <smcv@debian.org>2018-03-09 10:33:19 +0000
commit7edeed1f1a070caf5e5b15d46bf3730811d524b6 (patch)
treeea79599af82216144bf7c07353e6ed6292a3d5ff /Makefile.PL
parentd58b25eb93beb84b30475546804066a15578d115 (diff)
downloadikiwiki-7edeed1f1a070caf5e5b15d46bf3730811d524b6.tar
ikiwiki-7edeed1f1a070caf5e5b15d46bf3730811d524b6.tar.gz
build: Add `make git-dist` target
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'Makefile.PL')
-rwxr-xr-xMakefile.PL3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.PL b/Makefile.PL
index bd630373b..7b55c7025 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -203,6 +203,9 @@ coverage:
cover -delete
$(MAKE) test PERL5OPT=-MDevel::Cover PERL5LIB=. TEST_FILES="$(filter-out t/git.t t/mercurial.t,$(wildcard t/*.t))"
cover
+
+git-dist:
+ git archive --format=tar --prefix=IkiWiki-$(VER)/ HEAD | xz -c > IkiWiki-$(VER).tar.xz
}
}