IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2008, 2:18:44 PM (18 years ago)
Author:
eugene
Message:

new macro to test presence of required globals; change globals to upper case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r16208 r16298  
    1 
    2 # XXX make these upper-case
     1## pantasks.pro : globals and support macros : -*- sh -*-
     2
     3# globals used to control system behavior : these should be in uppercase
    34$NEBULOUS = 0
    4 $network = 1
    5 $parallel = 1
     5$NETWORK = 1
     6$PARALLEL = 1
    67$VERBOSE = 1
    78$LOGDIR = `pwd`
    8 $scripts = .
    9 
    10 $loadpoll = 0.25
    11 $loadexec = 5
    12 $runpoll = 0.5
    13 $runexec = 1
     9
     10$LOADPOLL = 0.25
     11$LOADEXEC = 5
     12$RUNPOLL = 0.5
     13$RUNEXEC = 1
    1414
    1515$EXIT_SUCCESS     = 0
     
    426426  end
    427427end
     428
     429macro check.globals
     430  if ($?NETWORK == 0)
     431    echo "NETWORK not defined: load pantasks.pro first"
     432    break
     433  end
     434  if ($?PARALLEL == 0)
     435    echo "PARALLEL not defined: load pantasks.pro first"
     436    break
     437  end
     438  if ($?VERBOSE == 0)
     439    echo "VERBOSE not defined: load pantasks.pro first"
     440    break
     441  end
     442  if ($?LOGDIR == 0)
     443    echo "LOGDIR not defined: load pantasks.pro first"
     444    break
     445  end
     446end
Note: See TracChangeset for help on using the changeset viewer.