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

« back to all changes in this revision

Viewing changes to stdlib/make-library-files

  • 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
 
# Needs COQTOP and GALLINA set
4
 
 
5
 
# On garde la liste de tous les *.v avec dates dans library.files.ls
6
 
# Si elle a change depuis la derniere fois ou library.files n'existe pas
7
 
# on fabrique des .g (si besoin) et la liste library.files dans 
8
 
# l'ordre de ls -tr des *.vo
9
 
# Ce dernier trie les fichiers dans l'ordre inverse de leur date de cr�ation
10
 
# En supposant que make fait son boulot, ca fait un tri topologique du
11
 
# graphe des d�pendances
12
 
 
13
 
LIBDIRS="Arith NArith ZArith Reals Logic Bool Lists IntMap Relations Sets Sorting Wellfounded Setoids"
14
 
 
15
 
rm -f library.files.ls.tmp
16
 
(cd $COQTOP/theories; find $LIBDIR -name "*.v" -ls) > library.files.ls.tmp
17
 
if ! test -e library.files || ! cmp library.files.ls library.files.ls.tmp; then
18
 
  mv -f library.files.ls.tmp library.files.ls
19
 
  rm -f library.files; touch library.files
20
 
  ABSOLUTE=`pwd`/library.files
21
 
  cd $COQTOP/theories
22
 
  echo $LIBDIRS
23
 
  for rep in $LIBDIRS ; do
24
 
    (cd $rep
25
 
     echo $rep/intro.tex >> $ABSOLUTE
26
 
     VOFILES=`ls -tr *.vo`
27
 
     for file in $VOFILES ; do
28
 
       VF=`basename $file \.vo`
29
 
       if [ \( ! -e $VF.g \) -o \( $VF.v -nt $VF.g \) ] ; then
30
 
          $GALLINA $VF.v
31
 
       fi
32
 
       echo $rep/$VF.g >> $ABSOLUTE
33
 
     done
34
 
    )
35
 
  done
36
 
fi