#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "%Z%%M% %I% %E% SMI"
#
# Create messages file for zone_sun.tab, country.tab, continent.tab
#
$ECHO "#"
$ECHO "#"
$ECHO "#"
$ECHO "# continent.tab"
$ECHO "#"
# Get 2nd column of continent.tab file
$AWK -F'\t' \
'
/^#/ { next }
{
printf "msgid \"%s\"\n", $2
printf "msgstr \"\"\n"
}
' < $CONTINENT_FILE
$ECHO "#"
$ECHO "# country.tab"
$ECHO "#"
# Get 2nd column of country.tab file
$AWK -F'\t' \
'
/^#/ { next }
{
printf "msgid \"%s\"\n", $2
printf "msgstr \"\"\n"
}
' < $COUNTRY_FILE
$ECHO "#"
$ECHO "#"
# Get 5th column (if it exists) of zone_sun.tab file
$AWK -F'\t' \
'
/^#/ { next }
{
if (NF > 4) {
printf "msgid \"%s\"\n", $5
printf "msgstr \"\"\n"
}
}
' < $ZONE_SUN_FILE