diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-10 04:56:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-10 04:56:59 +0000 |
commit | e2d76237ecaa1b16ac2fce4b47477b47f5499b7a (patch) | |
tree | 45f972bf60b479a6cda141f81afad021ffb1607f /llvm/test/Scripts | |
parent | 1d9d4bdc993c384342603e4354762eb36c1c569f (diff) | |
download | bcm5719-llvm-e2d76237ecaa1b16ac2fce4b47477b47f5499b7a.tar.gz bcm5719-llvm-e2d76237ecaa1b16ac2fce4b47477b47f5499b7a.zip |
Remove prcontext.
llvm-svn: 81427
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-x | llvm/test/Scripts/prcontext.tcl | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/llvm/test/Scripts/prcontext.tcl b/llvm/test/Scripts/prcontext.tcl deleted file mode 100755 index 5ab0854b0b3..00000000000 --- a/llvm/test/Scripts/prcontext.tcl +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/tclsh -# -# Usage: -# prcontext <pattern> <# lines of context> -# (for platforms that don't have grep -C) - - -# -# Get the arguments -# -set pattern [lindex $argv 0] -set num [lindex $argv 1] - - -# -# Get all of the lines in the file. -# -set lines [split [read stdin] \n] - -set index 0 -foreach line $lines { - if { [regexp $pattern $line match matchline] } { - if { [ expr [expr $index - $num] < 0 ] } { - set bottom 0 - } else { - set bottom [expr $index - $num] - } - set endLineNum [ expr [expr $index + $num] + 1] - while {$bottom < $endLineNum} { - set output [lindex $lines $bottom] - puts $output - set bottom [expr $bottom + 1] - } - } - set index [expr $index + 1] -}
\ No newline at end of file |