Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7906)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7907)
@@ -40,7 +40,19 @@
    * datacenter/scripts/sourcefile: 
      - included webpath
+     - added comments
+     - added variables and functions for jobmanager
+     - removed changing variables 
+     - added addresses
 
    * datacenter/scripts/jobmanager: 
-     - added
+     - added (script to controll the amount of callisto, star, ganymed
+       and datacheck running)
+
+   * datacenter/scripts/setup: 
+     - added (file to store setup variables, which might be changed)
+
+   * datacenter/scripts/copyscript: 
+     - removed addresses
+     - fixed typo
 
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/copyscript
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/copyscript	(revision 7906)
+++ trunk/MagicSoft/Mars/datacenter/scripts/copyscript	(revision 7907)
@@ -212,6 +212,4 @@
 catalog=$setuppath/$magfav #current catalogfile
 diff=$setuppath/.diff #file to store difference
-#addresses to which the changes are sent
-adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de" 
 
 #getting new catalogfiles 
@@ -240,5 +238,5 @@
          cat $diff | grep '<'  >> $scriptlog 2>&1 
          echo " -> please check the file $catfile" >> $scriptlog 2>&1 
-         #inform $adr about removed lines
+         #inform $adrs about removed lines
          nail -s 'catalogfile - removed lines' $adrs < $diff
          exit
@@ -262,5 +260,5 @@
          exit
       fi
-      #inform $adr about changes
+      #inform $adrs about changes
       echo "file has been rsynced sucessfully -> sending email" >> $scriptlog 2>&1 
       nail -s 'new catalogfile installed - new lines'  $adrs < $diff
@@ -273,5 +271,5 @@
       cat $diff | grep '<'  >> $scriptlog 2>&1 
       echo " -> please check the file $catfile" >> $scriptlog 2>&1 
-      #inform $adr about removed lines
+      #inform $adrs about removed lines
       nail -s 'catalogfile - removed lines' $adrs < $diff
       exit
Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7906)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7907)
@@ -27,25 +27,14 @@
 # This a resource file for the scripts, in which the standard paths and 
 # functions, which are needed more often are stored. 
-#
-
-export ROOTSYS=/opt/root_v4.04.02g
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
-export PATH=$PATH:$ROOTSYS/bin
+# Only constant variables are stored here, changing variables are stored 
+# in datacenter/scripts/setup
+#
+
+source `dirname $0`/setup
 
 mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
-
 macrospath=$mars/datacenter/macros
 scriptspath=$mars/datacenter/scripts
 
-logpath=/magic/datacenter/autologs
-lockpath=/magic/datacenter/locks
-listpath=/magic/datacenter/lists
-setuppath=/magic/datacenter/setup
-
-datapath=/magic/data
-subsystempath=/magic/subsystemdata
-sequpath=/magic/sequences
-datasetpath=/magic/datasets
-
 webpath=/www/htdocs/datacenter
 
@@ -53,5 +42,4 @@
 
 check="ok"
-
 
 #failed codes
@@ -82,6 +70,39 @@
 Ffillganymed=21
 
-
-
+# setup for jobmanager
+steps=$mars/steps.rc
+
+pno=0
+pnototal=0
+running=0
+queued=0
+runningscript=0
+queuedscript=0
+
+
+function setzero()
+{
+   val=$@
+   if [ "$val" == "" ]
+   then 
+      test=`condor_q -global`
+      if [ "$test" == "" ]
+      then 
+         echo $max
+      else
+         echo 0
+      fi
+   else
+      echo $val
+   fi
+}
+
+
+
+
+# in the following the function, which are needed by several scripts, are 
+# defined
+
+# function to exit a script properly
 function finish()
 {
@@ -92,4 +113,5 @@
 }
 
+# function to make sure that a directory is made
 function makedir()
 {
@@ -105,4 +127,5 @@
 }
 
+# function to check if a process is already locked
 function checklock()
 { 
@@ -119,4 +142,5 @@
 }
 
+# function calling the macro, which is producing the todo-list
 function getdolist()
 {
@@ -164,4 +188,5 @@
 }
 
+# function calling the macro to set the status, after a process has finished
 function setstatus()
 {
