2 # $NetBSD: mkscripts.sh,v 1.10 1995/04/23 10:07:36 cgd Exp $
4 # This script generates ed test scripts (.ed) from .t files
6 PATH
="/bin:/usr/bin:/usr/local/bin/:."
8 [ ! -x $ED ] && { echo "$ED: cannot execute"; exit 1; }
12 # base=`echo $i | sed 's/\..*//'`
13 # base=`expr $i : '\([^.]*\)'`
23 # The following is pretty ugly way of doing the above, and not appropriate
24 # use of ed but the point is that it can be done...
25 base
=`$ED - \!"echo $i" <<-EOF
45 # base=`echo $i | sed 's/\..*//'`
46 # base=`expr $i : '\([^.]*\)'`
56 # chmod +x $base-err.ed
57 # The following is pretty ugly way of doing the above, and not appropriate
58 # use of ed but the point is that it can be done...
59 base
=`$ED - \!"echo $i" <<-EOF