* mk_cmds.sh: use ${SED} not sed in backtick expressions.
authorMark Eichin <eichin@mit.edu>
Thu, 23 Feb 1995 19:47:08 +0000 (19:47 +0000)
committerMark Eichin <eichin@mit.edu>
Thu, 23 Feb 1995 19:47:08 +0000 (19:47 +0000)
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

src/util/ss/ChangeLog
src/util/ss/mk_cmds.sh

index 5447c7b69da5c0d13a73c8d4a357d12c63ab2ce1..a4be3c799544116af940c978a7a09f39274c14c8 100644 (file)
@@ -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)
 
index 0066422eb3386ba970961e8b57f660fddf1cdaaf..aaf3256b519f17b121011b8a2e3800ad005d9d0c 100644 (file)
@@ -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} -