Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2007-04-23 19:12:34 -0700 (Mon, 23 Apr 2007)
Revision: 10487
Log message:

      Process the #! lines.  For example, you can start your file with
     
        #!omake --verbose
     
     This means that if you write a script "foo" beginning with:
     
        #!/usr/bin/env osh <options>
     
     then the following are the same.
     
        % ./foo
        % osh foo
     
     Another point is that the options are processed at parse time,
     so options like -warn-error are handled correctly.

Changes  Path
+4 -3 omake-branches/0.9.8.x/src/ast/omake_ast.ml
+7 -3 omake-branches/0.9.8.x/src/ast/omake_ast_print.ml
+10 -6 omake-branches/0.9.8.x/src/ast/omake_ast_util.ml
+5 -5 omake-branches/0.9.8.x/src/builtin/omake_builtin_rule.ml
+16 -2 omake-branches/0.9.8.x/src/env/omake_ast_lex.mll
+11 -0 omake-branches/0.9.8.x/src/env/omake_ast_parse.input
+14 -7 omake-branches/0.9.8.x/src/env/omake_env.ml
+3 -2 omake-branches/0.9.8.x/src/env/omake_env.mli
+14 -0 omake-branches/0.9.8.x/src/env/omake_ir_ast.ml
+2 -1 omake-branches/0.9.8.x/src/ir/omake_symbol.ml