X-Git-Url: https://git.gag.com/?p=debian%2Fgzip;a=blobdiff_plain;f=Makefile.am;h=d4ecc3f18a018e3c57a179a55e3483a566c917dd;hp=86a02975027df24d2d4ae3ba5699e9a95a46f010;hb=659cae49714b93487242525dfa0e5737463d78d8;hpb=dc84183747ce1703eb99685b5dbde1f65a143c06 diff --git a/Makefile.am b/Makefile.am index 86a0297..d4ecc3f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # Make gzip (GNU zip). -# Copyright (C) 1999, 2001-2002, 2006-2007, 2009-2012 Free Software Foundation, +# Copyright (C) 1999, 2001-2002, 2006-2007, 2009-2018 Free Software Foundation, # Inc. # This program is free software; you can redistribute it and/or modify @@ -21,7 +21,6 @@ ALL_RECURSIVE_TARGETS = BUILT_SOURCES = SUBDIRS = lib doc . tests -ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(top_srcdir)/lib AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) @@ -81,12 +80,13 @@ gzip.doc.gz: gzip.doc $(bin_PROGRAMS) SUFFIXES = .in .in: - $(AM_V_GEN)sed \ + $(AM_V_GEN)rm -f $@-t $@ \ + && sed \ -e 's|/bin/sh|$(SHELL)|g' \ - -e 's|[@]bindir@|'\''$(bindir)'\''|g' \ + -e 's|[@]GREP@|$(GREP)|g' \ -e 's|[@]VERSION@|$(VERSION)|g' \ $(srcdir)/$@.in >$@-t \ - && chmod a+x $@-t \ + && chmod a=rx $@-t \ && mv $@-t $@ # Arrange so that .tarball-version appears only in the distribution @@ -99,25 +99,32 @@ gen_start_date = 2008-01-01 gen-ChangeLog: $(AM_V_GEN)if test -d .git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog \ - --since=$(gen_start_date) > $(distdir)/cl-t; \ - rm -f $(distdir)/ChangeLog; \ - mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + --since=$(gen_start_date) > $(distdir)/cl-t && \ + { rm -f $(distdir)/ChangeLog && \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; } \ fi +# Prepend "." to $PATH: +new_path = PATH=.$(PATH_SEPARATOR)$$PATH + # A simple test, just of gzip -- more of a sanity check than anything else. FILES_TO_CHECK = $(bin_SCRIPTS) \ $(top_srcdir)/ChangeLog $(top_srcdir)/configure $(top_srcdir)/gzip.c check-local: $(FILES_TO_CHECK) $(bin_PROGRAMS) gzip.doc.gz - { test '$(srcdir)' != . || ./zdiff --__bindir . -c gzip.doc.gz; } - ./zdiff --__bindir . -c $(srcdir)/gzip.doc $(srcdir)/gzip.doc - ./zdiff --__bindir . $(srcdir)/gzip.doc gzip.doc.gz - ./zdiff --__bindir . -c - $(srcdir)/gzip.doc /dev/null - for file in $(FILES_TO_CHECK); do \ - ./gzip -cv -- "$$file" | ./gzip -d | cmp - "$$file" || exit 1; \ + $(AM_V_GEN)$(new_path); { test '$(srcdir)' != . \ + || zdiff gzip.doc.gz; } + $(AM_V_at)$(new_path); zdiff $(srcdir)/gzip.doc $(srcdir)/gzip.doc + $(AM_V_at)$(new_path); zdiff $(srcdir)/gzip.doc gzip.doc.gz + $(AM_V_at)$(new_path); zdiff - $(srcdir)/gzip.doc /dev/null + $(AM_V_at)$(new_path); \ + for opt in --rsyncable '' -1 -9; do \ + for file in $(FILES_TO_CHECK); do \ + gzip $$opt -c -- "$$file" \ + | gzip -d | cmp - "$$file" || exit 1; \ + done; \ done - @echo 'Test succeeded.' install-exec-hook: remove-installed-links install-exec-hook remove-installed-links: