From: Mark Eichin Date: Thu, 23 Feb 1995 19:47:08 +0000 (+0000) Subject: * mk_cmds.sh: use ${SED} not sed in backtick expressions. X-Git-Tag: krb5-1.0-beta5~672 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a86a35ca434fb10da6c5eabd2cd2c6c48aebb181;p=krb5.git * mk_cmds.sh: use ${SED} not sed in backtick expressions. Explicitly check for ${FILE} since sed doesn't give an error if it is absent. Also set -e to catch other conditions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4996 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 5447c7b69..a4be3c799 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,7 +1,8 @@ Thu Feb 23 14:24:31 1995 Mark Eichin (eichin@cygnus.com) * mk_cmds.sh: use ${SED} not sed in backtick expressions. - Use set -e so that if ${FILE} isn't found we actually fail. + Explicitly check for ${FILE} since sed doesn't give an error if it + is absent. Also set -e to catch other conditions. Sat Oct 22 09:54:50 1994 (tytso@rsx-11) diff --git a/src/util/ss/mk_cmds.sh b/src/util/ss/mk_cmds.sh index 0066422eb..aaf3256b5 100644 --- a/src/util/ss/mk_cmds.sh +++ b/src/util/ss/mk_cmds.sh @@ -12,6 +12,11 @@ ROOT=`echo $1 | ${SED} -e s/.ct$//` BASE=`echo $ROOT | ${SED} -e 's;.*/;;'` TMP=ct$$.c +if [ ! -r ${FILE} ] ; then + echo mk_cmds: ${FILE} not found + exit 1 +fi + ${SED} -f ${DIR}/ct_c.sed ${FILE} \ | ${AWK} -f ${DIR}/ct_c.awk rootname=${ROOT} outfile=${TMP} -