Changeset 16195 for trunk/ippTasks/pantasks.pro
- Timestamp:
- Jan 22, 2008, 5:35:42 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pantasks.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r16173 r16195 342 342 343 343 macro set.workdir.by.camera 344 if ($0 != 6) 345 echo "USAGE: set.workdir.by.camera (camera) (class_id) (template) (default) (varname)" 346 echo " uses global variable NEBULOUS to determine if nebulous is active" 347 break 348 end 349 350 local host default template camera classID varname 351 $camera = $1 352 $classID = $2 353 $template = $3 354 $default = $4 355 $varname = $5 356 357 # missing camera and/or chiphosts table results in host = NULL 358 book getword chiphosts $camera $classID -var host 359 360 if ("$host" == "NULL") 361 strsub $template @HOST@ $default -var $$varname 362 else 363 strsub $template @HOST@ $host -var $$varname 364 end 365 end 366 367 macro set.volume.by.camera 344 368 if ($0 != 3) 345 echo "USAGE: set.workdir.by.camera (camera) (class_id)" 346 break 347 end 369 echo "USAGE: set.volume.by.camera (camera) (class_id) (template) (default) (varname)" 370 echo " uses global variable NEBULOUS to determine if nebulous is active" 371 break 372 end 373 374 local host default template camera classID varname 375 $camera = $1 376 $classID = $2 377 $template = $3 378 $default = $4 379 $varname = $5 348 380 349 381 # missing camera and/or chiphosts table results in host = NULL 350 book getword chiphosts $1 $2 -var $host 351 352 if ($NEBULOUS) 353 if ("$host" == "NULL") 354 $workdir = $workdir_default 355 $volume = "NULL" 356 return 357 end 358 strsub $workdir_template @HOST@ $host -var workdir 359 strsub $volume_template @HOST@ $host -var volume 360 return 361 end 362 363 if ("$host" == "NULL") 364 $workdir = $workdir_default 365 return 366 end 367 strsub $workdir_template @HOST@ $host -var workdir 382 book getword chiphosts $camera $classID -var host 383 384 if (not($NEBULOUS)) 385 $$varname = "NULL" 386 return 387 end 388 389 if ("$host" == "NULL") 390 $$varname = $default 391 return 392 end 393 394 strsub $template @HOST@ $host -var $$varname 368 395 end 369 396
Note:
See TracChangeset
for help on using the changeset viewer.
