1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 11:05:41 +00:00

Port 'make check_time_t_alternatives' to Solaris 10.

* Makefile (check_time_t_alternatives): Don't assume 'diff'
has the -q option, since POSIX does not require -q.
* NEWS: Document this.
This commit is contained in:
Paul Eggert
2014-08-25 13:24:12 -07:00
parent 2b935b775c
commit 82f519e703
2 changed files with 10 additions and 1 deletions

View File

@@ -569,6 +569,11 @@ check_public: $(ENCHILADA)
# Check that the code works under various alternative
# implementations of time_t.
check_time_t_alternatives:
if diff -q Makefile Makefile 2>/dev/null; then \
quiet_option='-q'; \
else \
quiet_option=''; \
fi && \
zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
for type in $(TIME_T_ALTERNATIVES); do \
mkdir -p tzpublic/$$type && \
@@ -577,7 +582,9 @@ check_time_t_alternatives:
CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
REDO='$(REDO)' \
install && \
diff -qr tzpublic/int64_t/etc/zoneinfo tzpublic/$$type/etc/zoneinfo && \
diff $$quiet_option -r \
tzpublic/int64_t/etc/zoneinfo \
tzpublic/$$type/etc/zoneinfo && \
case $$type in \
int32_t) range=-2147483648,2147483647;; \
uint32_t) range=0,4294967296;; \

2
NEWS
View File

@@ -112,6 +112,8 @@ Unreleased, experimental changes
'zdump' no longer links in ialloc.o, as it's not needed.
'make check_time_t_alternatives' no longer assumes GNU diff.
Changes affecting distribution tarballs
The files checktab.awk and zoneinfo2tdf.pl are now distributed in