From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- doc/IGE344/install | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 doc/IGE344/install (limited to 'doc/IGE344/install') diff --git a/doc/IGE344/install b/doc/IGE344/install new file mode 100755 index 0000000..28285ae --- /dev/null +++ b/doc/IGE344/install @@ -0,0 +1,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 -- cgit v1.2.3