Cross Reference: do_pofile.sh
xref
: /
solaris-userland-s11u3
/
components
/
timezone
/
do_pofile.sh
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
454
N/A
#! /
bin
/
sh
454
N/A
#
454
N/A
# Copyright (c) 2001, 2011, Oracle
and
/
or
its affiliates. All rights reserved.
454
N/A
#
454
N/A
454
N/A
#
454
N/A
# Create messages file for
zone_sun.tab
,
country.tab
,
continent.tab
454
N/A
#
454
N/A
AWK
=/
usr
/
bin
/
nawk
454
N/A
ECHO
=/
usr
/
bin
/
echo
454
N/A
454
N/A
ZONE_SUN_FILE
=
zone_sun.tab
454
N/A
COUNTRY_FILE
=
country.tab
454
N/A
CONTINENT_FILE
=
continent.tab
454
N/A
454
N/A
DOMAIN
=
SUNW_OST_ZONEINFO
454
N/A
454
N/A
$ECHO
"domain \"
$DOMAIN
\""
454
N/A
454
N/A
$ECHO
"#"
454
N/A
$ECHO
"# These files are located in
components
/
timezone
."
454
N/A
$ECHO
"#"
454
N/A
454
N/A
$ECHO
"#"
454
N/A
$ECHO
"#
continent.tab
"
454
N/A
$ECHO
"#"
454
N/A
454
N/A
# Get 2nd column of
continent.tab
file
454
N/A
$AWK
-F
'\t'
\
454
N/A
'
454
N/A
/^#/ { next }
454
N/A
{
454
N/A
printf "msgid \"%s\"\n", $2
454
N/A
printf "msgstr \"\"\n"
454
N/A
}
454
N/A
'
<
$CONTINENT_FILE
454
N/A
454
N/A
$ECHO
"#"
454
N/A
$ECHO
"#
country.tab
"
454
N/A
$ECHO
"#"
454
N/A
454
N/A
# Get 2nd column of
country.tab
file
454
N/A
$AWK
-F
'\t'
\
454
N/A
'
454
N/A
/^#/ { next }
454
N/A
{
454
N/A
printf "msgid \"%s\"\n", $2
454
N/A
printf "msgstr \"\"\n"
454
N/A
}
454
N/A
'
<
$COUNTRY_FILE
454
N/A
454
N/A
454
N/A
$ECHO
"#"
454
N/A
$ECHO
"#
zone.tab
"
454
N/A
$ECHO
"#"
454
N/A
454
N/A
# Get 5th column (if it exists) of
zone_sun.tab
file
454
N/A
$AWK
-F
'\t'
\
454
N/A
'
454
N/A
/^#/ { next }
454
N/A
{
454
N/A
if (NF > 4) {
454
N/A
printf "msgid \"%s\"\n", $5
454
N/A
printf "msgstr \"\"\n"
454
N/A
}
454
N/A
}
454
N/A
'
<
$ZONE_SUN_FILE
454
N/A