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
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)
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} -