Browse Source

Added some useful scripts to etc/scripts.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@778 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 18 years ago
parent
commit
b0f6994f55
  1. 1
      prism/Makefile
  2. 44
      prism/README.txt
  3. 6
      prism/etc/README
  4. 8
      prism/etc/scripts/prism2html
  5. 8
      prism/etc/scripts/prism2latex
  6. 17
      prism/etc/scripts/prism3to4

1
prism/Makefile

@ -394,6 +394,7 @@ dist_tidy:
@find examples -type f -name 'auto' -exec chmod 755 {} \; @find examples -type f -name 'auto' -exec chmod 755 {} \;
@find bin -type f -exec chmod 755 {} \; @find bin -type f -exec chmod 755 {} \;
@find src/bin -type f -exec chmod 755 {} \; @find src/bin -type f -exec chmod 755 {} \;
@find etc/scripts -type f -exec chmod 755 {} \;
binary: binary:
@echo Generating jar file... @echo Generating jar file...

44
prism/README.txt

@ -21,12 +21,12 @@ Very abbreviated instructions for installing/running PRISM are as follows:
For Windows binary distributions: For Windows binary distributions:
- to install, run prism-XXX-win-installer.exe
- to install, run prism-XXX-win-installer.exe
- to run, use Desktop/Start menu shortcuts or double-click bin\xprism.bat - to run, use Desktop/Start menu shortcuts or double-click bin\xprism.bat
For other binary distributions: For other binary distributions:
- to install, enter the PRISM directory, type "./install.sh"
- to install, enter the PRISM directory, type "./install.sh"
- to run, execute bin/xprism or bin/prism - to run, execute bin/xprism or bin/prism
For source code distributions: For source code distributions:
@ -74,26 +74,26 @@ library, see:
---------------- ----------------
ACKNOWLEDGEMENTS ACKNOWLEDGEMENTS
----------------
----------------
The core team behind the development of PRISM, previously working in the
School of Computer Science at the University of Birmingham and now working
The core team behind the development of PRISM, previously working in the
School of Computer Science at the University of Birmingham and now working
in the Computing Laboratory at the University of Oxford, comprises: in the Computing Laboratory at the University of Oxford, comprises:
* Dave Parker * Dave Parker
* Gethin Norman * Gethin Norman
* Marta Kwiatkowska * Marta Kwiatkowska
* Mark Kattenbelt
* Mark Kattenbelt
Contributions to the development of PRISM have also been gratefully received from:
* Andrew Hinton: Original versions of the GUI, Windows-port and simulator
* Joachim Meyer-Kayser: Implementation of the "Fox-Glynn" algorithm
* Alistair John Strachan: Port to 64-bit architectures
* Stephen Gilmore: Support for the stochastic process algebra PEPA
* Paolo Ballarini & Kenneth Chan: Port of PRISM to Mac OS X
* Rashid Mehmood: Improvements to low-level data structures and numerical solution algorithms
* Alistair John Strachan, Mike Arthur and Zak Cohen: Integration of JFreeChart into PRISM
Contributions to the development of PRISM have also been gratefully received from:
* Andrew Hinton: Original versions of the GUI, Windows-port and simulator
* Joachim Meyer-Kayser: Implementation of the "Fox-Glynn" algorithm
* Alistair John Strachan: Port to 64-bit architectures
* Stephen Gilmore: Support for the stochastic process algebra PEPA
* Paolo Ballarini & Kenneth Chan: Port of PRISM to Mac OS X
* Rashid Mehmood: Improvements to low-level data structures and numerical solution algorithms
* Alistair John Strachan, Mike Arthur and Zak Cohen: Integration of JFreeChart into PRISM
For more details see: For more details see:
@ -111,11 +111,11 @@ If you have problems or questions regarding PRISM, please use the help forum pro
Other comments and feedback about any aspect of PRISM are also very welcome. Please contact: Other comments and feedback about any aspect of PRISM are also very welcome. Please contact:
Dave Parker Dave Parker
(david.parker@comlab.ox.ac.uk)
Oxford University Computing Laboratory,
Wolfson Building
Parks Road
Oxford
OX1 3QD
(david.parker@comlab.ox.ac.uk)
Oxford University Computing Laboratory,
Wolfson Building
Parks Road
Oxford
OX1 3QD
ENGLAND ENGLAND

6
prism/etc/README

@ -2,6 +2,12 @@ This directory contains the following.
* PRISM icons for shortcuts/etc. - p*.png, p*.ico * PRISM icons for shortcuts/etc. - p*.png, p*.ico
* Various useful scripts in scripts/
- prism2html - converts PRISM models/properties to HTML
- prism2latex - converts PRISM models/properties to LaTex
- prism3to4 - fixes some common problems in old (3.x and earlier) PRISM models
(these scripts run on Linux/Unix/OS X and require prism to be in your path)
* MIME type and syntax highlighting config for PRISM (under Gnome) - Overrides.xml, prism.lang * MIME type and syntax highlighting config for PRISM (under Gnome) - Overrides.xml, prism.lang
* Syntax highlighting pattern for PRISM in NEdit - prism.pats * Syntax highlighting pattern for PRISM in NEdit - prism.pats

8
prism/etc/scripts/prism2html

@ -0,0 +1,8 @@
#!/bin/sh
# Startup script for PRISM to HTML converter (Linux/Solaris)
# Launch using main PRISM script
PRISM_MAINCLASS="parser.PrismSyntaxHighlighter html"
export PRISM_MAINCLASS
prism "$@"

8
prism/etc/scripts/prism2latex

@ -0,0 +1,8 @@
#!/bin/sh
# Startup script for PRISM to LaTeX converter (Linux/Solaris)
# Launch using main PRISM script
PRISM_MAINCLASS="parser.PrismSyntaxHighlighter latex"
export PRISM_MAINCLASS
prism "$@"

17
prism/etc/scripts/prism3to4

@ -0,0 +1,17 @@
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: prism3to4 <file> [<outfile>]"
exit
fi
if [ "$2" = "" ]; then
java -cp ~/prism-parser/classes parser.Prism3To4 "$1"
else
if [ "$2" = "$1" ]; then
( java -cp ~/prism-parser/classes parser.Prism3To4 "$1" > "$2".new && mv "$2".new "$2" ) || rm "$2".new
else
java -cp ~/prism-parser/classes parser.Prism3To4 "$1" > "$2"
fi
fi
Loading…
Cancel
Save