scyther/src/testl

34 lines
564 B
Plaintext
Raw Normal View History

2004-04-23 11:58:43 +01:00
#!/bin/bash
#
# Shell script to display the latex output relatively quickly. For
# internal testing only, as it depends on the spdl subdirectory.
#
# Usage example:
#
# ./testl ns3
#
file=../spdl/$1.spdl
template=../src/attacktemplate
2004-04-23 11:58:43 +01:00
if [ -f $file ]
then
../src/scyther --latex $file -o attack.tex
latex $template.tex
mv $template.dvi attack.dvi
dvips attack.dvi -o attack.ps
# xdvi attack.dvi # for Xdvi
# kdvi attack.dvi # for KDE environment
kghostview attack.ps # postscript in KDE
2004-04-23 11:58:43 +01:00
else
2004-04-23 11:58:43 +01:00
echo "No file $file found."
2004-04-23 11:58:43 +01:00
fi