Index: trunk/DataCheck/Sourcefile.sh
===================================================================
--- trunk/DataCheck/Sourcefile.sh	(revision 13301)
+++ trunk/DataCheck/Sourcefile.sh	(revision 13302)
@@ -1,36 +1,3 @@
 #!/bin/bash
-
-# data paths
-auxdata=/data00/fact-construction/aux
-rawdata=/data00/fact-construction/raw
-rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
-ziprawdata=/loc_data/zipraw
-ziprawdata_for_sed=$(printf "%s\n" "$ziprawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
-
-# setup to use ftools
-export HEADAS=/opt/heasoft-6.11/x86_64-unknown-linux-gnu-libc2.13-0/
-export HEADASPROMPT=/dev/null
-
-# software versions
-#export factpath=/home/fact/SW.automatic.processing/FACT++.2012.01.25
-export mars=~/Mars.von.Thomas.2012.03.07
-
-export AUTOMATIONSETUP="isdc.fact"
-#export SOURCEFILEPATH=`dirname/datacenter/scripts
-
-#source $SOURCEFILEPATH/sourcefile
-
-#   Author(s): Daniela Dorner  05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
-#
-#   Copyright: MAGIC Software Development, 2000-2010
-#
-#
-# ========================================================================
-#
-# This a resource file for the scripts, in which the standard paths and 
-# functions, which are needed more often are stored. 
-# Only constant variables are stored here, changing variables are stored 
-# in datacenter/scripts/setup
-#
 
 # to treat aliases in bash-script correctly
@@ -61,4 +28,10 @@
 source $SOURCEFILEPATH/../Setup/setup.$AUTOMATIONSETUP
 
+if [ "$mars" = "" ]
+then 
+   echo "Please set the path for MARS."
+   exit
+fi
+
 datetime=`date +%F-%H-%M-%S`
 
@@ -69,5 +42,10 @@
    if [ ! -d $@ ]
    then
-      mkdir -pv $@ 
+      if [ "$processlog" = "" ]
+      then
+         mkdir -p $@ 
+      else
+         mkdir -pv $@ 
+      fi
       if [ ! -d $@ ]
       then 
