diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-11-02 19:11:06 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-11-02 19:11:06 (GMT) |
commit | 33c55bd916dff8c4932b01c7db58f0103ac31c31 (patch) | |
tree | a4cdca3287dd2df5247ce8079c424ffa438b4c2e /ast/selectfc | |
parent | 4121637f3d41d6dc23e6543a445b5a3aed9e6ddc (diff) | |
download | blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.zip blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.gz blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.bz2 |
update ast
Diffstat (limited to 'ast/selectfc')
-rwxr-xr-x | ast/selectfc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ast/selectfc b/ast/selectfc deleted file mode 100755 index abf0dc7..0000000 --- a/ast/selectfc +++ /dev/null @@ -1,29 +0,0 @@ -#! /usr/bin/env perl - - $key = "c"; - $select = 1; - -# Read switches. - while ( $_ = $ARGV[0], /^-/ ) { - shift; - last if /^--$/; - if ( /^-f/ ) { $key = "f" }; - } - -# Read input lines. - line: while (<>) { - -# Detect start of prologue and initialise prologue text. - if ( /^[fc]\+ *$/ ) { - $select = 0; - if ( /^$key\+ *$/o ) { $select = 1; } - next line; - } - -# Detect end of prologue. - if ( /^[fc]- *$/ ) { $select = 1; next line } - -# Process the prologue contents. - if ( $select ) { print; } - - } |