Skip to content

Commit

Permalink
fixing runexample scripts to reflect the new example directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Nov 2, 2014
1 parent 39740bd commit 82f1be2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
20 changes: 10 additions & 10 deletions projects/resources/linux/runExample
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/bash
if [ $# -lt 2 ]; then
echo
echo "You must specify the example name and the model name"
echo " You can optionall add arguments specifying duration and time step."
echo "You must specify what kind of example to run (core/plugin), the example name, and the model name"
echo " You can optionally add arguments specifying duration and time step."
echo " Example:"
echo " ./runExample headon pedvo"
echo " ./runExample headon pedvo 30"
echo " ./runExample headon pedvo 30 0.01"
echo " ./runExample core headon pedvo"
echo " ./runExample core headon pedvo 30"
echo " ./runExample core headon pedvo 30 0.01"
else
if [ $# = 2 ]; then
./menge -b ../examples/$1B.xml -s ../examples/$1S.xml --view ../examples/$1V.xml -m $2
if [ $# = 3 ]; then
./menge -p ../examples/$1/$2.xml -m $3
else
if [ $# = 3 ]; then
./menge -b ../examples/$1B.xml -s ../examples/$1S.xml --view ../examples/$1V.xml -m $2 -d $3
if [ $# = 4 ]; then
./menge -p ../examples/$1/$2.xml -m $3 -d $4
else
./menge -b ../examples/$1B.xml -s ../examples/$1S.xml --view ../examples/$1V.xml -m $2 -d $3 -t $4
./menge -p ../examples/$1/$2.xml -m $3 -d $4 -t $5
fi
fi
fi
2 changes: 1 addition & 1 deletion projects/resources/win/runExample.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
menge -s ..\examples\%1S.xml -b ..\examples\%1B.xml --view ..\examples\%1V.xml -m %2 -d 100
menge -p ..\examples\%1\%2.xml -m %3 -d 100
10 changes: 10 additions & 0 deletions releaseNotes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Release 0.8.1
November 2, 2014
Corrected run example scripts for windows and linux

----------------------------------------------------------------

Release 0.8.0
October 18, 2014
Initial release

0 comments on commit 82f1be2

Please sign in to comment.