5 DIR="${DIR-@datadir@/ss}"
10 if test "x$1" = x ; then
11 echo "Usage: mk_cmds file"
15 if test ! -f $DIR/ct_c.sed -o ! -f $DIR/ct_c.awk ; then
17 # echo "Falling back to $DIR..."
18 if test ! -f $DIR/ct_c.sed -o ! -f $DIR/ct_c.awk ; then
19 echo "mk_cmds: Couldn't find mk_cmds's template files."
25 ROOT=`echo $1 | sed -e s/.ct$//`
29 if test ! -f $FILE ; then
30 echo "$FILE: File not found"
34 ${SED} -f ${DIR}/ct_c.sed ${FILE} \
35 | ${AWK} -f ${DIR}/ct_c.awk rootname=${ROOT} outfile=${TMP} -
37 if grep "^#__ERROR_IN_FILE" ${TMP} > /dev/null; then