~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to doc/tools/latex_filter

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# First argument is the number of lines to treat
 
4
# Second argument is optional and, if it is "no", overfull are not displayed
 
5
 
 
6
i=$1
 
7
nooverfull=$2
 
8
error=0
 
9
verbose=0
 
10
chapter=""
 
11
file=""
 
12
while : ; do 
 
13
  read -r line; 
 
14
  case $line in
 
15
    "! "*)
 
16
      echo $line $file;
 
17
      error=1
 
18
      verbose=1
 
19
      ;;
 
20
    "LaTeX Font Info"*|"LaTeX Info"*|"Underfull "*)
 
21
      verbose=0
 
22
      ;;
 
23
    "Overfull "*)
 
24
      verbose=0
 
25
      if [ "$nooverfull" != "no" ]; then echo $line $file; fi
 
26
      ;;
 
27
    "LaTeX "*)
 
28
      verbose=0
 
29
      echo $line $chapter
 
30
      ;;
 
31
    "["*|"Chapter "*)
 
32
      verbose=0
 
33
      ;;
 
34
    "(./"*)
 
35
      file="(file `echo $line | cut -b 4- | cut -d' ' -f 1`)"
 
36
      verbose=0
 
37
      ;;
 
38
    *)
 
39
      if [ $verbose = 1 ]; then echo $line; fi
 
40
  esac;
 
41
  if [ "$i" = "0" ]; then break; else i=`expr $i - 1`; fi; 
 
42
done
 
43
exit $error