454N/A#! /bin/sh
454N/A#
454N/A# Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
454N/A#
454N/A
454N/A#
454N/A# Create messages file for zone_sun.tab, country.tab, continent.tab
454N/A#
454N/AAWK=/usr/bin/nawk
454N/AECHO=/usr/bin/echo
454N/A
454N/AZONE_SUN_FILE=zone_sun.tab
454N/ACOUNTRY_FILE=country.tab
454N/ACONTINENT_FILE=continent.tab
454N/A
454N/ADOMAIN=SUNW_OST_ZONEINFO
454N/A
454N/A$ECHO "domain \"$DOMAIN\""
454N/A
454N/A$ECHO "#"
454N/A$ECHO "# These files are located in components/timezone."
454N/A$ECHO "#"
454N/A
454N/A$ECHO "#"
454N/A$ECHO "# continent.tab"
454N/A$ECHO "#"
454N/A
454N/A# Get 2nd column of continent.tab file
454N/A$AWK -F'\t' \
454N/A '
454N/A /^#/ { next }
454N/A {
454N/A printf "msgid \"%s\"\n", $2
454N/A printf "msgstr \"\"\n"
454N/A }
454N/A ' < $CONTINENT_FILE
454N/A
454N/A$ECHO "#"
454N/A$ECHO "# country.tab"
454N/A$ECHO "#"
454N/A
454N/A# Get 2nd column of country.tab file
454N/A$AWK -F'\t' \
454N/A '
454N/A /^#/ { next }
454N/A {
454N/A printf "msgid \"%s\"\n", $2
454N/A printf "msgstr \"\"\n"
454N/A }
454N/A ' < $COUNTRY_FILE
454N/A
454N/A
454N/A$ECHO "#"
454N/A$ECHO "# zone.tab"
454N/A$ECHO "#"
454N/A
454N/A# Get 5th column (if it exists) of zone_sun.tab file
454N/A$AWK -F'\t' \
454N/A '
454N/A /^#/ { next }
454N/A {
454N/A if (NF > 4) {
454N/A printf "msgid \"%s\"\n", $5
454N/A printf "msgstr \"\"\n"
454N/A }
454N/A }
454N/A ' < $ZONE_SUN_FILE
454N/A