summaryrefslogtreecommitdiff
path: root/doc/IGE344/install
blob: 28285ae32eb6996fb4f2d22e6dbfc18bb22c8224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/csh
#
# author : A. Hebert
# use    : install
#
chmod 755 .
if (-e /usr/local/common/TeX.csh) then
  source /usr/local/common/TeX.csh
endif
#
ln -s ../../Donjon/data/Example1.x2m Example1.x2m
ln -s ../../Donjon/data/Example2.x2m Example2.x2m
ln -s ../../Donjon/data/proc/Pburn.c2m Pburn.c2m
ln -s ../../Donjon/data/proc/Pdevc.c2m Pdevc.c2m
ln -s ../../Donjon/data/proc/Pgeom.c2m Pgeom.c2m
ln -s ../../Donjon/data/proc/Pfmap.c2m Pfmap.c2m
#
if (-e $1.tex) then
  set nom_fich = $1
else
  set nom_fich = `basename $PWD`
endif
echo "begin typesetting file" $nom_fich.tex
latex $nom_fich.tex > /dev/null
echo "first typesetting completed"
if ( -f $nom_fich.idx ) then
  set header = $nom_fich
  set core = ` echo $nom_fich | sed -e's/header_//' `
  cp $header.idx header_tmp.idx
  makeindex header_tmp.idx
  if ( -f header_tmp.tex ) /bin/rm header_tmp.tex
  if ( -f tmp.tex ) /bin/rm tmp.tex
  cp $header.tex header_tmp.tex
  cp $core.tex tmp.tex
  latex header_tmp.tex > /dev/null
  latex header_tmp.tex > /dev/null
  latex header_tmp.tex > /dev/null
  dvips -f header_tmp.dvi -o header_tmp.ps
  mv header_tmp.ps $nom_fich.ps
else
  dvips -f $nom_fich.dvi -o $nom_fich.ps
endif
/bin/rm header_tmp.* tmp.tex
/bin/rm *.aux
echo "create pdf file" $nom_fich.pdf
ps2pdf $nom_fich.ps
echo "pdf file produced"
open $nom_fich.pdf
/bin/rm $nom_fich.dvi $nom_fich.ps $nom_fich.idx $nom_fich.log
/bin/rm $nom_fich.toc $nom_fich.lot $nom_fich.lof $nom_fich.out
/bin/rm *.[cx]2m
exit