summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-07-14 13:03:31 +0000
committerJim Meyering <jim@meyering.net>2001-07-14 13:03:31 +0000
commit8fadcd2d9e62999e4da69443d9e4b9b1319cf90e (patch)
treece548ee4e52d42160d9993f79475d84baefec1ff
parent049759fe0153b0793afe9fa58b9cb4548f7b8833 (diff)
downloadcoreutils-8fadcd2d9e62999e4da69443d9e4b9b1319cf90e.tar.xz
(tgz-size): Also work for sizes in the kilobyte range.
(GZIP_ENV): Add --best. (AMTAR): Define. (writable-files): Factor out ../release/ constant, and work (by creating it) even if such a directory doesn't exist.
-rw-r--r--Makefile.maint15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.maint b/Makefile.maint
index ed44fa9bb..e7ac07b15 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -34,7 +34,10 @@ po-check:
fi
# Do not save the original name or timestamp in the .tar.gz file.
-GZIP_ENV = --no-name
+GZIP_ENV = '--no-name --best'
+
+# Automake 1.4 does not define AMTAR.
+AMTAR ?= $(TAR)
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
@@ -90,8 +93,8 @@ url_dir_list = $(foreach x,$(hosts),ftp://$($(x)_host)/$($(x)_url_dir))
md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/ -//')
sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/ -//')
-tgz-size = $(shell du --human $(my_distdir).tar.gz|sed 's/M.*/MB/')
-xd-size = $(shell du --human $(xd-delta)|sed 's/M.*/MB/')
+tgz-size = $(shell du --human $(my_distdir).tar.gz|sed 's/\([Mk]\).*/ \1B/')
+xd-size = $(shell du --human $(xd-delta)|sed 's/\([Mk]\).*/ \1B/')
rel-check:
tarz=/tmp/rel-check-tarz-$$$$; \
@@ -140,8 +143,12 @@ announcement: NEWS ChangeLog $(distdir).tar.gz
)
writable-files:
+ if test -d $(release-archive-dir); then :; else \
+ mkdir $(release-archive-dir); \
+ fi
for file in $(distdir).tar.gz $(xd-delta) \
- ../release/$(distdir).tar.gz ../release/$(xd-delta); do \
+ $(release-archive-dir)/$(distdir).tar.gz \
+ $(release-archive-dir)/$(xd-delta); do \
test -e $$file || continue; \
test -w $$file \
|| { echo ERROR: $$file is not writable; fail=1; }; \