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:
|
|
|
|
#
|
2004-07-21 15:26:28 +01:00
|
|
|
# ./scytherat ns3
|
2004-04-23 11:58:43 +01:00
|
|
|
#
|
|
|
|
|
2004-04-23 14:23:33 +01:00
|
|
|
file=../spdl/$1.spdl
|
|
|
|
template=../src/attacktemplate
|
2004-04-23 11:58:43 +01:00
|
|
|
|
|
|
|
if [ -f $file ]
|
|
|
|
then
|
2004-04-23 14:23:33 +01:00
|
|
|
../src/scyther --latex $file -o attack.tex
|
2004-05-26 20:40:40 +01:00
|
|
|
if [ "$?" -eq "3" ]
|
|
|
|
then
|
|
|
|
latex $template.tex
|
|
|
|
|
|
|
|
mv $template.dvi attack.dvi
|
2004-07-21 15:26:28 +01:00
|
|
|
#dvips attack.dvi -o attack.ps
|
2004-05-26 20:40:40 +01:00
|
|
|
|
|
|
|
# also eps output now
|
2004-07-21 15:26:28 +01:00
|
|
|
#ps2eps -f attack.ps
|
2004-05-26 20:40:40 +01:00
|
|
|
|
|
|
|
xdvi attack.dvi # for Xdvi
|
|
|
|
# kdvi attack.dvi # for KDE environment
|
|
|
|
# kghostview attack.ps # postscript in KDE
|
|
|
|
fi
|
2004-04-23 11:58:43 +01:00
|
|
|
else
|
2004-04-23 14:23:33 +01:00
|
|
|
|
2004-04-23 11:58:43 +01:00
|
|
|
echo "No file $file found."
|
2004-04-23 14:23:33 +01:00
|
|
|
|
2004-04-23 11:58:43 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|