/[meta-cvs]/meta-cvs/F-CDC1BFAC54A2F181A673DAB7259D5199.sh
ViewVC logotype

Contents of /meta-cvs/F-CDC1BFAC54A2F181A673DAB7259D5199.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Mon Apr 28 06:20:58 2003 UTC (11 years ago) by kaz
Branch: MAIN
CVS Tags: asdf-import-branch~merged-to-HEAD-0, mcvs-1-1-98, asdf-import-branch~branch-point, mcvs-1-1-0, HEAD
Branch point for: asdf-import-branch
Changes since 1.1: +10 -10 lines
File MIME type: application/x-sh
Merging from mcvs-1-0-branch.
1 kaz 1.1 #!/bin/sh
2    
3 kaz 1.2 need_to_build_index ()
4 kaz 1.1 {
5     ! cmp -s $1.idx $1.idx.old ||
6     [ ! $1.ist -ot $1.ind ]
7     }
8    
9 kaz 1.2 need_to_build_dvi ()
10 kaz 1.1 {
11     ! cmp -s $1.toc $1.toc.old ||
12     [ ! $1.latex -ot $1.dvi ] ||
13     [ ! $1.ind -ot $1.dvi ]
14     }
15    
16 kaz 1.2 build_index ()
17 kaz 1.1 {
18     cp $1.idx $1.idx.old
19     makeindex -s $1.ist $1.idx
20     }
21    
22 kaz 1.2 build_dvi ()
23 kaz 1.1 {
24     cp $1.toc $1.toc.old
25     latex $1.latex
26     }
27    
28     LATEXDOC=meta-cvs
29    
30     while true ; do
31 kaz 1.2 if need_to_build_dvi $LATEXDOC ; then
32     build_dvi $LATEXDOC
33     if need_to_build_index $LATEXDOC ; then
34     build_index $LATEXDOC
35 kaz 1.1 fi
36 kaz 1.2 elif need_to_build_index $LATEXDOC ; then
37     build_index $LATEXDOC
38 kaz 1.1 else
39     break
40     fi
41     done

  ViewVC Help
Powered by ViewVC 1.1.5