Print this page
XXX Remove nawk(1)
*** 22,32 ****
#
# 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
--- 22,31 ----
*** 35,45 ****
rm -f MSG_INTL_LIST MSG_ORIG_LIST
while getopts "m:" Arg
do
case $Arg in
! m) nawk -f ${TOOLDIR}/catalog.awk $OPTARG ;;
\?) echo "usage: chkmsg -m msgfile source-files" ; exit 1 ;;
esac
done
shift `expr $OPTIND - 1`
--- 34,44 ----
rm -f MSG_INTL_LIST MSG_ORIG_LIST
while getopts "m:" Arg
do
case $Arg in
! 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,72 ****
fi
#
# Generate the lists for the source files and sort them
#
! nawk -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
--- 61,71 ----
fi
#
# Generate the lists for the source files and sort them
#
! /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