mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-06 17:39:29 +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:
9
Makefile
9
Makefile
@@ -569,6 +569,11 @@ check_public: $(ENCHILADA)
|
|||||||
# Check that the code works under various alternative
|
# Check that the code works under various alternative
|
||||||
# implementations of time_t.
|
# implementations of time_t.
|
||||||
check_time_t_alternatives:
|
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` && \
|
zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
|
||||||
for type in $(TIME_T_ALTERNATIVES); do \
|
for type in $(TIME_T_ALTERNATIVES); do \
|
||||||
mkdir -p tzpublic/$$type && \
|
mkdir -p tzpublic/$$type && \
|
||||||
@@ -577,7 +582,9 @@ check_time_t_alternatives:
|
|||||||
CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
|
CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
|
||||||
REDO='$(REDO)' \
|
REDO='$(REDO)' \
|
||||||
install && \
|
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 \
|
case $$type in \
|
||||||
int32_t) range=-2147483648,2147483647;; \
|
int32_t) range=-2147483648,2147483647;; \
|
||||||
uint32_t) range=0,4294967296;; \
|
uint32_t) range=0,4294967296;; \
|
||||||
|
|||||||
2
NEWS
2
NEWS
@@ -112,6 +112,8 @@ Unreleased, experimental changes
|
|||||||
|
|
||||||
'zdump' no longer links in ialloc.o, as it's not needed.
|
'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
|
Changes affecting distribution tarballs
|
||||||
|
|
||||||
The files checktab.awk and zoneinfo2tdf.pl are now distributed in
|
The files checktab.awk and zoneinfo2tdf.pl are now distributed in
|
||||||
|
|||||||
Reference in New Issue
Block a user