[llvm-commits] CVS: llvm/test/Scripts/grep-not

Chris Lattner lattner at cs.uiuc.edu
Sat Jun 28 17:29:01 PDT 2003


Changes in directory llvm/test/Scripts:

grep-not added (r1.1)

---
Log message:

Initial checkin of grep-not script


---
Diffs of the changes:

Index: llvm/test/Scripts/grep-not
diff -c /dev/null llvm/test/Scripts/grep-not:1.1
*** /dev/null	Sat Jun 28 17:28:41 2003
--- llvm/test/Scripts/grep-not	Sat Jun 28 17:28:31 2003
***************
*** 0 ****
--- 1,19 ----
+ #!/bin/sh
+ #
+ # Program: grep-not
+ #
+ # Synopsis: Search the input to the program for a regular expression, working
+ #           just like grep.  The only difference is that we return success if
+ #           the pattern was not found, and failure if it was.  This is useful
+ #           for TestRunner tests which want to make sure something DOES NOT
+ #           occur in the output of a command.
+ #
+ # Syntax:   The same as grep
+ 
+ if grep $@
+ then exit 1
+ else exit 0
+ fi
+     
+ 
+ 





More information about the llvm-commits mailing list