summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-10-01 17:33:42 +0200
committerJim Meyering <meyering@redhat.com>2011-10-01 17:34:07 +0200
commit244794a7887f13d9cdb91fed96932cc479905b96 (patch)
treea884578300bf9d016102c4459a9de66320a21745 /top
parent249999fae8f857a1ab285dc936e697f1e10138e9 (diff)
downloadgnulib-244794a7887f13d9cdb91fed96932cc479905b96.tar.gz
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.
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 0137df10fa..51f617bb48 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1079,16 +1079,20 @@ sc_makefile_path_separator_check:
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