diff options
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r-- | chapter06/glibc.xml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index bddf4e570..87e113292 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -333,17 +333,20 @@ EOF</userinput></screen> <para>Install timezone data:</para> <screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz -mkdir -pv /usr/share/zoneinfo/{posix,right} - -for tz in etcetera southamerica northamerica europe africa antarctica \ - asia australasia backward pacificnew solar87 solar88 solar89 systemv; do - zic -L /dev/null -d /usr/share/zoneinfo -y "sh yearistype.sh" ${tz} - zic -L /dev/null -d /usr/share/zoneinfo/posix -y "sh yearistype.sh" ${tz} - zic -L leapseconds -d /usr/share/zoneinfo/right -y "sh yearistype.sh" ${tz} +ZONEINFO=/usr/share/zoneinfo +mkdir -pv $ZONEINFO/{posix,right} + +for tz in etcetera southamerica northamerica europe africa antarctica \ + asia australasia backward pacificnew solar87 solar88 solar89 \ + systemv; do + zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz} + zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz} + zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz} done -cp -v zone.tab iso3166.tab /usr/share/zoneinfo -zic -d /usr/share/zoneinfo -p America/New_York</userinput></screen> +cp -v zone.tab iso3166.tab $ZONEINFO +zic -d $ZONEINFO -p America/New_York +unset ZONEINFO</userinput></screen> <variablelist> <title>The meaning of the zic commands:</title> |