-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathxmile.bash
More file actions
executable file
·30 lines (24 loc) · 885 Bytes
/
xmile.bash
File metadata and controls
executable file
·30 lines (24 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#ARCHITECT="/Applications/Stella Architect.app"
#XMUTIL="XMUtil"
XMUTIL="/Users/bschoenberg/code/personal/xmutil/DerivedData/XMUtil/Build/Products/Debug/XMUtil"
ARCHITECT="/Users/bschoenberg/code/dev_branch/StellaQt/DerivedData/StellaQt/Build/Products/Debug/Stella Architect.app"
DIR="./tests"
for input_dir in $DIR
do
echo "Generate xmile files into: $input_dir"
find $input_dir -name '*.mdl' | sed 's/\.mdl$//' | while read f; do
echo "Converting $f.mdl"
"$XMUTIL" "$f.mdl"
if [ -f "$f.xmile" ]; then
cp "$f.xmile" "$f.stmx"
CSV_NAME="$(dirname $f)/output_stella.csv"
PNG_NAME="$(dirname $f)/stella_screenshot.png"
echo "Opening in Architect $f.stmx"
open -W -a "$ARCHITECT" "$f.stmx" --args -ssm $PWD/$PNG_NAME -r -xall $PWD/$CSV_NAME -s -q
else
echo "XMUtil hit an error"
sleep 10
fi
done
done