]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - src/boost-statechart-viewer.sh
Now all file types are supported.
[boost-statechart-viewer.git] / src / boost-statechart-viewer.sh
old mode 100644 (file)
new mode 100755 (executable)
index b1efa79..04d39b9
@@ -3,7 +3,7 @@ set -e
 # while [ $1 ]
 
 for src in "$@"; do
-    s=${src%.cpp}
+    s=${src%.*}
     clang++ -Xclang -load -Xclang @libdir@/visualizer.so -Xclang -plugin -Xclang visualize-statechart -c $src
     dot -Tps $s.dot > $s.eps
     epstopdf $s.eps > $s.pdf