3 TESTFILES
="Makefile.am scanner.l parser.y .cvsignore test.input"
5 if [ ! $# -eq 1 ] ; then
6 echo 1>&2 Usage
: $0 test-name
10 if test -e "$1" ; then
11 echo 1>&2 "$1 exists already"
16 if test "$?" -ne 0 ; then
17 echo 1>&2 "mkdir $1 failed"
21 for i
in $TESTFILES ; do
25 echo "$1" >> "$1"/.cvsignore
27 sed -i '/--new-test-here--/i\
28 tests/'"$1"'/Makefile' ..
/configure.
in
30 sed -i '/^\(DIST_\)\?SUBDIRS/a\
31 '"$1"' \\' Makefile.am
33 sed -i "s:TEMPLATE:$1:g" "$1"/Makefile.am