major bugfixes, still need clean up + improvements, not to mention speex and video...
[my-code/ivac.git] / src / start_ivac
diff --git a/src/start_ivac b/src/start_ivac
new file mode 100755 (executable)
index 0000000..426d436
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+KEEPLOG=1
+
+# ivac start script
+if [ ! -d ~/.ivac ] ; then
+       echo "creating .ivac directory ..."
+       mkdir ~/.ivac
+fi
+
+IVAC=`type -p ivac`
+[ -z "$IVAC" ] && IVAC="./ivac"
+
+if [ ! -e $IVAC ] ; then
+       echo "ivac executable not found :("
+else
+       echo "running $IVAC ..."
+       $IVAC $@ 2> ~/.ivac/log
+       if [ -z  "`echo $@ | grep -- -h`" ] ; then
+               reset
+               clear
+       fi
+fi
+
+[ "$KEEPLOG" = "0" ] && rm -f ~/.ivac/log