]> granicus.if.org Git - flex/commitdiff
complain audibly when argument not supplied; echo on stderr when writing error messages
authorWill Estes <wlestes@users.sourceforge.net>
Mon, 23 Sep 2002 20:39:53 +0000 (20:39 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Mon, 23 Sep 2002 20:39:53 +0000 (20:39 +0000)
tests/create-test

index e02c2c0efaec891fe3f83e621023d8d7059f03c0..60d57f2a527d443f734c4506894872325e0ca09c 100755 (executable)
@@ -3,17 +3,18 @@
 TESTFILES="Makefile.am scanner.l parser.y .cvsignore test.input"
 
 if [ ! $# -eq 1 ] ; then
+   echo 1>&2 Usage: $0 test-name
    exit 1
 fi
 
 if test -e "$1" ; then
-    echo "$1 exists already"
+    echo 1>&2 "$1 exists already"
     exit 1
 fi
 
 mkdir $1 
 if test "$?" -ne 0 ; then
-    echo "mkdir $1 failed"
+    echo 1>&2 "mkdir $1 failed"
     exit 1
 fi