Print this page
XXX Remove nawk(1)
@@ -22,11 +22,10 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
TOOLDIR="${SRC}/cmd/sgs/tools/"
#
# remove the temporary files
@@ -35,11 +34,11 @@
rm -f MSG_INTL_LIST MSG_ORIG_LIST
while getopts "m:" Arg
do
case $Arg in
- m) nawk -f ${TOOLDIR}/catalog.awk $OPTARG ;;
+ m) /usr/xpg4/bin/awk -f ${TOOLDIR}/catalog.awk $OPTARG ;;
\?) echo "usage: chkmsg -m msgfile source-files" ; exit 1 ;;
esac
done
shift `expr $OPTIND - 1`
@@ -62,11 +61,11 @@
fi
#
# Generate the lists for the source files and sort them
#
-nawk -f ${TOOLDIR}/getmessage.awk $*
+/usr/xpg4/bin/awk -f ${TOOLDIR}/getmessage.awk $*
if [ -s MSG_INTL_LIST ] ; then
sed -e "s/_32$//" -e "s/_64$//" MSG_INTL_LIST | sort | uniq > _TMP
mv _TMP MSG_INTL_LIST
fi