File: euk2eps

package info (click to toggle)
xeukleides 0.9.0-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 692 kB
  • ctags: 655
  • sloc: ansic: 3,704; yacc: 1,434; lex: 894; makefile: 178
file content (15 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Eukleides version 0.9.0
# Eukleides to EPS converter
# Copyright Christian Obrecht 2000-2002

eukleides -v
file=`expr $1 : '\(.*\).euk' '|' $1`
echo "\input pst-eps\input pst-plot\TeXtoEPS" > $file.tex \
&& eukleides $1 >> $file.tex \
&& echo "\endTeXtoEPS\nopagenumbers\end" >> $file.tex \
&& tex --interaction=nonstopmode $file.tex > /dev/null \
&& dvips -q -f -E $file.dvi > $file.eps
if [ $file.tex -nt $file.eps ]
then echo "Error: please check '"$file.log"' and '"$file.tex"'." > /dev/stderr
else rm -f $file.tex $file.dvi $file.log
fi