runtime schedule adding and injection of c atoms
[physik/posic.git] / run
diff --git a/run b/run
index b1a2ceb..5a20df0 100755 (executable)
--- a/run
+++ b/run
@@ -1,13 +1,10 @@
-mkdir -p saves video
-./clean
+[ ! -d $1 ] && mkdir $1
+./clean $1
 ./sic $@
 if [ "$?" == "0" ]; then
-       ./perms
-       argv="`echo $@ | grep -- '-V'`"
-       if [ "$argv" ] ; then
-               base=`echo $argv | awk -F'-V' '{ print $2 }' | \
-                       awk '{ print $2 }'`
-               rasmol -nodisplay < ${base}.scr > /dev/null 2>&1
-               ./ppm2avi
+       #./perms
+       if [ "$1" ] ; then
+               rasmol -32 -nodisplay < $1/visualize.scr > /dev/null 2>&1
+               ./ppm2avi $1
        fi
 fi