Mercurial > gnulib
diff top/maint.mk @ 15811:bc3da814a8b3
maint.mk: adjust a release-related rule not to require use of gzip
* top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
Instead, check each file in $(DIST_ARCHIVES). This is better for
projects that build only .tar.xz files. Also fix an erroneous test.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 01 Oct 2011 17:33:42 +0200 |
parents | d12c46223fa1 |
children | 427ccc55d08a |
line wrap: on
line diff
--- a/top/maint.mk Sat Oct 01 15:06:43 2011 +0200 +++ b/top/maint.mk Sat Oct 01 17:33:42 2011 +0200 @@ -1079,16 +1079,20 @@ halt=$(msg) \ $(_sc_search_regexp) -# Check that `make alpha' will not fail at the end of the process. +# Check that `make alpha' will not fail at the end of the process, +# i.e., when pkg-M.N.tar.xz already exists (either in "." or in ../release) +# and is read-only. writable-files: - if test -d $(release_archive_dir); then :; else \ - for file in $(distdir).tar.gz \ - $(release_archive_dir)/$(distdir).tar.gz; do \ - test -e $$file || continue; \ - test -w $$file \ - || { echo ERROR: $$file is not writable; fail=1; }; \ + if test -d $(release_archive_dir); then \ + for file in $(DIST_ARCHIVES); do \ + for p in ./ $(release_archive_dir)/; do \ + test -e $$p$$file || continue; \ + test -w $$p$$file \ + || { echo ERROR: $$p$$file is not writable; fail=1; }; \ + done; \ done; \ test "$$fail" && exit 1 || : ; \ + else :; \ fi v_etc_file = $(gnulib_dir)/lib/version-etc.c