Remove building with NOCRYPTO option
[minix3.git] / external / bsd / flex / dist / tests / create-test
blob05e686424f0d8a045f0f8af9b7817afcd8a143a9
1 #!/bin/sh
3 TESTFILES="Makefile.am scanner.l parser.y .cvsignore test.input"
5 if [ ! $# -eq 1 ] ; then
6 echo 1>&2 Usage: $0 test-name
7 exit 1
8 fi
10 if test -e "$1" ; then
11 echo 1>&2 "$1 exists already"
12 exit 1
15 mkdir $1
16 if test "$?" -ne 0 ; then
17 echo 1>&2 "mkdir $1 failed"
18 exit 1
21 for i in $TESTFILES ; do
22 cp TEMPLATE/$i $1/$i
23 done
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