home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-04 | 901 b | 34 lines | [TEXT/MPS ] |
- Perl -Sx "{0}" {"Parameters"}>"{TempFolder}"noweb.run
- "{TempFolder}"noweb.run
- Exit
-
- #!perl
- # Copyright 1991 by Norman Ramsey. All rights reserved.
- # See file COPYRIGHT for more information.
-
- $mntopt = "-L";
- $markup = "markup";
-
- while ($arg = shift @ARGV) {
- if ($arg =~ /^-(ml|m3|awk|perl|icn|icon|make|pascal|c|c\+\+|f77|f90|tex|w\d+)$/) {
- # deliberately ignore nountangle args
- } elsif ($arg eq "-t") {
- # this is default
- } elsif ($arg =~ /^-t.+/) {
- $markopt .= " -t";
- $opt .= " $arg";
- } elsif ($arg eq "-filter") {
- $filter = shift @ARGV;
- $filters .= " $filter |";
- } elsif ($arg =~ /^-/) {
- $opt .= " $arg";
- } elsif ($arg eq "-markup") {
- $markup = shift @ARGV;
- } else {
- $args .= " $arg";
- }
- }
-
- print "Set Commands \"||LIB||," . $ENV{Commands} ."\"; Export Commands\n";
- print "$markup $markopt $args | $filters nt $opt\n";
-