1 #!/bin/sh 2 3 version=tzdata2010k 4 5 mkdir data 6 7 for i in $version/africa \ 8 $version/antarctica \ 9 $version/asia \ 10 $version/australasia \ 11 $version/etcetera \ 12 $version/europe \ 13 $version/factory \ 14 $version/northamerica \ 15 $version/solar87 \ 16 $version/solar88 \ 17 $version/solar89 \ 18 $version/southamerica 19 do 20 zic -d data $i 21 done 22 23 javac -target 1.5 ZoneCompactor.java ZoneInfo.java 24 25 ( 26 cat $version/* | grep '^Link' | awk '{print $1, $2, $3}' 27 ( 28 cat $version/* | grep '^Zone' | awk '{print $2}' 29 cat $version/* | grep '^Link' | awk '{print $3}' 30 ) | LC_ALL="C" sort 31 ) | grep -v Riyadh8 > setup 32 33 java ZoneCompactor setup data 34 35 cp zoneinfo.dat zoneinfo.idx ../../../bionic/libc/zoneinfo 36 37 echo $version | sed 's/tzdata//' > ../../../bionic/libc/zoneinfo/zoneinfo.version 38