1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-20 04:32:11 +00:00

Use a single version number for both code and data.

* Makefile (VERSION): New macro, superseding ...
(TZCODE_VERSION, TZDATA_VERSION): Remove.  All uses changed.
(version.h): Call the variable TZVERSION, not TZCODE_VERSION.
All uses changed.
(tzselect): Interpolate TZVERSION, not TZCODE_VERSION.
(public): Adjust to new versioning scheme.
* tzselect.ksh (TZVERSION): Rename from TZCODE_VERSION.
* zdump.c, zic.c (main): Use TZVERSION, not TZCODE_VERSION.
This commit is contained in:
Paul Eggert
2012-07-25 07:46:06 -07:00
parent e785904cd0
commit 33232258ad
4 changed files with 9 additions and 10 deletions

View File

@ -3,8 +3,7 @@
# 2009-05-17 by Arthur David Olson.
# Version numbers of the code and data distributions.
TZCODE_VERSION = tzcode2012c
TZDATA_VERSION = tzdata2012d
VERSION = 2012d
# Change the line below for your time zone (after finding the zone you want in
# the time zone files, or adding it to a time zone file).
@ -327,7 +326,7 @@ INSTALL: ALL install date.1
version.h:
echo >$@ \
'static char const TZCODE_VERSION[]="$(TZCODE_VERSION)";'
'static char const TZVERSION[]="tz$(VERSION)";'
zdump: $(TZDOBJS)
$(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
@ -379,7 +378,7 @@ tzselect: tzselect.ksh
sed \
-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
-e 's|\(TZCODE_VERSION\)=.*|\1=$(TZCODE_VERSION)|' \
-e 's|\(TZVERSION\)=.*|\1=tz$(VERSION)|' \
<$? >$@
chmod +x $@
@ -437,10 +436,10 @@ public: $(ENCHILADA) set-timestamps
$(AWK) -f checktab.awk $(PRIMARY_YDATA)
LC_ALL=C && export LC_ALL && \
tar $(TARFLAGS) -cf - $(DOCS) $(SOURCES) $(MISC) *.[1-8].txt | \
gzip $(GZIPFLAGS) > $(TZCODE_VERSION).tar.gz
gzip $(GZIPFLAGS) > tzcode$(VERSION).tar.gz
LC_ALL=C && export LC_ALL && \
tar $(TARFLAGS) -cf - $(DATA) | \
gzip $(GZIPFLAGS) > $(TZDATA_VERSION).tar.gz
gzip $(GZIPFLAGS) > tzdata$(VERSION).tar.gz
typecheck:
make clean