1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

"make dist" fixes

This commit is contained in:
Lasse Collin 2009-08-27 18:36:59 +03:00
parent c8c184db1c
commit 682efdc1f9

View file

@ -14,7 +14,7 @@ endif
SUBDIRS += src po tests SUBDIRS += src po tests
doc_DATA = \ dist_doc_DATA = \
AUTHORS \ AUTHORS \
COPYING \ COPYING \
COPYING.GPLv2 \ COPYING.GPLv2 \
@ -28,7 +28,6 @@ doc_DATA = \
doc/lzma-file-format.txt doc/lzma-file-format.txt
EXTRA_DIST = \ EXTRA_DIST = \
doc \
extra \ extra \
dos \ dos \
windows \ windows \
@ -55,13 +54,13 @@ manfiles = \
# Create ChangeLog from output of "git log --date=iso --stat". # Create ChangeLog from output of "git log --date=iso --stat".
# Convert the man pages to PDF and plain text (ASCII only) formats. # Convert the man pages to PDF and plain text (ASCII only) formats.
dist-hook: dist-hook:
test -d "$(srcdir)/.git" && type git > /dev/null 2>&1 \ if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
&& ( cd "$(srcdir)" && git log --date=iso --stat ) \ ( cd "$(srcdir)" && git log --date=iso --stat ) \
> "$(distdir)/ChangeLog" > "$(distdir)/ChangeLog"; \
fi
if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \ if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
dest="$(distdir)/doc/man" && \ dest="$(distdir)/doc/man" && \
mkdir "$$dest" && \ $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
mkdir "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
for FILE in $(manfiles); do \ for FILE in $(manfiles); do \
BASE=`basename $$FILE .1` && \ BASE=`basename $$FILE .1` && \
groff -man -t -Tps -P-pa4 < "$(srcdir)/$$FILE" \ groff -man -t -Tps -P-pa4 < "$(srcdir)/$$FILE" \