blob: e7089404c8b4d0bce19fceb4b186d68b9747d979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/usr/bin/make -f
include ../source.mk
tables = \
africa \
antarctica \
asia \
australasia \
europe \
northamerica \
southamerica \
etcetera \
backward \
factory
nop:
@:
build:
for t in $(tables); do \
/usr/sbin/zic -d dest/usr/share/zoneinfo \
-L /dev/null -y yearistype.sh \
src/$${t} || exit $?; \
done
/usr/sbin/zic -d dest/usr/share/zoneinfo -p America/New_York
touch $@
install: build
for t in $(tables); do \
mkdir -p tzdata-$${t}.data/usr/share/zoneinfo; \
cp -p dest/usr/share/zoneinfo/posixrules \
tzdata-$${t}.data/usr/share/zoneinfo/posixrules; \
cp src/iso3166.tab src/zone.tab \
tzdata-$${t}.data/usr/share/zoneinfo; \
exec 3>../tzdata-$${t}.pkg/files; \
grep '^Zone' src/$${t} | while read type zone etc; do \
printf '/usr/share/zoneinfo/%s\n' "$${zone}" >&3; \
done; \
grep '^Link' src/$${t} | while read type link zone etc; do \
printf '/usr/share/zoneinfo/%s\n' "$${zone}" >&3; \
done; \
exec 3>&-; \
done
rm -f dest/usr/share/zoneinfo/posixrules
oh-fixperms
oh-installfiles
for t in $(tables); do \
rm -f ../tzdata-$${t}.pkg/files; \
done
|