diff options
Diffstat (limited to 'doc/arch.doc')
-rw-r--r-- | doc/arch.doc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/arch.doc b/doc/arch.doc index d257169..939a832 100644 --- a/doc/arch.doc +++ b/doc/arch.doc @@ -199,7 +199,7 @@ wrote the following perl script, which automatically adds or removes -d from the correct line in the Makefile: \verbatim -#!/usr/local/bin/perl +#!/usr/bin/perl $file = shift @ARGV; print "Toggle debugging mode for $file\n"; @@ -216,10 +216,10 @@ if (open(F,"<Makefile.libdoxygen.old")) { } print "Processing Makefile.libdoxygen...\n"; while (<F>) { - if ( s/\(LEX\) -P([a-zA-Z]+)YY -t $file/(LEX) -d -P\1YY -t $file/g ) { + if ( s/\(LEX\) (-i )?-P([a-zA-Z]+)YY -t $file/(LEX) -d \1-P\2YY -t $file/g ) { print "Enabling debug info for $file\n"; } - elsif ( s/\(LEX\) -d -P([a-zA-Z]+)YY -t $file/(LEX) -P\1YY -t $file/g ) { + elsif ( s/\(LEX\) -d (-i )?-P([a-zA-Z]+)YY -t $file/(LEX) \1-P\2YY -t $file/g ) { print "Disabling debug info for $file\n"; } print G "$_"; @@ -234,6 +234,7 @@ else { # touch the file $now = time; utime $now, $now, $file + \endverbatim */ |