]> gitweb.michael.orlitzky.com - amavis-logwatch.git/commitdiff
Makefile: release as tar.xz and don't include HTML docs by default.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 5 Aug 2021 22:14:08 +0000 (18:14 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 5 Aug 2021 22:18:52 +0000 (18:18 -0400)
Since this is mainly a server utility, the HTML page is a bit
redundant because we already include the man page from which it is
built. Anyone is capable of running man2html to turn a man page into a
web page if they so desire.

We also change the release tarball to "tar.xz" format with lzma
compression, because that's what all the cool kids are doing

Makefile

index 054abc367f32e9570c788e23bb2c24147745c1d6..8f12319af8feb9d70e4b1f0f9015ebca0999826a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ program_logwatch = amavis
 src = $(program) \
       $(program).conf \
       $(program).1 \
-      $(program).1.html \
       Changes Bugs Makefile README LICENSE
 
 prefix_logwatch = /etc/logwatch
@@ -48,13 +47,12 @@ uninstall-standalone:
 
 uninstall-all: uninstall-logwatch uninstall-standalone
 
-release: program htmlpage
+.PHONY: release
+release:
        vers=`egrep 'Version[ ]*=' $(program) | sed "s/.*'\(.*\)';/\1/"` ; \
        echo Preparing version $$vers; \
        rel=$(program)-$$vers ; \
-       tar -czvf $${rel}.tgz --group=0 --owner=0 --mode=644 --transform=s",^,$${rel}/," $(src) ; \
-       md5sum $${rel}.tgz  > $${rel}.tgz.md5 ; \
-       chmod 644 $${rel}.tgz  $${rel}.tgz.md5 
+       tar -cJf $${rel}.tar.xz --transform=s",^,$${rel}/," $(src) ;
 
 htmlpage:
        groff -m mandoc -T ascii $(program).1 | man2html -t 'Man page: $(program)(1)' >| $(program).1.html;