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

« back to all changes in this revision

Viewing changes to doc/stdlib/make-library-index

  • 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
# Instantiate links to library files in index template
 
4
 
 
5
FILE=$1
 
6
 
 
7
cp -f $FILE.template tmp
 
8
echo -n Building file index-list.prehtml ...
 
9
 
 
10
LIBDIRS="Init Logic Bool Arith NArith ZArith QArith Relations Sets Classes Setoids Lists Sorting Wellfounded FSets Reals Program Numbers Numbers/Natural/Abstract Numbers/Natural/Peano Numbers/Natural/Binary Numbers/Natural/BigN Numbers/Natural/SpecViaZ Numbers/Integer/Abstract Numbers/Integer/NatPairs Numbers/Integer/Binary Numbers/Integer/SpecViaZ Numbers/Integer/BigZ Numbers/NatInt Numbers/Cyclic/Abstract Numbers/Cyclic/Int31 Numbers/Cyclic/ZModulo Numbers/Cyclic/DoubleCyclic Numbers/Rational/BigQ Numbers/Rational/SpecViaQ Strings" 
 
11
 
 
12
for k in $LIBDIRS; do
 
13
    i=theories/$k
 
14
    echo $i
 
15
    
 
16
    d=`basename $i`
 
17
    if [ "$d" != "Num" -a "$d" != "CVS" ]; then
 
18
        for j in $i/*.v; do
 
19
            b=`basename $j .v`
 
20
            rm -f tmp2
 
21
            grep -q theories/$k/$b.v tmp
 
22
            a=$?
 
23
            if [ $a = 0 ]; then
 
24
                p=`echo $k | sed 's:/:.:g'`
 
25
                sed -e "s:theories/$k/$b.v:<a href=\"Coq.$p.$b.html\">$b</a>:g" tmp > tmp2
 
26
                mv -f tmp2 tmp
 
27
            else
 
28
                echo Warning: theories/$k/$b.v is missing in the template file
 
29
            fi
 
30
        done
 
31
    fi
 
32
    rm -f tmp2
 
33
    sed -e "s/#$d#//" tmp > tmp2
 
34
    mv -f tmp2 tmp
 
35
done
 
36
a=`grep theories tmp`
 
37
if [ $? = 0 ]; then echo Warning: extra files:; echo $a; fi
 
38
mv tmp $FILE
 
39
echo Done