~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to utils/chktex/chktex-1.6.6/MakeHTML.pl

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-04-10 10:16:01 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120410101601-7mt8nyn280xrgza6
Tags: 2011.20120410-1
* new upstream checkout:
  - remove decls of popen and pclose (Closes: #64524) (!yow, 5 digit bug!)
  - do not declare getopt in C++, fixes FTBFS with g++ >= 4.7 
    (Closes: #667392)
* add patches (maybe to be included upstream) that allows inclusion of
  one config file in another for (x)dvipdfmx. This will be
  used by the paper code.
* fix description of libptexenc-dev package (Closes: #667694)
* remove xdvik patch, included upstream
* remove conflict with ptex-bin, we are building a transitional package now
* build with internal t1lib, as t1lib is going to disappear in
  wheezy (Closes: #667912) (no, dropping xdvi is not an option!)
  (add a lintian override otherwise this gives a lintian error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Remove parts of code enclosed in %latex/%endlatex tags
 
2
 
 
3
$latexonly = 0;
 
4
 
 
5
while(<>)
 
6
{
 
7
    $latexonly = 1 if /^%latex/i;
 
8
    $latexonly = 0 if /^%endlatex/i;
 
9
    
 
10
 
 
11
    if($latexonly) {
 
12
        if(/^%!(.*)/)
 
13
        {
 
14
            print $1;
 
15
        }
 
16
    }
 
17
    else {
 
18
        print;
 
19
    }
 
20
}