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

« back to all changes in this revision

Viewing changes to 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
 
for i in ../theories/*; do
11
 
    echo $i
12
 
 
13
 
  d=`basename $i`
14
 
  if [ "$d" != "Num" -a "$d" != "CVS" ]; then
15
 
  for j in $i/*.v; do
16
 
    b=`basename $j .v`
17
 
    rm -f tmp2
18
 
    grep -q theories/$d/$b.v tmp
19
 
    a=$?
20
 
    if [ $a = 0 ]; then
21
 
      sed -e "s:theories/$d/$b.v:<a href=\"Coq.$d.$b.html\">$b</a>:g" tmp > tmp2
22
 
      mv -f tmp2 tmp
23
 
    else
24
 
      echo Warning: theories/$d/$b.v is missing in the template file
25
 
    fi
26
 
  done
27
 
  fi
28
 
  rm -f tmp2
29
 
  sed -e "s/#$d#//" tmp > tmp2
30
 
  mv -f tmp2 tmp
31
 
done
32
 
a=`grep theories tmp`
33
 
if [ $? = 0 ]; then echo Warning: extra files:; echo $a; fi
34
 
mv tmp $FILE
35
 
echo Done