Browse Source

(dist-hook): Create a cpio archive.

Sergey Poznyakoff 18 years ago
parent
commit
00746182f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Makefile.am

+ 4 - 0
Makefile.am

@@ -22,3 +22,7 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = ChangeLog.1 PORTS
 EXTRA_DIST = ChangeLog.1 PORTS
 SUBDIRS = doc lib rmt src scripts po tests
 SUBDIRS = doc lib rmt src scripts po tests
 
 
+dist-hook: 
+	-rm -f $(distdir).cpio
+	find $(distdir) | cpio -Hcrc -o | \
+          GZIP=$(GZIP_ENV) gzip -c > $(distdir).cpio.gz