Index: /head/applications/Environment.h
===================================================================
--- /head/applications/Environment.h	(revision 1)
+++ /head/applications/Environment.h	(revision 1)
@@ -0,0 +1,44 @@
+#ifndef snovis_Environment_h
+#define snovis_Environment_h
+
+#include <Lib/main.h>
+
+#include <Lib/Printer.h>
+#include <Lib/System.h>
+
+//////////////////////////////////////////////////////////////////////////////
+inline bool check_envs(
+ const std::string& aArg0
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  if(!Lib::main::checkPackEnv(aArg0,"OnXLab")) return false;
+  if(!Lib::main::checkPackEnv(aArg0,"G4Lab")) return false;
+  if(!Lib::main::checkPackEnv(aArg0,"snovis")) return false;
+
+  Lib::Printer printer;
+  std::string fs = Lib::System::fileSeparator();
+  std::string dir = "Resources"+fs+"Geant4"+fs+"data"+fs;
+
+ {std::string to = dir+"G4NDL";
+  if(!Lib::main::checkEnv(aArg0,"NeutronHPCrossSections",to,
+                          printer,true)) return false;}
+
+ {std::string to = dir+"PhotonEvaporation";
+  if(!Lib::main::checkEnv(aArg0,"G4LEVELGAMMADATA",to,
+                          printer,true)) return false;}
+
+ {std::string to = dir+"RadioactiveDecay";
+  if(!Lib::main::checkEnv(aArg0,"G4RADIOACTIVEDATA",to,
+                          printer,true)) return false;}
+
+ {std::string to = dir+"G4EMLOW";
+  if(!Lib::main::checkEnv(aArg0,"G4LEDATA",to,
+                          printer,true)) return false;}
+
+
+  return true;
+}
+
+#endif
Index: /head/applications/prog_snova.cc
===================================================================
--- /head/applications/prog_snova.cc	(revision 1)
+++ /head/applications/prog_snova.cc	(revision 1)
@@ -0,0 +1,273 @@
+// -*- mode: C++; -*-
+/* prog_snova.cc
+ * SuperNEMO module G4 based simulation program
+ */
+
+#include <string>
+
+#include <snova/snova_const.hh>
+#include <snova/geometry2.hh>         // Geometry definition
+#include <snova/physics.hh>           // Physical proceses to consider
+#include <snova/generator.hh>         // Initial particles generator
+#include <snova/run.hh>               // User actions per run basis
+#include <snova/event.hh>             // User actions per event basis
+#include <snova/tracking.hh>          // User actions per track basis
+#include <snova/stacking.hh>          // User actions related with tracks stacking
+#include <snova/stepping.hh>          // User actions per step basis
+#include <snova/stepping_verbose.hh>  // Information dump per step basis
+
+#include "G4RunManager.hh"  // Program manager
+#include "G4UImanager.hh"   // User Interface manager
+#include "G4UIterminal.hh"  // User Interface manager through the terminal
+
+#ifdef G4UI_USE_TCSH
+#include "G4UItcsh.hh"      // For terminal tcsh use
+#endif
+
+#undef G4VIS_USE
+
+#ifdef G4VIS_USE
+#include "G4VisExecutive.hh"
+#endif
+
+#include <bhep/bhep_svc.h>
+#include <bhep/sreader.h>
+
+using namespace snova;
+
+int main( int argc_ , char** argv_ ) 
+{
+  bool        debug           = false;
+  std::string params_filename = snova::constants::DEF_PARAMS_FILENAME;
+  bool        automatic       = true;
+  bool        visual_mode     = false;
+  std::string G4_macro        = "";
+
+  // parse switches:
+  int iarg=1;
+  while ( iarg < argc_ ) {
+    
+    std::string arg = argv_[iarg];
+    
+    if ( arg[0] == '-' ) {
+
+      if ( arg == "-d" || arg == "--debug" ) debug=true;
+      
+      if ( arg == "-p" || arg == "--params" ) {
+	iarg++;
+	if (iarg==argc_) {
+	  throw std::runtime_error("Missing simulation parameters file!");
+	}
+	params_filename=argv_[iarg];
+      }
+
+    }
+    else {
+      G4cerr << "arg=" << arg << G4endl;
+
+      if ( arg == "vis" || arg == "visual" ) {
+	visual_mode = true;
+      }
+      else {
+	G4_macro=arg;
+      }
+
+    }
+    
+    iarg++;
+  }
+
+  if ( visual_mode || !G4_macro.empty() ) automatic=false;
+
+  // create a generic store:
+  bhep::gstore store;
+  G4cout << G4endl << "***** Reading parameters from '" 
+	 << params_filename << "' file ..." 
+	 << G4endl << G4endl;
+
+  // and a reader:
+  bhep::sreader reader(store);
+  reader.file(params_filename.c_str());
+  reader.info_level(NORMAL);
+  reader.group("GLOBAL");
+  reader.read();
+
+  G4String sim_verbosity = store.fetch_sstore("simulation_verbosity");
+  G4cout << "***** Simulation verbosity set to: " << sim_verbosity << G4endl;
+
+  G4String G4Tracking_verbosity = store.fetch_sstore("G4Tracking_verbosity");
+  G4cout << "***** G4 Tracking verbosity set to: " << G4Tracking_verbosity << G4endl;
+
+  G4String dst_fname = store.fetch_sstore("dst_fname");
+  G4cout << "***** DST output file name:" << dst_fname << G4endl;
+
+  G4String gen_source = store.fetch_sstore("gen_source");
+  G4double gen_min_E  = store.fetch_dstore("gen_min_E");
+  G4double gen_max_E  = store.fetch_dstore("gen_max_E");
+  G4int    num_events = store.fetch_istore("num_events");
+  G4String part_name  = store.fetch_sstore("part_name");
+
+  if (gen_source == "random") {
+    G4cout << "***** Generator data will follow a flat random distribution in: " << G4endl;
+    G4cout << "*****           Ekin  (Mev): (" << gen_min_E << " , " 
+	   << gen_max_E << ")" << G4endl;
+    G4cout << "*****           Theta (deg): (0 , 90)" <<  G4endl;
+    G4cout << "*****           Phi   (deg): (0 , 180)" <<  G4endl;
+    G4cout << "***** Initial events: " << num_events << " " << part_name << G4endl;
+  }
+  else {
+    G4cout << "***** Generator data source read from:" << gen_source << G4endl;
+    G4cout << "***** Initial events: " << num_events << " pairs of " << part_name << G4endl;
+  }
+
+  G4String geom_filename = store.fetch_sstore("geom_file");
+  G4cout << "***** Reading geometry parameters from: '" 
+	 << geom_filename << "'" << G4endl;
+  G4cout << "***** Reading physics parameters from:  '" 
+	 << params_filename << "'" << G4endl;
+  
+  G4cout << "**********************************************************"
+	 << G4endl << G4endl;
+  
+  // The ihep::event service is generated. This server must be instantiated
+  // wherever you want to access all the info.
+  bhep::bhep_svc bsvc;  
+
+  // my Verbose output class:
+  G4VSteppingVerbose* verbosity = new stepping_verbose;
+  G4VSteppingVerbose::SetInstance(verbosity);
+
+  // Run manager:
+  G4RunManager * runManager = new G4RunManager;
+
+  // UserInitialization classes (mandatory)
+
+  // geometry
+  geometry* geom = new geometry(geom_filename,params_filename);
+  geom->set_info_level(sim_verbosity);
+  runManager->SetUserInitialization(geom);
+
+  // physics
+  physics* phys = new physics(params_filename);
+  phys->set_info_level(sim_verbosity);
+  runManager->SetUserInitialization(phys);
+
+
+#ifdef G4VIS_USE
+  // Visualization, if you choose to have it!
+  G4VisManager* visManager = new G4VisExecutive;
+  visManager->Initialize();
+#endif
+
+  // UserAction classes
+  // generator
+  generator* my_gen = new generator( part_name , 
+				     gen_source , 
+				     gen_min_E , 
+				     gen_max_E , 
+				     geom->get_geom_mgr() , 
+				     params_filename );
+  my_gen->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_gen);
+
+  // run
+  run* my_run = new run(dst_fname);
+  runManager->SetUserAction(my_run);  
+
+  //event
+  snova::event* my_evt = new snova::event(part_name, dst_fname);
+  my_evt->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_evt);
+
+  // track
+  tracking* my_tracking = new tracking();
+  my_tracking->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_tracking);
+
+  // step
+  stepping* my_stepping = new stepping(part_name);
+  my_stepping->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_stepping);
+
+  // stack
+  stacking* my_stacking = new stacking(part_name);
+  my_stacking->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_stacking);
+
+
+  //Initialize G4 kernel
+  runManager->Initialize();
+
+
+  //////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////
+  //get the pointer to the User Interface manager
+  //in order for the user to issue commands to the program 
+  G4UImanager * UI = G4UImanager::GetUIpointer();  
+
+
+  //////////////////////////////////////////////////////////////
+  // Automatic mode
+  if( automatic ) {
+
+#ifdef G4VIS_USE
+    visManager->SetVerboseLevel("quiet");
+#endif
+
+    G4String command = "/control/shell cp currentEvent.rndm currentRun.rndm";
+    UI->ApplyCommand(command);
+    command = "/random/setSavingFlag true";
+    UI->ApplyCommand(command);
+    command = "/random/resetEngineFrom currentRun.rndm";
+    UI->ApplyCommand(command);
+
+    command = "/tracking/verbose ";
+    UI->ApplyCommand(command + G4Tracking_verbosity);
+
+    command = "/run/beamOn ";
+    UI->ApplyCommand(command+to_string(num_events));
+
+  }
+  else {      
+    // Visual mode
+    if ( visual_mode ) {
+      
+      // G4UIterminal is a (dumb) terminal.
+      G4UIsession *session = 0;
+      
+#ifdef G4UI_USE_TCSH
+      session = new G4UIterminal(new G4UItcsh);      
+#else
+      session = new G4UIterminal();
+#endif     
+      
+      UI->ApplyCommand("/control/execute snova_vis.mac");    
+      session->SessionStart();
+      delete session;
+    }
+    // Batch mode
+    else {
+      
+#ifdef G4VIS_USE
+      visManager->SetVerboseLevel("quiet");
+#endif
+      
+      G4String command = "/control/execute ";
+      G4String fileName = G4_macro.c_str();
+      UI->ApplyCommand(command + fileName);
+
+    }
+    
+  }
+  
+#ifdef G4VIS_USE
+  delete visManager;
+#endif
+  
+  delete runManager;
+  delete verbosity;
+  
+  return 0;
+}
+
+// end of prog_snova.cc
Index: /head/applications/snovis_session.cc
===================================================================
--- /head/applications/snovis_session.cc	(revision 1)
+++ /head/applications/snovis_session.cc	(revision 1)
@@ -0,0 +1,186 @@
+/* 
+ * Version of prog_snova.cc to handle a G4Lab::UIOnX session
+ */
+
+#include <snova/snova_const.hh>
+#include <snova/geometry2.hh>         // Geometry definition
+#include <snova/physics.hh>           // Physical proceses to consider
+#include <snova/generator.hh>         // Initial particles generator
+#include <snova/run.hh>               // User actions per run basis
+#include <snova/event.hh>             // User actions per event basis
+#include <snova/tracking.hh>          // User actions per track basis
+#include <snova/stacking.hh>          // User actions related with tracks stacking
+#include <snova/stepping.hh>          // User actions per step basis
+#include <snova/stepping_verbose.hh>  // Information dump per step basis
+
+#include <G4RunManager.hh>  // Program manager
+#include <G4UImanager.hh>   // User Interface manager
+
+#include <bhep/bhep_svc.h>
+#include <bhep/sreader.h>
+
+// G4Lab :
+#include <G4Lab/UIOnX.h> //UIOnX
+#include "Environment.h"
+
+using namespace snova;
+
+int main( int argc , char** argv ) 
+{
+  if(argc<=0) return 1;
+  if(!check_envs(argv[0])) return 1;
+
+  //std::string params_filename = snova::constants::DEF_PARAMS_FILENAME;
+  std::string SNOVISROOT;
+  if(!Lib::System::getenv("SNOVISROOT",SNOVISROOT)) {
+    G4cout << "snovis_session :"
+	   << " Environment variable SNOVISROOT not defined."
+	   << G4endl;
+    return 1;
+  }
+  std::string params_filename = SNOVISROOT+"/scripts/snova.par";
+  G4String geom_filename = SNOVISROOT+"/scripts/snemo.geom";
+
+  // create a generic store:
+  bhep::gstore store;
+  G4cout << G4endl << "***** Reading parameters from '" 
+	 << params_filename << "' file ..." 
+	 << G4endl << G4endl;
+
+  // and a reader:
+  bhep::sreader reader(store);
+  reader.file(params_filename);
+  reader.info_level(NORMAL);
+  reader.group("GLOBAL");
+  reader.read();
+
+  G4String sim_verbosity = store.fetch_sstore("simulation_verbosity");
+  G4cout << "***** Simulation verbosity set to: " << sim_verbosity << G4endl;
+
+  G4String G4Tracking_verbosity = store.fetch_sstore("G4Tracking_verbosity");
+  G4cout << "***** G4 Tracking verbosity set to: " << G4Tracking_verbosity << G4endl;
+
+  G4String dst_fname = store.fetch_sstore("dst_fname");
+  G4cout << "***** DST output file name:" << dst_fname << G4endl;
+
+  G4String gen_source = store.fetch_sstore("gen_source");
+  G4double gen_min_E  = store.fetch_dstore("gen_min_E");
+  G4double gen_max_E  = store.fetch_dstore("gen_max_E");
+  G4int    num_events = store.fetch_istore("num_events");
+  G4String part_name  = store.fetch_sstore("part_name");
+
+  if (gen_source == "random") {
+    G4cout << "***** Generator data will follow a flat random distribution in: " << G4endl;
+    G4cout << "*****           Ekin  (Mev): (" << gen_min_E << " , " 
+	   << gen_max_E << ")" << G4endl;
+    G4cout << "*****           Theta (deg): (0 , 90)" <<  G4endl;
+    G4cout << "*****           Phi   (deg): (0 , 180)" <<  G4endl;
+    G4cout << "***** Initial events: " << num_events << " " << part_name << G4endl;
+  }
+  else {
+    G4cout << "***** Generator data source read from:" << gen_source << G4endl;
+    G4cout << "***** Initial events: " << num_events << " pairs of " << part_name << G4endl;
+  }
+
+  if(geom_filename=="") 
+    geom_filename = store.fetch_sstore("geom_file");
+
+  //G4String geom_filename = store.fetch_sstore("geom_file");
+  G4cout << "***** Reading geometry parameters from: '" 
+	 << geom_filename << "'" << G4endl;
+  G4cout << "***** Reading physics parameters from:  '" 
+	 << params_filename << "'" << G4endl;
+  
+  G4cout << "**********************************************************"
+	 << G4endl << G4endl;
+  
+  // The ihep::event service is generated. This server must be instantiated
+  // wherever you want to access all the info.
+  bhep::bhep_svc bsvc;  
+
+  // my Verbose output class:
+  G4VSteppingVerbose* verbosity = new stepping_verbose;
+  G4VSteppingVerbose::SetInstance(verbosity);
+
+  // Run manager:
+  G4RunManager* runManager = new G4RunManager;
+
+  // UserInitialization classes (mandatory)
+
+  // geometry
+  geometry* geom = new geometry(geom_filename,params_filename);
+  geom->set_info_level(sim_verbosity);
+  runManager->SetUserInitialization(geom);
+
+  // physics
+  physics* phys = new physics(params_filename);
+  phys->set_info_level(sim_verbosity);
+  runManager->SetUserInitialization(phys);
+
+  // UserAction classes
+  // generator
+  generator* my_gen = new generator( part_name , 
+				     gen_source , 
+				     gen_min_E , 
+				     gen_max_E , 
+				     geom->get_geom_mgr() , 
+				     params_filename );
+  my_gen->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_gen);
+
+  // run
+  run* my_run = new run(dst_fname);
+  runManager->SetUserAction(my_run);  
+
+  //event
+  snova::event* my_evt = new snova::event(part_name, dst_fname);
+  my_evt->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_evt);
+
+  // track
+  tracking* my_tracking = new tracking();
+  my_tracking->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_tracking);
+
+  // step
+  stepping* my_stepping = new stepping(part_name);
+  my_stepping->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_stepping);
+
+  // stack
+  stacking* my_stacking = new stacking(part_name);
+  my_stacking->set_info_level(sim_verbosity);
+  runManager->SetUserAction(my_stacking);
+
+
+  //Initialize G4 kernel
+  runManager->Initialize();
+
+    G4UImanager * UI = G4UImanager::GetUIpointer();  
+
+    G4String command = "/control/shell cp currentEvent.rndm currentRun.rndm";
+    UI->ApplyCommand(command);
+    command = "/random/setSavingFlag true";
+    UI->ApplyCommand(command);
+    command = "/random/resetEngineFrom currentRun.rndm";
+    UI->ApplyCommand(command);
+
+    command = "/tracking/verbose ";
+    UI->ApplyCommand(command + G4Tracking_verbosity);
+  
+    command = "/tracking/storeTrajectory 1";
+    UI->ApplyCommand(command);
+  
+  std::string gui = "$SNOVISROOT/scripts/OnX/snovis_session.onx"; //UIOnX
+  G4UIsession* session = new G4Lab::UIOnX(*runManager,gui,argc,argv); //UIOnX
+
+  session->SessionStart();
+  delete session;
+  
+  delete runManager;
+  delete verbosity;
+  
+  return 0;
+}
+
+// end of prog_snova.cc
Index: /head/build/build
===================================================================
--- /head/build/build	(revision 1)
+++ /head/build/build	(revision 1)
@@ -0,0 +1,257 @@
+#!/bin/sh -f 
+
+platform=`uname`
+
+uname_s=`uname -s`
+uname_m=`uname -m`
+platform_nemo="${uname_s}-${uname_m}"
+
+# Customize the below xxx_home to reach used packages :
+osc_home="/Users/barrand/OpenScientist/v16r0"
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1/${platform}"
+HDF5_home=/usr/local/HDF5/1.6.5
+CLHEP_home=/usr/local/CLHEP/2.0.3.1
+G4_home=/geant4/geant4.8.2
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+
+. ${osc_home}/aida-setup.sh
+
+if test "`onx-config --version`" = "" ; then
+  echo "onx-config not available."
+  exit
+fi
+
+if test "`aida-config --version`" = "" ; then
+  echo "aida-config not available."
+  exit
+fi
+
+if test "`g4lab-config --version`" = "" ; then
+  echo "g4lab-config not available."
+  exit
+fi
+
+#args=$*
+obuild_set_x=no
+
+do_snova=yes
+do_snovis=yes
+do_prog_snova=yes
+do_snovis_session=yes
+
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Usage :"
+        echo "  UNIX> ./build [Options] [Target]"
+        echo "Options :"
+        echo "  -x : execute with set -x."
+        echo "Target :"
+        echo "  If no option is specify and a ending"
+        echo " string is given ; this string is given"
+        echo " to a find command of the form :"
+        echo '    find ./sh -name "*target*" -exec {} \;'
+        echo " in order to execute selected scripts under"
+        echo " the sh directory."
+        echo "Examples :"
+        echo "  UNIX> sh/build app"
+        echo "  UNIX> sh/build -v _lib"
+        echo "  UNIX> sh/build -v -g dll_"
+        echo ""
+        exit ;;
+    -x) obuild_set_x=yes;obuild_args="${obuild_args} $1" ;;
+    -*) echo "unknwon option : $1" ; exit ;;
+     *) if [ $# = 1 ] ; then
+          if [ $1 = all ] ; then
+            do_snova=yes
+            do_snovis=yes
+            do_prog_snova=yes
+            do_snovis_session=yes
+          elif [ $1 = snova ] ; then
+            do_snova=yes
+            do_snovis=no
+            do_prog_snova=no
+            do_snovis_session=no
+          elif [ $1 = snovis ] ; then
+            do_snovis=yes
+            do_snova=no
+            do_prog_snova=no
+            do_snovis_session=no
+          elif [ $1 = prog_snova ] ; then
+            do_prog_snova=yes
+            do_snova=no
+            do_snovis=no
+            do_snovis_session=no
+          elif [ $1 = sess ] ; then
+            do_snovis_session=yes
+            do_snova=no
+            do_snovis=no
+            do_prog_snova=no
+          fi
+        else         
+          echo "unknwon option : $1"
+          exit
+        fi
+        ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+compiler=c++
+
+bin="../${platform}"
+/bin/mkdir -p ${bin}
+
+# snova library :
+if [ ${do_snova} = yes ] ; then
+
+snova_source="${snova_home}"
+
+cppflags=""
+#cppflags="${cppflags} -g -Wall"
+cppflags="${cppflags} -I${HDF5_home}/include -I${CLHEP_home}/include -I${bhep_home}/include -I${G4_home}/include"
+cppflags="${cppflags} -I${GeomUtils_home}/include"
+cppflags="${cppflags} -I${SNgeom2_home}/include"
+cppflags="${cppflags} -I${snova_home}"
+
+eval ${compiler} -c ${cppflags} -o ${bin}/snova_const.o ${snova_source}/base/snova_const.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/event.o ${snova_source}/base/event.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/generator.o ${snova_source}/base/generator.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/run.o ${snova_source}/base/run.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/stepping.o ${snova_source}/base/stepping.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/stepping_verbose.o ${snova_source}/base/stepping_verbose.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/tracking.o ${snova_source}/base/tracking.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/stacking.o ${snova_source}/base/stacking.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/gen_vtx.o ${snova_source}/vertex/gen_vtx.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/visibilities2.o ${snova_source}/geom/visibilities2.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/nemo_field2.o ${snova_source}/geom/nemo_field2.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/materials.o ${snova_source}/geom/materials.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/geometry2.o ${snova_source}/geom/geometry2.cc
+eval ${compiler} -c ${cppflags} -o ${bin}/physics.o ${snova_source}/physics/physics.cc
+
+objs="${bin}/snova_const.o ${bin}/event.o ${bin}/generator.o ${bin}/run.o ${bin}/stacking.o ${bin}/stepping.o ${bin}/stepping_verbose.o ${bin}/tracking.o ${bin}/geometry2.o ${bin}/materials.o ${bin}/nemo_field2.o ${bin}/visibilities2.o ${bin}/physics.o ${bin}/gen_vtx.o"
+
+#/bin/rm -f ${bin}/libsnova.a
+#ar cr ${bin}/libsnova.a ${objs}
+
+if test `uname` = "Darwin" ; then
+/bin/rm -f ${bin}/libsnova.dylib
+eval c++ -dynamiclib -twolevel_namespace -undefined dynamic_lookup -dynamic -single_module -o ${bin}/libsnova.dylib ${objs}
+fi
+
+if test `uname` = "Linux" ; then
+/bin/rm -f ${bin}/libsnova.so
+eval g++ -shared -o ${bin}/libsnova.dylib ${objs}
+fi
+
+fi
+
+# snovis dll :
+if [ ${do_snovis} = yes ] ; then
+
+cppflags="-I.."
+cppflags="${cppflags} `g4lab-config --cppflags`"
+cppflags="${cppflags} `onx-config --iv_cppflags`"
+cppflags="${cppflags} `aida-config --cppflags`"
+
+eval ${compiler} -c ${cppflags} -o ${bin}/Callbacks.o ../source/Callbacks.cxx
+eval ${compiler} -c ${cppflags} -o ${bin}/InventorCallbacks.o ../source/InventorCallbacks.cxx
+eval ${compiler} -c ${cppflags} -o ${bin}/Layouts.o ../source/Layouts.cxx
+
+objs="${bin}/Callbacks.o ${bin}/InventorCallbacks.o ${bin}/Layouts.o"
+
+libs=""
+libs="${libs} `g4lab-config --libs`"
+libs="${libs} `onx-config --iv_libs`"
+
+if test `uname` = "Darwin" ; then
+/bin/rm -f ${bin}/snovis.bundle
+eval c++ -bundle -twolevel_namespace -Wl,-headerpad_max_install_names -Wl,-headerpad,800 -o ${bin}/snovis.bundle ${objs} ${libs}
+fi
+
+if test `uname` = "Linux" ; then
+/bin/rm -f ${bin}/libsnovis.so
+eval g++ -shared -o ${bin}/libsnovis.so ${objs} ${libs}
+fi
+
+fi
+
+# prog_snova application :
+if [ ${do_prog_snova} = yes ] ; then
+
+cppflags=""
+#cppflags="${cppflags} -g"
+cppflags="${cppflags} -I${snova_home}"
+cppflags="${cppflags} -I${SNgeom2_home}/include"
+cppflags="${cppflags} -I${GeomUtils_home}/include"
+cppflags="${cppflags} -I${bhep_home}/include"
+cppflags="${cppflags} -I${G4_home}/include"
+cppflags="${cppflags} -I${HDF5_home}/include"
+cppflags="${cppflags} -I${CLHEP_home}/include"
+
+libs="-L${bin} -lsnova"
+libs="${libs} -L${SNgeom2_home}/${platform_nemo}/lib -lsngeom"
+libs="${libs} -L${GeomUtils_home}/${platform_nemo}/lib -lgeomutils"
+libs="${libs} -L${bhep_home}/lib -lbhep"
+libs="${libs} -L${G4_home}/Darwin/lib/Darwin-g++ -lG4interfaces -lG4physicslists -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
+libs="${libs} -L${CLHEP_home}/lib -lCLHEP"
+libs="${libs} -L${HDF5_home}/lib -lhdf5"
+libs="${libs} -lz"
+#echo ${libs}
+
+opts=
+#opts="${opts} -g"
+#if test `uname` = "Darwin" ; then
+#opts="${opts} -bind_at_load -multiply_defined suppress"
+#fi
+
+/bin/rm -f ${bin}prog_snova
+eval ${compiler} -c ${cppflags} -o ${bin}/prog_snova.o ../applications/prog_snova.cc
+eval ${compiler} ${opts} -o ${bin}/prog_snova ${bin}/prog_snova.o ${libs}
+
+fi
+
+# snovis_session application :
+if [ ${do_snovis_session} = yes ] ; then
+
+cppflags=""
+#cppflags="${cppflags} -g"
+cppflags="${cppflags} -I${snova_home}"
+cppflags="${cppflags} -I${SNgeom2_home}/include"
+cppflags="${cppflags} -I${GeomUtils_home}/include"
+cppflags="${cppflags} -I${bhep_home}/include"
+cppflags="${cppflags} -I${HDF5_home}/include"
+cppflags="${cppflags} `g4lab-config --cppflags`"
+cppflags="${cppflags} `aida-config --cppflags`"
+
+libs="-L${bin} -lsnova"
+libs="${libs} -L${SNgeom2_home}/${platform_nemo}/lib -lsngeom"
+libs="${libs} -L${GeomUtils_home}/${platform_nemo}/lib -lgeomutils"
+libs="${libs} -L${bhep_home}/lib -lbhep"
+libs="${libs} `g4lab-config --libs`"
+libs="${libs} `onx-config --iv_libs`"
+#libs="${libs} -L${CLHEP_home}/lib -lCLHEP"
+libs="${libs} -L${HDF5_home}/lib -lhdf5"
+libs="${libs} -lz"
+#echo ${libs}
+
+opts=
+#opts="${opts} -g"
+if test `uname` = "Darwin" ; then
+opts="${opts} -bind_at_load -multiply_defined suppress"
+fi
+
+eval ${compiler} -c ${cppflags} -o ${bin}/snovis_session.o ../applications/snovis_session.cc
+/bin/rm -f ${bin}snovis_session
+eval ${compiler} ${opts} -o ${bin}/snovis_session ${bin}/snovis_session.o ${libs}
+
+fi
+
+find ${bin} -name '*.o' -exec /bin/rm {} \;
+
Index: /head/build/install
===================================================================
--- /head/build/install	(revision 1)
+++ /head/build/install	(revision 1)
@@ -0,0 +1,43 @@
+#!/bin/sh -f
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/install )
+#   UNIX> sh/install
+#
+# This script is intended to install the 
+# setup.sh and setup.csh scripts. 
+#
+# For setup.sh, it edits the path line :
+#   path_<package>=@@absolute_dir@@
+# and for setup.csh, the path line :
+#   set path_BatchLab="@@absolute_dir@@"
+#
+# The script replaces in these lins the string : 
+#   @@absolute_dir@@ 
+# by the return of the pwd command.
+#
+#////////////////////////////////////////////////
+
+obuild_current=`pwd`
+
+obuild_dir=`echo ${obuild_current} | sed -e 's#/build##g'`
+
+obuild_from='="@@absolute_dir@@"'
+
+obuild_to='="'"${obuild_dir}"'"'
+
+if test -e setup.sh ; then
+  /bin/rm -f obuild_tmp
+  sed -e "s#${obuild_from}#${obuild_to}#g" setup.sh > obuild_tmp
+  /bin/mv obuild_tmp setup.sh
+  /bin/rm -f obuild_tmp
+fi
+
+if test -e setup.csh ; then
+  /bin/rm -f obuild_tmp
+  sed -e "s#${obuild_from}#${obuild_to}#g" setup.csh > obuild_tmp
+  /bin/mv obuild_tmp setup.csh
+  /bin/rm -f obuild_tmp
+fi
Index: /head/build/setup.csh
===================================================================
--- /head/build/setup.csh	(revision 1)
+++ /head/build/setup.csh	(revision 1)
@@ -0,0 +1,30 @@
+
+# Customize the below xxx_home :
+set osc_home="/Users/barrand/OpenScientist/v16r0"
+set SNgeom_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0"
+
+source ${osc_home}/aida-setup.csh
+
+setenv ONXROOT    "${osc_home}/Resources/OnX"
+setenv ONXLABROOT "${osc_home}/Resources/OnXLab"
+setenv G4LABROOT  "${osc_home}/Resources/G4Lab"
+
+source ${SNgeom_home}/setup.csh
+
+set snovis_path="@@absolute_dir@@"
+
+setenv SNOVISROOT "${snovis_path}"
+
+set platform=`uname`
+set snovis_bin="${snovis_path}/${platform}"
+
+if ( `uname` == "Linux" ) then
+  setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}::${snovis_bin}"
+endif
+
+if ( `uname` == "Darwin" ) then
+  setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${snovis_bin}"
+endif
+
+setenv PATH "${PATH}:${snovis_bin}"
+
Index: /head/obuild/DOS/build.bat
===================================================================
--- /head/obuild/DOS/build.bat	(revision 1)
+++ /head/obuild/DOS/build.bat	(revision 1)
@@ -0,0 +1,187 @@
+@ECHO OFF
+SETLOCAL
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> CD some_path\pack\version\obuild
+REM #   DOS> DOS\build
+REM # or :
+REM #   DOS> call DOS\build.bat
+REM #
+REM #////////////////////////////////////////////////
+
+REM #////////////////////////////////////////////////
+REM #/// Get path of this file :
+REM #////////////////////////////////////////////////
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\DOS\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
+
+REM #////////////////////////////////////////////////
+REM #/// Treat arguments :
+REM #////////////////////////////////////////////////
+
+SET obuild_verbose=no
+SET obuild_debug=no
+SET obuild_do_mains=yes
+SET obuild_group=main
+
+SET obuild_args=
+
+:next_arg
+IF "%1%" == "" GOTO end_args
+
+IF NOT "%1%" == "-h" GOTO end_if_h
+  ECHO Usage :
+  ECHO   build [Options] [Target]
+  ECHO Options :
+  ECHO   -v : verbose.
+  ECHO   -g : build in debug mode.
+  ECHO   -e : erase binary directory.
+  ECHO   -x : execute with ECHO ON"
+  ECHO   -nm : build the not-main components.
+  ECHO   -group group : build the given group of components.
+  ECHO Target :
+  ECHO   If no option is specify and a ending
+  ECHO  string is given ; this string is given
+  ECHO  to a find command of the form :
+  ECHO     find ./sh -name "*target*" -exec {} \;
+  ECHO  in order to execute selected scripts under
+  ECHO  the sh directory.
+  ECHO Examples :
+  ECHO   build app
+  ECHO   build -v _lib
+  ECHO   build -v -g dll_
+  GOTO obuild_return
+:end_if_h
+
+IF NOT "%1%" == "-v" GOTO end_if_v
+  SET obuild_verbose=yes
+  SET obuild_args=%obuild_args% -v
+  SHIFT
+  GOTO next_arg
+:end_if_v
+
+IF NOT "%1%" == "-g" GOTO end_if_g
+  SET obuild_debug=yes
+  SET obuild_args=%obuild_args% -g
+  SHIFT
+  GOTO next_arg
+:end_if_g
+
+IF NOT "%1%" == "-e" GOTO end_if_e
+
+  IF "%OBUILD_PLATFORM%" == "" (
+    IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+    SET obuild_platform=%OS%
+  ) ELSE (
+    SET obuild_platform=%OBUILD_PLATFORM%
+  )
+
+  IF "%obuild_platform%" == "" (
+    ECHO obuild_platform variable not defined.
+    GOTO obuild_return
+  )
+
+  IF "%OBUILD_DIR_BIN%" == "" (
+    SET obuild_dir_bin=%obuild_platform%_obuild
+  ) ELSE (
+    SET obuild_dir_bin=%OBUILD_DIR_BIN%
+  )
+
+  IF "%obuild_dir_bin%" == "" (
+    ECHO obuild_dir_bin variable not defined.
+    GOTO obuild_return
+  )
+
+  IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%"
+
+  GOTO obuild_return
+
+:end_if_e
+
+IF NOT "%1%" == "-x" GOTO end_if_x
+  SET obuild_args=%obuild_args% -x
+  SHIFT
+  GOTO next_arg
+:end_if_x
+
+IF NOT "%1%" == "-nm" GOTO end_if_nm
+  SET obuild_do_mains=no
+  SHIFT
+  GOTO next_arg
+:end_if_nm
+
+IF NOT "%1%" == "-group" GOTO end_if_group
+  SHIFT
+  SET obuild_group=%1%
+  SHIFT
+  GOTO next_arg
+:end_if_group
+
+REM # Argument without a leading "-" is assumed to 
+REM # be the last one and then to be a pattern 
+REM # to find and execute command files under 
+REM # the DOS directory.
+SET obuild_arg=%1%
+SET obuild_arg1=%1:~0,1%
+IF "%obuild_arg1%" == "-" GOTO obuild_return
+
+  FOR %%f IN (DOS\*%obuild_arg%*) DO %%f %obuild_args%
+
+  GOTO obuild_return
+
+:end_args
+
+REM #////////////////////////////////////////////////
+REM #/// End arguments.
+REM #////////////////////////////////////////////////
+
+
+IF NOT %obuild_group% == main GOTO end_if_group_0
+IF NOT %obuild_do_mains% == yes GOTO end_if_main_0
+  IF EXIST .\DOS\build_lib_snova.bat (
+    CALL .\DOS\build_lib_snova.bat %obuild_args%
+    @IF ERRORLEVEL 1 @GOTO obuild_return
+    @ECHO OFF
+  )
+:end_if_main_0
+:end_if_group_0
+
+IF NOT %obuild_group% == main GOTO end_if_group_1
+IF NOT %obuild_do_mains% == yes GOTO end_if_main_1
+  IF EXIST .\DOS\build_dll_snovis.bat (
+    CALL .\DOS\build_dll_snovis.bat %obuild_args%
+    @IF ERRORLEVEL 1 @GOTO obuild_return
+    @ECHO OFF
+  )
+:end_if_main_1
+:end_if_group_1
+
+IF NOT %obuild_group% == main GOTO end_if_group_2
+IF NOT %obuild_do_mains% == yes GOTO end_if_main_2
+  IF EXIST .\DOS\build_app_prog_snova.bat (
+    CALL .\DOS\build_app_prog_snova.bat %obuild_args%
+    @IF ERRORLEVEL 1 @GOTO obuild_return
+    @ECHO OFF
+  )
+:end_if_main_2
+:end_if_group_2
+IF NOT %obuild_group% == main GOTO end_if_group_3
+IF NOT %obuild_do_mains% == yes GOTO end_if_main_3
+  IF EXIST .\DOS\build_app_snovis_session.bat (
+    CALL .\DOS\build_app_snovis_session.bat %obuild_args%
+    @IF ERRORLEVEL 1 @GOTO obuild_return
+    @ECHO OFF
+  )
+:end_if_main_3
+:end_if_group_3
+
+:obuild_return
+ENDLOCAL
+@ECHO ON
Index: /head/obuild/DOS/build_app_prog_snova.bat
===================================================================
--- /head/obuild/DOS/build_app_prog_snova.bat	(revision 1)
+++ /head/obuild/DOS/build_app_prog_snova.bat	(revision 1)
@@ -0,0 +1,634 @@
+@ECHO OFF
+SETLOCAL
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> CD some_path\pack\version\obuild
+REM #   DOS> DOS\build_prog_snova
+REM #
+REM #////////////////////////////////////////////////
+
+REM #////////////////////////////////////////////////
+REM #/// Get path of this file :
+REM #////////////////////////////////////////////////
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\DOS\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
+
+REM #////////////////////////////////////////////////
+REM #/// Treat arguments :
+REM #////////////////////////////////////////////////
+
+SET obuild_verbose=no
+SET obuild_debug=no
+SET obuild_optimize=yes
+SET obuild_set_x=no
+
+:next_arg
+IF "%1%" == "" GOTO end_args
+
+IF NOT "%1%" == "-v" GOTO end_if_v
+  SET obuild_verbose=yes
+  SHIFT
+  GOTO next_arg
+:end_if_v
+
+IF NOT "%1%" == "-g" GOTO end_if_g
+  SET obuild_debug=yes
+  SHIFT
+  GOTO next_arg
+:end_if_g
+
+IF NOT "%1%" == "-x" GOTO end_if_x
+  SET obuild_set_x=yes
+  SHIFT
+  GOTO next_arg
+:end_if_x
+
+:end_args
+
+REM #////////////////////////////////////////////////
+REM #/// End arguments.
+REM #////////////////////////////////////////////////
+
+IF %obuild_set_x% == yes ECHO ON
+
+IF %obuild_debug% == yes SET obuild_optimize=no
+
+IF "%OBUILD_PLATFORM%" == "" (
+  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+  SET obuild_platform=%OS%
+) ELSE (
+  SET obuild_platform=%OBUILD_PLATFORM%
+)
+
+IF "%obuild_platform%" == "" (
+  ECHO obuild_platform variable not defined.
+  GOTO obuild_return
+)
+
+IF "%OBUILD_DIR_BIN%" == "" (
+  SET obuild_dir_bin=%obuild_platform%_obuild
+) ELSE (
+  SET obuild_dir_bin=%OBUILD_DIR_BIN%
+)
+
+IF "%obuild_dir_bin%" == "" (
+  ECHO obuild_dir_bin variable not defined.
+  GOTO obuild_return
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
+  IF EXIST obuild_platform.obj DEL obuild_platform.obj
+)
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_platform=Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_platform=Darwin-i386
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_home=/geant4/geant4.8.2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/slc3_gcc323
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Darwin-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Linux-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=WIN32-VC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cl.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=/O2
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=/ZI /Od
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=-fPIC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_debug_local=%obuild_cxx_debug%
+) ELSE (
+  SET obuild_cxx_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
+) ELSE (
+  SET obuild_cxx_optimize_local=
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
+  IF EXIST obuild_find.obj DEL obuild_find.obj
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=-I${SNOVA_ROOT}
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
+)
+SET obuild_platform_result=
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
+
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
+
+@IF %obuild_verbose% == yes @ECHO ON 
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova.obj  /Tp..\applications\prog_snova.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=link.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=/DEBUG
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_options=/nologo
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
+) ELSE (
+  SET obuild_cxx_linker_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
+) ELSE (
+  SET obuild_cxx_linker_optimize_local=
+)
+SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\snova.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
+)
+SET obuild_platform_result=
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF EXIST .\app_prog_snova\tmp_objs DEL .\app_prog_snova\tmp_objs
+FOR %%f IN (.\app_prog_snova\*.obj) DO ECHO %%f >> .\app_prog_snova\tmp_objs
+REM # Link prog_snova :
+IF EXIST .\prog_snova.exe DEL .\prog_snova.exe
+@IF %obuild_verbose% == yes @ECHO ON 
+%obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\prog_snova.exe @.\app_prog_snova\tmp_objs %obuild_linked_libraries%
+@IF ERRORLEVEL 1 @GOTO obuild_return
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+REM # Some cleanup :
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp"
+
+:obuild_return
+ENDLOCAL
+@ECHO ON
Index: /head/obuild/DOS/build_app_snovis_session.bat
===================================================================
--- /head/obuild/DOS/build_app_snovis_session.bat	(revision 1)
+++ /head/obuild/DOS/build_app_snovis_session.bat	(revision 1)
@@ -0,0 +1,829 @@
+@ECHO OFF
+SETLOCAL
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> CD some_path\pack\version\obuild
+REM #   DOS> DOS\build_snovis_session
+REM #
+REM #////////////////////////////////////////////////
+
+REM #////////////////////////////////////////////////
+REM #/// Get path of this file :
+REM #////////////////////////////////////////////////
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\DOS\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
+
+REM #////////////////////////////////////////////////
+REM #/// Treat arguments :
+REM #////////////////////////////////////////////////
+
+SET obuild_verbose=no
+SET obuild_debug=no
+SET obuild_optimize=yes
+SET obuild_set_x=no
+
+:next_arg
+IF "%1%" == "" GOTO end_args
+
+IF NOT "%1%" == "-v" GOTO end_if_v
+  SET obuild_verbose=yes
+  SHIFT
+  GOTO next_arg
+:end_if_v
+
+IF NOT "%1%" == "-g" GOTO end_if_g
+  SET obuild_debug=yes
+  SHIFT
+  GOTO next_arg
+:end_if_g
+
+IF NOT "%1%" == "-x" GOTO end_if_x
+  SET obuild_set_x=yes
+  SHIFT
+  GOTO next_arg
+:end_if_x
+
+:end_args
+
+REM #////////////////////////////////////////////////
+REM #/// End arguments.
+REM #////////////////////////////////////////////////
+
+IF %obuild_set_x% == yes ECHO ON
+
+IF %obuild_debug% == yes SET obuild_optimize=no
+
+IF "%OBUILD_PLATFORM%" == "" (
+  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+  SET obuild_platform=%OS%
+) ELSE (
+  SET obuild_platform=%OBUILD_PLATFORM%
+)
+
+IF "%obuild_platform%" == "" (
+  ECHO obuild_platform variable not defined.
+  GOTO obuild_return
+)
+
+IF "%OBUILD_DIR_BIN%" == "" (
+  SET obuild_dir_bin=%obuild_platform%_obuild
+) ELSE (
+  SET obuild_dir_bin=%OBUILD_DIR_BIN%
+)
+
+IF "%obuild_dir_bin%" == "" (
+  ECHO obuild_dir_bin variable not defined.
+  GOTO obuild_return
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
+  IF EXIST obuild_platform.obj DEL obuild_platform.obj
+)
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_platform=Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_platform=Darwin-i386
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_home=/geant4/geant4.8.2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/slc3_gcc323
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Darwin-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Linux-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=WIN32-VC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cl.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=/O2
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=/ZI /Od
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=-fPIC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_debug_local=%obuild_cxx_debug%
+) ELSE (
+  SET obuild_cxx_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
+) ELSE (
+  SET obuild_cxx_optimize_local=
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
+  IF EXIST obuild_find.obj DEL obuild_find.obj
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=-I${SNOVA_ROOT}
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
+)
+SET obuild_platform_result=
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
+
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
+
+@IF %obuild_verbose% == yes @ECHO ON 
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj  /Tp..\applications\snovis_session.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=link.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=/DEBUG
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_options=/nologo
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
+) ELSE (
+  SET obuild_cxx_linker_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
+) ELSE (
+  SET obuild_cxx_linker_optimize_local=
+)
+SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snovis_path%\%obuild_dir_bin%\snova.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
+)
+SET obuild_platform_result=
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
+FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
+REM # Link snovis_session :
+IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
+@IF %obuild_verbose% == yes @ECHO ON 
+%obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\snovis_session.exe @.\app_snovis_session\tmp_objs %obuild_linked_libraries%
+@IF ERRORLEVEL 1 @GOTO obuild_return
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+REM # Some cleanup :
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
+
+:obuild_return
+ENDLOCAL
+@ECHO ON
Index: /head/obuild/DOS/build_dll_snovis.bat
===================================================================
--- /head/obuild/DOS/build_dll_snovis.bat	(revision 1)
+++ /head/obuild/DOS/build_dll_snovis.bat	(revision 1)
@@ -0,0 +1,682 @@
+@ECHO OFF
+SETLOCAL
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> CD some_path\pack\version\obuild
+REM #   DOS> DOS\build_snovis
+REM #
+REM #////////////////////////////////////////////////
+
+REM #////////////////////////////////////////////////
+REM #/// Get path of this file :
+REM #////////////////////////////////////////////////
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\DOS\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
+
+REM #////////////////////////////////////////////////
+REM #/// Treat arguments :
+REM #////////////////////////////////////////////////
+
+SET obuild_verbose=no
+SET obuild_debug=no
+SET obuild_optimize=yes
+SET obuild_set_x=no
+
+:next_arg
+IF "%1%" == "" GOTO end_args
+
+IF NOT "%1%" == "-v" GOTO end_if_v
+  SET obuild_verbose=yes
+  SHIFT
+  GOTO next_arg
+:end_if_v
+
+IF NOT "%1%" == "-g" GOTO end_if_g
+  SET obuild_debug=yes
+  SHIFT
+  GOTO next_arg
+:end_if_g
+
+IF NOT "%1%" == "-x" GOTO end_if_x
+  SET obuild_set_x=yes
+  SHIFT
+  GOTO next_arg
+:end_if_x
+
+:end_args
+
+REM #////////////////////////////////////////////////
+REM #/// End arguments.
+REM #////////////////////////////////////////////////
+
+IF %obuild_set_x% == yes ECHO ON
+
+IF %obuild_debug% == yes SET obuild_optimize=no
+
+IF "%OBUILD_PLATFORM%" == "" (
+  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+  SET obuild_platform=%OS%
+) ELSE (
+  SET obuild_platform=%OBUILD_PLATFORM%
+)
+
+IF "%obuild_platform%" == "" (
+  ECHO obuild_platform variable not defined.
+  GOTO obuild_return
+)
+
+IF "%OBUILD_DIR_BIN%" == "" (
+  SET obuild_dir_bin=%obuild_platform%_obuild
+) ELSE (
+  SET obuild_dir_bin=%OBUILD_DIR_BIN%
+)
+
+IF "%obuild_dir_bin%" == "" (
+  ECHO obuild_dir_bin variable not defined.
+  GOTO obuild_return
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
+  IF EXIST obuild_platform.obj DEL obuild_platform.obj
+)
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_platform=Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_platform=Darwin-i386
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_home=/geant4/geant4.8.2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/slc3_gcc323
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Darwin-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Linux-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=WIN32-VC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cl.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=/O2
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=/ZI /Od
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=-fPIC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_debug_local=%obuild_cxx_debug%
+) ELSE (
+  SET obuild_cxx_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
+) ELSE (
+  SET obuild_cxx_optimize_local=
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
+  IF EXIST obuild_find.obj DEL obuild_find.obj
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  BatchLab v1r*`) DO SET obuild_BatchLab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_BatchLab_path  ECHO Can't find BatchLab package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
+
+SET obuild_cxx_includes=/I"%obuild_snovis_path%"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_OnX_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_BatchLab_path%"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HEPVis_path%\include"
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_CoinGL_path%\include"
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
+)
+SET obuild_platform_result=
+
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
+
+@IF %obuild_verbose% == yes @ECHO ON 
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj  /Tp..\source\Callbacks.cxx
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj  /Tp..\source\InventorCallbacks.cxx
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj  /Tp..\source\Layouts.cxx
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+SET obuild_linked_libraries="%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
+SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF EXIST .\dll_snovis\tmp_objs DEL .\dll_snovis\tmp_objs
+FOR %%f IN (.\dll_snovis\*.obj) DO ECHO %%f >> .\dll_snovis\tmp_objs
+
+REM # Create the archive library snovis :
+@IF %obuild_verbose% == yes @ECHO ON 
+lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.arc @.\dll_snovis\tmp_objs
+@IF ERRORLEVEL 1 @GOTO obuild_return
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+REM # Build the obuild_windef.exe utility program :
+cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c"
+IF EXIST obuild_windef.obj DEL obuild_windef.obj
+
+REM # Building the .def file :
+@IF %obuild_verbose% == yes @ECHO ON 
+dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc
+@IF %obuild_verbose% == yes @ECHO OFF 
+.\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def
+REM # Building the linking library :
+REM # It produces a .exp file.
+@IF %obuild_verbose% == yes @ECHO ON 
+lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+REM # Building the DLL :
+IF EXIST .\snovis.dll DEL .\snovis.dll
+@IF %obuild_verbose% == yes @ECHO ON 
+link.exe /nologo /dll /out:.\snovis.dll .\dll_snovis\snovis.exp .\dll_snovis\snovis.arc %obuild_linked_libraries%
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+REM # Some cleanup :
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp"
+
+:obuild_return
+ENDLOCAL
+@ECHO ON
Index: /head/obuild/DOS/build_lib_snova.bat
===================================================================
--- /head/obuild/DOS/build_lib_snova.bat	(revision 1)
+++ /head/obuild/DOS/build_lib_snova.bat	(revision 1)
@@ -0,0 +1,675 @@
+@ECHO OFF
+SETLOCAL
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> CD some_path\pack\version\obuild
+REM #   DOS> DOS\build_snova
+REM #
+REM #////////////////////////////////////////////////
+
+REM #////////////////////////////////////////////////
+REM #/// Get path of this file :
+REM #////////////////////////////////////////////////
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\DOS\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
+
+REM #////////////////////////////////////////////////
+REM #/// Treat arguments :
+REM #////////////////////////////////////////////////
+
+SET obuild_verbose=no
+SET obuild_debug=no
+SET obuild_optimize=yes
+SET obuild_set_x=no
+
+:next_arg
+IF "%1%" == "" GOTO end_args
+
+IF NOT "%1%" == "-v" GOTO end_if_v
+  SET obuild_verbose=yes
+  SHIFT
+  GOTO next_arg
+:end_if_v
+
+IF NOT "%1%" == "-g" GOTO end_if_g
+  SET obuild_debug=yes
+  SHIFT
+  GOTO next_arg
+:end_if_g
+
+IF NOT "%1%" == "-x" GOTO end_if_x
+  SET obuild_set_x=yes
+  SHIFT
+  GOTO next_arg
+:end_if_x
+
+:end_args
+
+REM #////////////////////////////////////////////////
+REM #/// End arguments.
+REM #////////////////////////////////////////////////
+
+IF %obuild_set_x% == yes ECHO ON
+
+IF %obuild_debug% == yes SET obuild_optimize=no
+
+IF "%OBUILD_PLATFORM%" == "" (
+  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+  SET obuild_platform=%OS%
+) ELSE (
+  SET obuild_platform=%OBUILD_PLATFORM%
+)
+
+IF "%obuild_platform%" == "" (
+  ECHO obuild_platform variable not defined.
+  GOTO obuild_return
+)
+
+IF "%OBUILD_DIR_BIN%" == "" (
+  SET obuild_dir_bin=%obuild_platform%_obuild
+) ELSE (
+  SET obuild_dir_bin=%OBUILD_DIR_BIN%
+)
+
+IF "%obuild_dir_bin%" == "" (
+  ECHO obuild_dir_bin variable not defined.
+  GOTO obuild_return
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
+  IF EXIST obuild_platform.obj DEL obuild_platform.obj
+)
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_platform=Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_platform=Darwin-i386
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_home=/geant4/geant4.8.2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/slc3_gcc323
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Darwin-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Linux-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=WIN32-VC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_command=cl.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=-O
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_optimize=/O2
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_debug=/ZI /Od
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=-fPIC
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_debug_local=%obuild_cxx_debug%
+) ELSE (
+  SET obuild_cxx_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
+) ELSE (
+  SET obuild_cxx_optimize_local=
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
+  IF EXIST obuild_find.obj DEL obuild_find.obj
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=-I${SNOVA_ROOT}
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
+)
+SET obuild_platform_result=
+SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
+
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova"
+
+@IF %obuild_verbose% == yes @ECHO ON 
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\event.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\event.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\generator.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\generator.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\run.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\run.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_const.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\snova_const.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stacking.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stacking.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stepping.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping_verbose.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stepping_verbose.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\tracking.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\tracking.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\gen_vtx.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\vertex\gen_vtx.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\geometry2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\geometry2.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\materials.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\materials.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\nemo_field2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\nemo_field2.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\visibilities2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\visibilities2.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\physics.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\physics\physics.cc
+@IF ERRORLEVEL 1 @GOTO obuild_return
+cd "%obuild_snovis_path%\obuild"
+
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=c++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=cxx
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_command=link.exe
+)
+SET obuild_platform_result=
+IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=-g
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_debug=/DEBUG
+)
+SET obuild_platform_result=
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET obuild_cxx_linker_options=/nologo
+)
+SET obuild_platform_result=
+
+IF %obuild_debug% == yes (
+  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
+) ELSE (
+  SET obuild_cxx_linker_debug_local=
+)
+IF %obuild_optimize% == yes (
+  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
+) ELSE (
+  SET obuild_cxx_linker_optimize_local=
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
+FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
+
+REM # Create the archive library snova :
+@IF %obuild_verbose% == yes @ECHO ON 
+lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
+@IF ERRORLEVEL 1 @GOTO obuild_return
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+REM # Build the obuild_windef.exe utility program :
+cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c"
+IF EXIST obuild_windef.obj DEL obuild_windef.obj
+
+REM # Building the .def file :
+@IF %obuild_verbose% == yes @ECHO ON 
+dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc
+@IF %obuild_verbose% == yes @ECHO OFF 
+.\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
+REM # Building the linking library :
+REM # It produces a .exp file.
+@IF %obuild_verbose% == yes @ECHO ON 
+lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+REM # Building the DLL :
+IF EXIST .\snova.dll DEL .\snova.dll
+@IF %obuild_verbose% == yes @ECHO ON 
+link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
+@IF %obuild_verbose% == yes @ECHO OFF 
+
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+REM # Some cleanup :
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
+IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snova.exp"
+
+:obuild_return
+ENDLOCAL
+@ECHO ON
Index: /head/obuild/build_setup.csh
===================================================================
--- /head/obuild/build_setup.csh	(revision 1)
+++ /head/obuild/build_setup.csh	(revision 1)
@@ -0,0 +1,12 @@
+
+set SN_home=/Users/barrand/dev/exp/nemo
+
+#source ${SNgeom_home}/build_setup.csh
+
+setenv BHEP_ROOT "${SN_home}/bhep/v1r4p1"
+
+set SNgeom_home="${SN_home}/SNgeom/v0r1p0"
+setenv GEOMUTILS_ROOT "${SNgeom_home}/build_area/GeomUtils"
+setenv SNGEOM2_ROOT "${SNgeom_home}/build_area/SNgeom2"
+setenv SNOVA_ROOT "${SNgeom_home}/build_area/snova"
+
Index: /head/obuild/cpp/obuild_find.cpp
===================================================================
--- /head/obuild/cpp/obuild_find.cpp	(revision 1)
+++ /head/obuild/cpp/obuild_find.cpp	(revision 1)
@@ -0,0 +1,549 @@
+//
+//  This program is and should be standalone so that :
+//     UNIX> c++ obuild_find.cxx 
+//      DOS> cl.exe obuild_find.cxx 
+// builds at first shoot.
+//
+
+#include <string>
+#include <vector>
+#include <stdlib.h>
+
+// From Lib :
+static bool Lib_System_getenv(const std::string&,std::string&);
+static std::string Lib_System_pathSeparator();
+static std::string Lib_System_fileSeparator();
+static std::vector<std::string> Lib_smanip_words(const std::string&,
+                                                 const std::string&,
+                                                 bool = false);
+static bool Lib_smanip_match(const std::string&,const std::string&);
+static bool Lib_smanip_printf(std::string&,int,const char*,...);
+
+static bool Lib_dirmanip_entries(const std::string&,
+                                 std::vector<std::string>&,bool = true);
+static bool Lib_dirmanip_isAnEntry(const std::string&,const std::string&,
+                                 bool&);
+static bool Lib_dirmanip_find(const std::vector<std::string>& aPaths,
+                   const std::string& aPackage,
+                   const std::string& aVersion,
+                   std::string& aPath,
+                   std::string& aError); 
+
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+int main(
+ int aArgc
+,char** aArgv
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  std::vector<std::string> args;
+ {for(int index=0;index<aArgc;index++) args.push_back(aArgv[index]);}
+  
+  std::string pack;
+  std::string vers;
+  if(args.size()==2) {
+    pack = args[1];
+  } else if(args.size()==3) {
+    pack = args[1];
+    vers = args[2];
+  } else {
+    fprintf(stderr,"obuild_find : one or two arguments expected.\n");
+    printf("\n");
+    return EXIT_FAILURE;
+  }
+
+  //fprintf(stderr,"obuild_find : \"%s\" vers \"%s\"\n",pack.c_str(),vers.c_str());
+
+  std::string::size_type star = vers.find('*');
+  bool vers_wildcard = (star==std::string::npos?false:true);
+
+  std::string opath;
+  if(!Lib_System_getenv("OBUILD_PATH",opath)) {
+    fprintf(stderr,"\
+obuild_find : environment variable OBUILD_PATH not defined.\n\
+\n\
+  OBUILD_PATH is a list of head directories\n\
+ containing packages. Directories are ':' separated on a UNIX\n\
+ and ';' separated on a Windows.\n\
+\n\
+  For example, on a UNIX, if /work/project1 contains package pack1\n\
+ and /usr/project2 contains the package pack2 ; then\n\
+ having for the obuild directories the directory hierachies :\n\
+    /work/project1/pack1/<version>/obuild\n\
+    /usr/project2/pack2/<version>/obuild\n\
+ someone set the OBUILD_PATH variable under a csh flavoured\n\
+ shell with :\n\
+    csh> setenv OBUILD_PATH \"/work/project1:/usr/project2\"\n\
+ and under a sh flavoured shell with :\n\
+     sh> OBUILD_PATH=\"/work/project1:/usr/project2\"\n\
+     sh> export OBUILD_PATH\n\
+ Under DOS :\n\
+    DOS> SET OBUILD_PATH=C:\\work\\project1;D:\\usr\\project2\"\n\
+\n\
+");
+    printf("\n");
+    return EXIT_FAILURE;
+  }
+    
+  std::string sep = Lib_System_pathSeparator();
+  std::vector<std::string> paths = Lib_smanip_words(opath,sep);
+
+  std::string path,serr;
+  std::string dir;
+  if(!Lib_dirmanip_find(paths,pack,vers,dir,serr)) {
+    fprintf(stderr,"%s\n",serr.c_str());
+    printf("\n");
+    return EXIT_FAILURE;
+  }
+  if(dir=="") {
+    printf("\n");
+    return EXIT_FAILURE; //Not found.
+  }
+  printf("%s\n",dir.c_str());          
+  return EXIT_SUCCESS;  
+}
+
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_System_getenv(
+ const std::string& aString
+,std::string& aValue
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  const char* env = ::getenv(aString.c_str());
+  if(env) {
+    aValue = std::string(env?env:"");
+    return true;
+  } else {
+    aValue = "";
+    return false;
+  }
+}
+//////////////////////////////////////////////////////////////////////////////
+std::string Lib_System_fileSeparator(
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+#ifdef WIN32
+  return "\\";
+#else
+  return "/";
+#endif
+}
+//////////////////////////////////////////////////////////////////////////////
+std::string Lib_System_pathSeparator(
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+#ifdef WIN32
+  return ";";
+#else
+  return ":";
+#endif
+}
+//////////////////////////////////////////////////////////////////////////////
+#include <string.h> /* strcpy */
+#include <stdlib.h> /* malloc,free */
+
+#define Lib_strdup(str)  ((str) != NULL ? (::strcpy((char*)::malloc((unsigned)::strlen(str) + 1), str)) : (char*)NULL)
+#define Lib_strdel(str) {if((str)!=NULL) {::free(str);str=NULL;}}
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_smanip_match(
+ const std::string& aString   
+,const std::string& aPattern 
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  int lpattern = aPattern.length();
+  int lstring  = aString.length();
+  if ((lpattern==0)&&(lstring==0)) return true;
+  if ((lpattern==0)&&(lstring!=0)) return true;
+  if ((lpattern!=0)&&(lstring==0)) return false;
+  // pattern is * :
+  if(aPattern=="*") return true;
+  int wcount = 0;
+  int count;
+  for(count=0;count<lpattern;count++) {
+    if(aPattern[count]=='*') wcount++;
+  }
+  // no wildcard :
+  if(wcount==0) {
+    return (aPattern==aString ? true : false );
+  }
+
+  // complex pattern :
+#define PACKET 32
+  char** words = (char**)::malloc(PACKET * sizeof(char*));
+  if(words==NULL) return false;
+  int wmax = PACKET;
+  int wnumber= 0;
+  char* s = Lib_strdup(aPattern.c_str());
+  char* token = s;
+  while(1) { 
+    char* pos = ::strstr (token,"*");
+    if(pos) {
+      *pos = '\0';
+      if(*token!='\0') {
+        if(wnumber>=wmax) {
+          words = (char**)::realloc(words,(wmax+PACKET) * sizeof(char*));
+          if(words==NULL) {
+            Lib_strdel(s);
+            return false;
+          }
+          wmax += PACKET;
+        }
+        words[wnumber] = token;
+        wnumber++;
+      }
+      token = pos + 1;
+    } else { // last word :
+      if(*token!='\0') {
+        if(wnumber>=wmax) {
+          words = (char**)::realloc(words,(wmax+PACKET) * sizeof(char*));
+          if(words==NULL) {
+            Lib_strdel(s);
+            return false;
+          }
+          wmax += PACKET;
+        }
+        words[wnumber] = token;
+        wnumber++;
+      }
+      break;
+    }
+  }
+  // check that at least one word is not empty :
+  bool ok = false;
+  for(count=0;count<wnumber;count++) { 
+    if(*(words[count])!='\0') {
+      ok = true;
+      break;
+    }
+  }
+  if(!ok) { // only wildcards :
+    Lib_strdel(s);
+    if(words) ::free(words);
+    return true;
+  } 
+
+  // loop on words :
+  bool match = true;
+  token = (char*)aString.c_str();
+  for(count=0;count<wnumber;count++) { 
+    int   lword;
+    lword = ::strlen(words[count]); 
+    if(lword>0) { 
+      char* pos;
+      if(count==0) {
+        if(aPattern[0]!='*') {
+          // Begin of pattern (words[0]) and aString must match :
+          if(::strncmp(token,words[count],lword)!=0) {
+            match = false; // Different.
+            break;      
+          }
+          token = token + lword;
+          continue;
+        }
+      }
+      pos = ::strstr (token,words[count]);
+      if(!pos) {
+        match = false;
+        break;
+      }
+      if((count==(wnumber-1)) && (aPattern[lpattern-1]!='*') ) {
+        // Last word :
+        if(::strcmp(aString.c_str()+lstring-lword,words[count])!=0) 
+          match = false; // Compare last word and end of aString.
+        break;
+      } else {
+        token = pos + lword;
+      }
+    }
+  }
+  Lib_strdel(s);
+  if(words) ::free(words);
+  return match;
+}
+//////////////////////////////////////////////////////////////////////////////
+std::vector<std::string> Lib_smanip_words(
+ const std::string& aString
+,const std::string& aLimiter 
+,bool aTakeEmpty // false
+)
+//////////////////////////////////////////////////////////////////////////////
+//  If aLimiter is for exa "|" and for "xxx||xxx" :
+//  - aTakeEmpty false : {"xxx","xxx"} will be created (and NOT {"xxx","","xxx"}).
+//  - aTakeEmpty true : {"xxx","","xxx"} will be created.
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  std::vector<std::string> words;
+  if(aString=="") return words;
+  std::string::size_type lim = (aTakeEmpty?0:1);
+  if(aLimiter=="") {
+    words.push_back(aString);
+  } else {
+    std::string::size_type l = aString.length();
+    std::string::size_type llimiter = aLimiter.length();
+    std::string::size_type pos = 0;
+    while(1) {
+      std::string::size_type index = aString.find(aLimiter,pos);
+      if(index==std::string::npos){ // Last word.
+        if((l-pos)>=lim) words.push_back(aString.substr(pos,l-pos));
+        break;
+      } else {
+        //     abcxxxef
+        //     0  3  67
+        if((index-pos)>=lim) words.push_back(aString.substr(pos,index-pos));
+        pos = index + llimiter;
+      }
+    }
+  }
+  return words;
+}
+#include <stdarg.h>
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_smanip_printf(
+ std::string& aString
+,int aLength
+,const char* aFormat
+,...
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  aString = "";
+  if(aLength<0) return false;
+  if(!aFormat) return false;
+  char* s = new char[aLength+1];
+  if(!s) return false;
+  s[aLength] = '\0';
+  va_list args;
+  va_start (args,aFormat);
+  vsprintf (s,aFormat,args);
+  va_end   (args);
+  if(s[aLength]!='\0') {
+    delete [] s;
+    return false;
+  }
+  aString = s;
+  delete [] s;
+  return true;
+}
+
+#ifdef WIN32
+#include <windows.h>
+#include <direct.h>
+#else //UNIX
+#include <dirent.h>
+#if defined(_POSIX_SOURCE)
+#define REAL_DIR_ENTRY(dp) 1
+#else
+#define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
+#endif
+#include <unistd.h>
+#endif
+
+#include <sys/stat.h>
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_dirmanip_entries(
+ const std::string& aPath
+,std::vector<std::string>& aList
+,bool aFullPath
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  aList.clear();
+  struct stat finfo;
+  if (::stat(aPath.c_str(),&finfo) < 0)  return false;
+#ifdef WIN32
+  if (!(finfo.st_mode & S_IFDIR)) return false;
+  std::string entry = aPath;
+  if (!(entry[entry.size()] == '/' || entry[entry.size()] == '\\' ))
+    entry += "\\";
+  entry += "*";
+  WIN32_FIND_DATA findFileData;
+  HANDLE dir = ::FindFirstFile(entry.c_str(),&findFileData);
+  if(dir == INVALID_HANDLE_VALUE) return false;
+  // Get file names :
+  for (;;) {
+    if(!::FindNextFile(dir,&findFileData)) break;
+    std::string name = (const char*)findFileData.cFileName;
+    if(aFullPath)
+      aList.push_back(aPath+"\\"+name);
+    else
+      aList.push_back(name);
+  }
+  ::FindClose(dir);
+#else
+  if (!S_ISDIR(finfo.st_mode)) return false;
+  DIR* dir = ::opendir(aPath.c_str());
+  if(!dir) return false;
+  // Get file names :
+  for (;;) {
+    struct dirent* dp = ::readdir(dir);
+    //struct direct* dp;
+    if (dp==NULL) break;
+    if (REAL_DIR_ENTRY(dp)) {
+      std::string name = dp->d_name;
+      // Be sure we can work on the file :
+      std::string fname = aPath+"/"+name;
+      if (::stat(fname.c_str(),&finfo) < 0)  continue;
+      if(aFullPath)
+        aList.push_back(fname);
+      else
+        aList.push_back(name);
+    }
+  }
+  ::closedir(dir);
+#endif
+  return true;
+}
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_dirmanip_isAnEntry(
+ const std::string& aPath
+,const std::string& aName
+,bool& aFound
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  aFound = false;
+  struct stat finfo;
+  if (::stat(aPath.c_str(),&finfo) < 0)  return false;
+#ifdef WIN32
+  if (!(finfo.st_mode & S_IFDIR)) return false;
+  std::string entry = aPath;
+  if (!(entry[entry.size()] == '/' || entry[entry.size()] == '\\' ))
+    entry += "\\";
+  entry += "*";
+  WIN32_FIND_DATA findFileData;
+  HANDLE dir = ::FindFirstFile(entry.c_str(),&findFileData);
+  if(dir == INVALID_HANDLE_VALUE) return false;
+  // Get file names :
+  for (;;) {
+    if(!::FindNextFile(dir,&findFileData)) break;
+    std::string name = (const char*)findFileData.cFileName;
+    if(name==aName) {
+      aFound = true;
+      ::FindClose(dir);
+      return true;
+    }
+  }
+  ::FindClose(dir);
+#else
+  if (!S_ISDIR(finfo.st_mode)) return false;
+  DIR* dir = ::opendir(aPath.c_str());
+  if(!dir) return false;
+  // Get file names :
+  for (;;) {
+    struct dirent* dp = ::readdir(dir);
+    //struct direct* dp;
+    if (dp==NULL) break;
+    if (REAL_DIR_ENTRY(dp)) {
+      std::string name = dp->d_name;
+      if(name==aName) {
+        aFound = true;
+        ::closedir(dir);
+        return true;
+      }
+    }
+  }
+  ::closedir(dir);
+#endif
+  return true;
+}
+//////////////////////////////////////////////////////////////////////////////
+bool Lib_dirmanip_find(
+ const std::vector<std::string>& aPaths
+,const std::string& aPackage
+,const std::string& aVersion
+,std::string& aPath
+,std::string& aError
+) 
+//////////////////////////////////////////////////////////////////////////////
+// aVersion could be empty and can contain woldcards.
+// The list of paths is searched first to last.
+// return true and aPath="" mean not found.
+// return false : something went wrong in directory manipulation.
+//                aError contains then an error message.
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  if(aPackage=="") {
+    aError = "Lib::dirmanip::find : empty package name.";
+    return false;
+  }
+
+  std::string sep = Lib_System_fileSeparator();
+
+  std::string::size_type star = aVersion.find('*');
+  bool vers_wildcard = (star==std::string::npos?false:true);
+
+  unsigned int pathn = aPaths.size();
+  //fprintf(stderr,"obuild_find : number of path %d\n",pathn);
+  for(unsigned int pathi=0;pathi<pathn;pathi++) {
+    std::string dir = aPaths[pathi];
+    //fprintf(stderr,"Lib::dirmanip::find : look directory \"%s\"\n",
+    //  dir.c_str());
+    bool found;
+    if(!Lib_dirmanip_isAnEntry(dir,aPackage,found)) {
+      aPath = "";
+      Lib_smanip_printf(aError,128+dir.size(),
+        "Lib::dirmanip::find : can't open directory \"%s\"\n",dir.c_str());
+      return false;
+    }
+    if(found) {
+      if(aVersion=="") {
+        dir += sep+aPackage;
+        aPath = dir;
+        aError = "";
+        return true;
+      }
+      // Look version :
+      dir += sep+aPackage;
+      if(vers_wildcard) {
+        std::vector<std::string> files;
+        if(Lib_dirmanip_entries(dir,files,false)) {
+          unsigned int number = files.size();
+          for(unsigned int index=0;index<number;index++) {
+            const std::string& file = files[index];
+            //std::string p,n,s;
+            //Lib::smanip::pathNameSuffix(file,p,n,s);
+            if(Lib_smanip_match(file,aVersion)) {
+              dir += sep+file;
+              aPath = dir;
+              aError = "";
+              return true;
+            }
+          } 
+        } 
+      } else {
+        bool found;
+        if(!Lib_dirmanip_isAnEntry(dir,aVersion,found)) {
+          aPath = "";
+          Lib_smanip_printf(aError,128+dir.size(),
+            "Lib::dirmanip::find : can't open directory \"%s\"\n",dir.c_str());
+          return false;
+        }
+        dir += sep+aVersion;
+        aPath = dir;
+        aError = "";
+        return true;
+      }
+    }
+  }
+
+  aPath = ""; // return true and aPath="" mean not found.
+  aError = "";
+  return true;
+}
Index: /head/obuild/cpp/obuild_platform.cpp
===================================================================
--- /head/obuild/cpp/obuild_platform.cpp	(revision 1)
+++ /head/obuild/cpp/obuild_platform.cpp	(revision 1)
@@ -0,0 +1,206 @@
+//
+//  This program is and should be standalone so that :
+//     UNIX> c++ obuild_platform.cxx 
+//      DOS> cl.exe obuild_platform.cxx 
+// builds at first shoot.
+//
+
+#include <string>
+#include <vector>
+#include <stdlib.h>
+#include <stdio.h>
+
+// From Lib :
+static std::vector<std::string> Lib_smanip_words(const std::string&,
+                                                 const std::string&,
+                                                 bool = false);
+
+//////////////////////////////////////////////////////////////////////////////
+static bool isKnownKeyword(
+ const std::string& aString
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  if(aString=="Windows_NT") {
+    return true;
+  } else if(aString=="Linux") {
+    return true;
+  } else if(aString=="Darwin") {
+    return true;
+  } else if(aString=="SunOS") {
+    return true;
+  } else if(aString=="OSF1") {
+    return true;
+  } else if(aString=="UNIX") {
+    return true;
+  } else {
+    return false;
+  }
+}
+//////////////////////////////////////////////////////////////////////////////
+static bool isUNIX(
+ const std::string& aString
+,bool& aResult
+)
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  if(!isKnownKeyword(aString)) {
+    aResult = false;
+    return false;
+  }
+  if(aString=="Windows_NT") {
+    aResult = false;
+  } else {
+    aResult = true;
+  }
+  return true;
+}
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+int main(
+ int aArgc
+,char** aArgv
+) 
+//////////////////////////////////////////////////////////////////////////////
+// aArgs[0] : program name.
+// aArgs[1] : we expect the result of `uname`.
+// aArgs[2] : an expression to compare with.
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  std::vector<std::string> args;
+ {for(int index=0;index<aArgc;index++) args.push_back(aArgv[index]);}
+  
+  if(args.size()!=3) {
+    fprintf(stderr,"obuild_platform : two arguments expected.\n");
+    printf("no\n");
+    return EXIT_FAILURE;
+  }
+
+  std::string uname = args[1];
+  if(!isKnownKeyword(uname)) {
+    fprintf(stderr,"obuild_platform : unknwon keyword \"%s\".\n",
+            uname.c_str());
+    printf("no\n");
+    return EXIT_FAILURE;
+  }
+
+  std::string expression = args[2];
+
+  std::vector<std::string> words = Lib_smanip_words(expression," ");
+
+  unsigned int wordn = words.size();
+  if(wordn==1) {
+
+    const std::string& keyword = words[0];
+
+    if(keyword=="UNIX") {
+
+      bool is_unix;
+      if(!isUNIX(uname,is_unix)) {
+      } else {
+        if(is_unix) {
+          printf("yes\n");
+          return EXIT_SUCCESS;
+        } else {
+          printf("no\n");
+          return EXIT_SUCCESS;
+        }
+      }
+
+    } else if(keyword==uname) {
+
+      printf("yes\n");
+      return EXIT_SUCCESS;
+
+    } else if(isKnownKeyword(keyword)) {
+
+      printf("no\n");
+      return EXIT_SUCCESS;
+
+    }
+
+  } else if(wordn==2) {
+
+    if(words[0]=="not") {
+
+      const std::string& keyword = words[1];
+
+      if(keyword=="UNIX") {
+
+        bool is_unix;
+        if(!isUNIX(uname,is_unix)) {
+        } else {
+          if(is_unix) {
+            printf("no\n");
+            return EXIT_SUCCESS;
+          } else {
+            printf("yes\n");
+            return EXIT_SUCCESS;
+          }
+        }
+
+      } else if(keyword==uname) {
+
+        printf("no\n");
+        return EXIT_SUCCESS;
+
+      } else if(isKnownKeyword(keyword)) {
+
+        printf("yes\n");
+        return EXIT_SUCCESS;
+
+      }
+
+    }
+
+  }
+
+  fprintf(stderr,"obuild_platform : expression \"%s\" not yet supported.\n",
+          expression.c_str());
+  printf("no\n");
+  return EXIT_FAILURE;
+}
+
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+std::vector<std::string> Lib_smanip_words(
+ const std::string& aString
+,const std::string& aLimiter 
+,bool aTakeEmpty // false
+)
+//////////////////////////////////////////////////////////////////////////////
+//  If aLimiter is for exa "|" and for "xxx||xxx" :
+//  - aTakeEmpty false : {"xxx","xxx"} will be created (and NOT {"xxx","","xxx"}).
+//  - aTakeEmpty true : {"xxx","","xxx"} will be created.
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  std::vector<std::string> words;
+  if(aString=="") return words;
+  std::string::size_type lim = (aTakeEmpty?0:1);
+  if(aLimiter=="") {
+    words.push_back(aString);
+  } else {
+    std::string::size_type l = aString.length();
+    std::string::size_type llimiter = aLimiter.length();
+    std::string::size_type pos = 0;
+    while(1) {
+      std::string::size_type index = aString.find(aLimiter,pos);
+      if(index==std::string::npos){ // Last word.
+        if((l-pos)>=lim) words.push_back(aString.substr(pos,l-pos));
+        break;
+      } else {
+        //     abcxxxef
+        //     0  3  67
+        if((index-pos)>=lim) words.push_back(aString.substr(pos,index-pos));
+        pos = index + llimiter;
+      }
+    }
+  }
+  return words;
+}
Index: /head/obuild/cpp/obuild_windef.c
===================================================================
--- /head/obuild/cpp/obuild_windef.c	(revision 1)
+++ /head/obuild/cpp/obuild_windef.c	(revision 1)
@@ -0,0 +1,178 @@
+/* +---------------------- Copyright notice -------------------------------+ */
+/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr)    | */
+/* |   Permission to use, copy, modify, and distribute this software       | */
+/* |   and its documentation for any purpose and without fee is hereby     | */
+/* |   granted, provided that the above copyright notice appear in all     | */
+/* |   copies and that both that copyright notice and this permission      | */
+/* |   notice appear in supporting documentation.  This software is        | */
+/* |   provided "as is" without express or implied warranty.               | */
+/* +---------------------- Copyright notice -------------------------------+ */
+
+/*
+  This program is a tool to build .def file
+ used by lib.exe to build the DLL on Windows.
+  It takes the output of a "dumpbin" over an
+ archive library and produces the .def file for
+ this library. For example :
+   DOS> dumpbin /out:tmp /symbols MyLib.arc
+   DOS> obuild_windef.exe MyLib < tmp > MyLib.def
+ Note that obuild_windef is a standalone program that 
+ can be easily reconstructed with :
+   DOS> cl /Foobuild_windef.exe obuild_windef.c
+*/
+
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+char** GetWords (char*,char*,int*);
+/*****************************************************************************/
+int main (
+ int aArgn 
+,char** aArgs
+)
+/*****************************************************************************/
+{
+#define MAX_STRING 2048
+  char buffer[MAX_STRING+1];
+  int length;
+
+
+  /*EXETYPE WINDOWS\n\ */
+  printf("\
+LIBRARY %s\n\
+EXPORTS\n",aArgs[1]);
+
+  while(1){
+    if(fgets(buffer,MAX_STRING,stdin)==NULL) return EXIT_FAILURE;
+    /*
+      On some system (NT) editors when saving binary files 
+      put \r\n at place of \n ; we then look for \r\n.
+    */
+    length = strlen(buffer);
+    if( (length>=2) && (buffer[length-2]=='\r') && (buffer[length-1]=='\n') ) {
+      buffer[length-2] = '\0';
+      length--;
+      length--;
+    } else if((length>=1) && (buffer[length-1]=='\n')) {
+      buffer[length-1] = '\0';
+      length--;
+    }
+    if(strstr(buffer,"SECT")==NULL) continue;
+    if(strstr(buffer,"External")==NULL) continue;
+    if(strstr(buffer,"??_")!=NULL) {
+      if(strstr(buffer,"operator/=")==NULL) continue;
+      /* Keep operator /= */
+    }
+
+    {    
+      char** words;
+      int    wordn;
+      words  = GetWords (buffer," ",&wordn);
+      if(wordn>=8) {
+	int iword = 7;
+        int offset = 0;
+	if(strcmp(words[4],"()")==0) {
+	  iword = 7;
+	} else if(strcmp(words[4],"External")==0) {
+	  iword = 6;
+	}
+        /* FIXME : in cmt_generator.cxx 
+        else return;  */
+	if(words[iword][0]=='_') offset = 1;
+
+        if( (iword==6) && 
+            ( (strstr(buffer,": static")!=NULL) ||
+              (strstr(buffer,"(class")!=NULL) ) ){
+	  /* static data members are not DATA */
+	  /* extern objects are not DATA */
+	  printf(" %s\n",words[iword]+offset);
+	} else if(iword==6) {
+          /* DATA */
+	  printf(" %s\tDATA\n",words[iword]+offset);
+	} else {
+          /* code */
+	  printf(" %s\n",words[iword]+offset);
+	}
+
+      }
+      {int count;
+      for(count=0;count<wordn;count++) if(words[count]) free(words[count]);
+      if(words) free(words);}
+    }
+    /*printf("%s\n",buffer);*/
+  }
+  return EXIT_SUCCESS;
+}
+/*****************************************************************************/
+char** GetWords (
+ char* a_string 
+,char* a_limiter 
+,int* a_number
+)
+/***************************************************************************/
+/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
+{
+#define STRDUP(str)  ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)
+#define STRDEL(str) {if((str)!=NULL) {free(str);str=NULL;}}
+  int count;
+  char*  string;
+  char*  token;
+  int    iline;
+  char** list  = NULL;
+  int    nline = 0;
+
+  if(a_number!=NULL) *a_number      = 0;
+  if( (a_string==NULL) || (*a_string=='\0') )  return NULL;
+  if(a_limiter==NULL) return NULL;
+
+  string = STRDUP(a_string);
+  if(string==NULL) return NULL;
+
+  nline = 16;
+  list = (char**)malloc(nline*sizeof(char*));
+  if(list==NULL) return NULL;
+  iline = 0;
+
+  token = string;
+  while(1) { 
+    char* pos;
+    pos = strstr (token,a_limiter);
+    if(pos!=NULL) {
+      *pos = '\0';
+      if(*token!='\0') {
+	if(iline>=nline) { 
+	  nline    +=16;
+	  list      = (char**)realloc(list,nline*sizeof(char*));
+	  if(list==NULL) return NULL;
+	}
+	list[iline]      = token;
+	iline++;
+      }
+      token = pos + strlen(a_limiter);          
+    } else { /*last word*/
+      if(*token!='\0') {
+	if(iline>=nline) {
+	  nline    += 16;
+	  list      = (char**)realloc(list,nline*sizeof(char*));
+	  if(list==NULL) return NULL;
+	}
+	list[iline]      = token;
+	iline++;
+      }
+      break;
+    }
+  }
+  
+  for(count=0;count<iline;count++) list[count] = STRDUP(list[count]);
+  STRDEL(string);
+
+  if(iline==0)  {
+    if(list) free(list);
+    if(a_number!=NULL) *a_number = 0;
+    return             NULL;
+  } else {
+    if(a_number!=NULL) *a_number = iline;
+    return             list;
+  }
+}
Index: /head/obuild/setup.bat
===================================================================
--- /head/obuild/setup.bat	(revision 1)
+++ /head/obuild/setup.bat	(revision 1)
@@ -0,0 +1,229 @@
+@ECHO OFF
+
+REM #
+REM # File produced by the obuild tool version 1.0
+REM # for the package snovis with version v1r0.
+REM #
+
+REM #////////////////////////////////////////////////
+REM # Usage :
+REM #   DOS> setup
+REM # or :
+REM #   DOS> setup.bat
+REM # or :
+REM #   DOS> call setup.bat
+REM #////////////////////////////////////////////////
+
+SET obuild_snovis_path=%~dp0
+REM # Remove ending \obuild\
+SET obuild_snovis_path=%obuild_snovis_path:~0,-8%
+
+IF "%OBUILD_PLATFORM%" == "" (
+  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
+  SET obuild_platform=%OS%
+) ELSE (
+  SET obuild_platform=%OBUILD_PLATFORM%
+)
+
+IF "%obuild_platform%" == "" (
+  ECHO obuild_platform variable not defined.
+  GOTO obuild_return
+)
+
+IF "%OBUILD_DIR_BIN%" == "" (
+  SET obuild_dir_bin=%obuild_platform%_obuild
+) ELSE (
+  SET obuild_dir_bin=%OBUILD_DIR_BIN%
+)
+
+IF "%obuild_dir_bin%" == "" (
+  ECHO obuild_dir_bin variable not defined.
+  GOTO obuild_return
+)
+
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
+  IF EXIST obuild_platform.obj DEL obuild_platform.obj
+)
+
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET bhep_platform=Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET GeomUtils_platform=Darwin-i386
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_home=/geant4/geant4.8.2
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/Darwin
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_work=${Geant4_home}/slc3_gcc323
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Darwin-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=Linux-g++
+)
+SET obuild_platform_result=
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
+FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF %obuild_platform_result% == yes (
+SET Geant4_system=WIN32-VC
+)
+SET obuild_platform_result=
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
+  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
+  IF EXIST obuild_find.obj DEL obuild_find.obj
+)
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
+cd "%obuild_snovis_path%\%obuild_dir_bin%"
+IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
+FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
+cd "%obuild_pwd_snovis_0%"
+SET obuild_pwd_snovis_0=
+IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
+
+REM # Execute setup of used packages :
+IF NOT EXIST "%obuild_OnX_path%\obuild\setup.bat"  ECHO setup.bat not found for package OnX.  && GOTO obuild_return
+CALL "%obuild_OnX_path%\obuild\setup.bat"
+@ECHO OFF
+
+IF NOT EXIST "%obuild_G4Lab_path%\obuild\setup.bat"  ECHO setup.bat not found for package G4Lab.  && GOTO obuild_return
+CALL "%obuild_G4Lab_path%\obuild\setup.bat"
+@ECHO OFF
+
+REM # Set environment variables of this package :
+SET SNOVISROOT=%obuild_snovis_path%
+SET G4RADIOACTIVEDATA=%Geant4_home%\data\RadiativeDecay3.1
+SET G4LEVELGAMMADATA=%Geant4_home%\data\PhotonEvaporation2.0
+SET G4LEDATA=%Geant4_home%\data\G4EMLOW4.2
+SET NeutronHPCrossSections=%Geant4_home%\data\G4NDL3.10
+
+IF NOT DEFINED PATH (
+  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
+) ELSE (
+  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
+)
+
+:obuild_return
+
+SET obuild_snovis_path=
+
+REM # FIXME SET obuild_platform=
+REM # FIXME SET obuild_dir_bin=
+
+@ECHO ON
Index: /head/obuild/setup.csh
===================================================================
--- /head/obuild/setup.csh	(revision 1)
+++ /head/obuild/setup.csh	(revision 1)
@@ -0,0 +1,428 @@
+#!/bin/csh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   csh> source setup.csh
+#////////////////////////////////////////////////
+
+#set verbose  # uncomment this line to have full verbosity.
+
+#////////////////////////////////////////////////
+# Set the absolute path of this package.
+# If in the below line there is the keyword :
+#
+#     @@absolute_dir@@
+#
+# then the package had not been installed.
+#
+#  Someone has to replace @@absolute_dir@@
+# by the absolute path of the package.
+# By "absolute path of the package", we mean that
+# if the obuild directory of the package is 
+# found under :
+#    some_path/pack/vers/obuild
+# then the "absolute path of the package" is :
+#    some_path/pack/vers
+#
+#  This replacement can be done on the setup
+# scripts of the package by using the sh/build 
+# with the -i option.
+#
+#  This replacement can be done recursively
+# on the setups of the used packages by using 
+# the sh/build script with the -bci option 
+# ("bci" for broadcast install).
+#
+#////////////////////////////////////////////////
+
+set obuild_snovis_path="@@absolute_dir@@"
+
+
+if ( "${obuild_snovis_path}" == '@@absolute_dir@@' ) then
+  echo '  The package snovis had not been installed.'
+  echo ''
+  echo ' In the file :'
+  echo '    snovis/<vers>/obuild/setup.csh'
+  echo ' someone has to replace '
+  echo '    @@absolute_dir@@'
+  echo ' by the absolute path of the package.'
+  echo '  By "absolute path of the package", we mean that'
+  echo ' if the obuild directory of the package is found under :'
+  echo '    some_path/pack/vers/obuild'
+  echo ' then the "absolute path of the package" is :'
+  echo '    some_path/pack/vers'
+  echo ''
+  echo '  If having the write access, this replacement can be done'
+  echo ' on the setup scripts of the package by using the sh/build'
+  echo ' with the -i option. This replacement can be done recursively'
+  echo ' on the setups of the used packages by using the sh/build script'
+  echo ' with the -bci option ("bci" for broadcast install).'
+  echo ''
+  exit
+endif
+
+if ( $?OBUILD_PLATFORM ) then
+  if ( "${OBUILD_PLATFORM}" == "" ) then
+    set obuild_platform=`uname`
+  else
+    set obuild_platform=${OBUILD_PLATFORM}
+  endif
+else
+  set obuild_platform=`uname`
+endif
+
+if ( "${obuild_platform}" == "" ) then
+  echo "obuild_platform variable not defined."
+  exit
+endif
+
+if ( $?OBUILD_DIR_BIN ) then
+  if (  "${OBUILD_DIR_BIN}" == "" ) then
+    set obuild_dir_bin=${obuild_platform}_obuild
+  else
+    set obuild_dir_bin=${OBUILD_DIR_BIN}
+  endif
+else
+  set obuild_dir_bin=${obuild_platform}_obuild
+endif
+
+if ( "${obuild_dir_bin}" == "" ) then
+  echo "obuild_dir_bin variable not defined."
+  exit
+endif
+
+if ( ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ) then
+  if ( ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ) then
+    echo "Program source obuild_platform.cpp not found."
+    exit
+  endif
+  if ( $?obuild_cxx_command ) then
+    if ( "${obuild_cxx_command}" == "" ) then
+      if (  $?OBUILD_CXX ) then
+        set obuild_platform_compiler=${OBUILD_CXX}
+      else
+        set obuild_platform_compiler=c++
+      endif
+    else
+      set obuild_platform_compiler=${obuild_cxx_command}
+    endif
+  else
+    set obuild_platform_compiler=c++
+  endif
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if ( ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ) then
+    echo "Program obuild_platform not found."
+    exit
+  endif
+endif
+set obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+set bhep_platform="Darwin"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+set GeomUtils_platform="Darwin-i386"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_home="/geant4/geant4.8.2"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_work="${Geant4_home}/Darwin"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_work="${Geant4_home}/slc3_gcc323"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_system="Darwin-g++"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_system="Linux-g++"
+endif
+unset obuild_platform_result
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Windows_NT`
+if ( ${obuild_platform_result} == yes ) then
+set Geant4_system="WIN32-VC"
+endif
+unset obuild_platform_result
+if ( ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ) then
+  if ( ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ) then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  endif
+  if ( $?obuild_cxx_command ) then
+    if ( "${obuild_cxx_command}" == "" ) then
+      if (  $?OBUILD_CXX ) then
+        set obuild_find_compiler=${OBUILD_CXX}
+      else
+        set obuild_find_compiler=c++
+      endif
+    else
+      set obuild_find_compiler=${obuild_cxx_command}
+    endif
+  else
+    set obuild_find_compiler=c++
+  endif
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if ( ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ) then
+    echo "Program obuild_find not found."
+    exit
+  endif
+endif
+set obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if ( "${obuild_find_exe}" == "" ) then
+  echo "Variable obuild_find_exe not defined."
+  exit
+endif
+set obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
+if ( "${obuild_find_exe}" == "" ) then
+  echo "Variable obuild_find_exe not defined."
+  exit
+endif
+set obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+
+# Execute setup of used packages :
+source "${obuild_OnX_path}/obuild/setup.csh"
+
+source "${obuild_G4Lab_path}/obuild/setup.csh"
+
+# Set environment variables of this package :
+setenv SNOVISROOT "${obuild_snovis_path}"
+setenv G4RADIOACTIVEDATA "${Geant4_home}/data/RadiativeDecay3.1"
+setenv G4LEVELGAMMADATA "${Geant4_home}/data/PhotonEvaporation2.0"
+setenv G4LEDATA "${Geant4_home}/data/G4EMLOW4.2"
+setenv NeutronHPCrossSections "${Geant4_home}/data/G4NDL3.10"
+
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?DYLD_LIBRARY_PATH ) then
+    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
+  else
+    setenv DYLD_LIBRARY_PATH "${GeomUtils_home}/Darwin-i386/lib"
+  endif
+endif
+unset obuild_platform_result
+else
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?LD_LIBRARY_PATH ) then
+    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
+  else
+    setenv LD_LIBRARY_PATH "${GeomUtils_home}/Darwin-i386/lib"
+  endif
+endif
+unset obuild_platform_result
+endif
+unset obuild_platform_result
+
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?DYLD_LIBRARY_PATH ) then
+    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
+  else
+    setenv DYLD_LIBRARY_PATH "${SNgeom2_home}/Darwin-i386/lib"
+  endif
+endif
+unset obuild_platform_result
+else
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?LD_LIBRARY_PATH ) then
+    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
+  else
+    setenv LD_LIBRARY_PATH "${SNgeom2_home}/Darwin-i386/lib"
+  endif
+endif
+unset obuild_platform_result
+endif
+unset obuild_platform_result
+
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?DYLD_LIBRARY_PATH ) then
+    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
+  else
+    setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin/lib"
+  endif
+endif
+unset obuild_platform_result
+else
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?LD_LIBRARY_PATH ) then
+    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
+  else
+    setenv LD_LIBRARY_PATH "${bhep_home}/Darwin/lib"
+  endif
+endif
+unset obuild_platform_result
+endif
+unset obuild_platform_result
+
+if ( "${obuild_platform_exe}" == "" ) then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+endif
+set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
+if ( ${obuild_platform_result} == yes ) then
+  if (  $?DYLD_LIBRARY_PATH ) then
+    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+  else
+    setenv DYLD_LIBRARY_PATH "${obuild_snovis_path}/${obuild_dir_bin}"
+  endif
+else
+  if (  $?LD_LIBRARY_PATH ) then
+    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+  else
+    setenv LD_LIBRARY_PATH "${obuild_snovis_path}/${obuild_dir_bin}"
+  endif
+endif
+unset obuild_platform_result
+
+if (  $?PATH ) then
+  setenv PATH "${PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+else
+  setenv PATH "${obuild_snovis_path}/${obuild_dir_bin}"
+endif
+
+unset obuild_snovis_path
+
+#FIXME unset obuild_platform
+#FIXME unset obuild_dir_bin
Index: /head/obuild/setup.sh
===================================================================
--- /head/obuild/setup.sh	(revision 1)
+++ /head/obuild/setup.sh	(revision 1)
@@ -0,0 +1,449 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   sh> . setup.sh
+#////////////////////////////////////////////////
+
+#set -x  # uncomment this line to have full verbosity.
+
+#////////////////////////////////////////////////
+# Set the absolute path of this package.
+# If in the below line there is the keyword :
+#
+#     @@absolute_dir@@
+#
+# then the package had not been installed.
+#
+#  Someone has to replace @@absolute_dir@@
+# by the absolute path of the package.
+# By "absolute path of the package", we mean that
+# if the obuild directory of the package is 
+# found under :
+#    some_path/pack/vers/obuild
+# then the "absolute path of the package" is :
+#    some_path/pack/vers
+#
+#  This replacement can be done on the setup
+# scripts of the package by using the sh/build 
+# with the -i option.
+#
+#  This replacement can be done recursively
+# on the setups of the used packages by using 
+# the sh/build script with the -bci option 
+# ("bci" for broadcast install).
+#
+#////////////////////////////////////////////////
+
+obuild_snovis_path="@@absolute_dir@@"
+
+if [ "${obuild_snovis_path}" = '@@absolute_dir@@' ] ; then
+  echo '  The package snovis had not been installed.'
+  echo ''
+  echo ' In the file :'
+  echo '    snovis/<vers>/obuild/setup.sh'
+  echo ' someone has to replace '
+  echo '    @@absolute_dir@@'
+  echo ' by the absolute path of the package.'
+  echo '  By "absolute path of the package", we mean that'
+  echo ' if the obuild directory of the package is found under :'
+  echo '    some_path/pack/vers/obuild'
+  echo ' then the "absolute path of the package" is :'
+  echo '    some_path/pack/vers'
+  echo ''
+  echo '  If having the write access, this replacement can be done'
+  echo ' on the setup scripts of the package by using the sh/build'
+  echo ' with the -i option. This replacement can be done recursively'
+  echo ' on the setups of the used packages by using the sh/build script'
+  echo ' with the -bci option ("bci" for broadcast install).'
+  echo ''
+  return
+fi
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  return
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  return
+fi
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
+    echo "Program source obuild_platform.cpp not found."
+    return
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then 
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_platform_compiler=${OBUILD_CXX}
+    else
+      obuild_platform_compiler=c++ 
+    fi
+  else
+    obuild_platform_compiler=${obuild_cxx_command} 
+  fi
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+    echo "Program obuild_platform not found."
+    return
+  fi
+fi
+obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_platform="Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_platform="Darwin-i386"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_home="/geant4/geant4.8.2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/slc3_gcc323"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Darwin-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Linux-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="WIN32-VC"
+fi
+unset obuild_platform_result
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    return
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    return
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  return
+fi
+obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
+if [ "${obuild_OnX_path}" = "" ] ; then
+  echo "Can't find OnX package."
+  return
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  return
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  return
+fi
+
+# Execute setup of used packages :
+if [ ! -e "${obuild_OnX_path}/obuild/setup.sh" ] ; then
+  echo "setup.sh not found for package OnX."
+  return
+fi
+. "${obuild_OnX_path}/obuild/setup.sh"
+
+if [ ! -e "${obuild_G4Lab_path}/obuild/setup.sh" ] ; then
+  echo "setup.sh not found for package G4Lab."
+  return
+fi
+. "${obuild_G4Lab_path}/obuild/setup.sh"
+
+# Set environment variables of this package :
+SNOVISROOT="${obuild_snovis_path}"
+export SNOVISROOT
+G4RADIOACTIVEDATA="${Geant4_home}/data/RadiativeDecay3.1"
+export G4RADIOACTIVEDATA
+G4LEVELGAMMADATA="${Geant4_home}/data/PhotonEvaporation2.0"
+export G4LEVELGAMMADATA
+G4LEDATA="${Geant4_home}/data/G4EMLOW4.2"
+export G4LEDATA
+NeutronHPCrossSections="${Geant4_home}/data/G4NDL3.10"
+export NeutronHPCrossSections
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
+    DYLD_LIBRARY_PATH="${GeomUtils_home}/Darwin-i386/lib"
+    export DYLD_LIBRARY_PATH
+  else
+    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
+    export DYLD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+else
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
+    LD_LIBRARY_PATH="${GeomUtils_home}/Darwin-i386/lib"
+    export LD_LIBRARY_PATH
+  else
+    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
+    export LD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
+    DYLD_LIBRARY_PATH="${SNgeom2_home}/Darwin-i386/lib"
+    export DYLD_LIBRARY_PATH
+  else
+    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
+    export DYLD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+else
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
+    LD_LIBRARY_PATH="${SNgeom2_home}/Darwin-i386/lib"
+    export LD_LIBRARY_PATH
+  else
+    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
+    export LD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
+    DYLD_LIBRARY_PATH="${bhep_home}/Darwin/lib"
+    export DYLD_LIBRARY_PATH
+  else
+    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
+    export DYLD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+else
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
+    LD_LIBRARY_PATH="${bhep_home}/Darwin/lib"
+    export LD_LIBRARY_PATH
+  else
+    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
+    export LD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  return
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
+    DYLD_LIBRARY_PATH="${obuild_snovis_path}/${obuild_dir_bin}"
+    export DYLD_LIBRARY_PATH
+  else
+    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+    export DYLD_LIBRARY_PATH
+  fi
+else
+  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
+    LD_LIBRARY_PATH="${obuild_snovis_path}/${obuild_dir_bin}"
+    export LD_LIBRARY_PATH
+  else
+    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+    export LD_LIBRARY_PATH
+  fi
+fi
+unset obuild_platform_result
+
+if [  "${PATH}" = "" ] ; then
+  PATH="${obuild_snovis_path}/${obuild_dir_bin}"
+  export PATH
+else
+  PATH="${PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
+  export PATH
+fi
+unset obuild_snovis_path
+
+#FIXME unset obuild_platform
+#FIXME unset obuild_dir_bin
Index: /head/obuild/sh/broadcast_install
===================================================================
--- /head/obuild/sh/broadcast_install	(revision 1)
+++ /head/obuild/sh/broadcast_install	(revision 1)
@@ -0,0 +1,128 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/broadcast_install )
+#   UNIX> sh/broadcast_install
+#
+#////////////////////////////////////////////////
+
+obuild_args="$*"
+
+obuild_verbose=no
+
+obuild_set_x=no
+while test $# -ge 1 ; do
+  case $1 in
+    -v) obuild_verbose=yes ;;
+    -x) obuild_set_x=yes ;;
+    *) echo "unknown option : $1";exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+# Binary directory is needed to create the obuild_find program.
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  exit
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  exit
+fi
+
+obuild_snovis_path=..
+
+# Create the bin directory :
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
+
+if [ ! -e "${obuild_snovis_path}/obuild/sh/install" ] ; then
+  echo "install script not found for package snovis."
+  exit
+fi
+if [ ${obuild_verbose} = yes ] ; then
+  echo "install setups of snovis"...
+fi
+cd "${obuild_snovis_path}/obuild"
+./sh/install
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    exit
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
+if [ "${obuild_OnX_path}" = "" ] ; then
+  echo "Can't find OnX package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  exit
+fi
+
+# install setup scripts of used packages :
+if [ ! -e "${obuild_OnX_path}/obuild/sh/broadcast_install" ] ; then
+  echo "broadcast_install script not found for package OnX."
+  exit
+fi
+cd "${obuild_OnX_path}/obuild"
+./sh/broadcast_install ${obuild_args}
+
+if [ ! -e "${obuild_G4Lab_path}/obuild/sh/broadcast_install" ] ; then
+  echo "broadcast_install script not found for package G4Lab."
+  exit
+fi
+cd "${obuild_G4Lab_path}/obuild"
+./sh/broadcast_install ${obuild_args}
+
Index: /head/obuild/sh/build
===================================================================
--- /head/obuild/sh/build	(revision 1)
+++ /head/obuild/sh/build	(revision 1)
@@ -0,0 +1,160 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/build )
+#   UNIX> sh/build
+#
+#////////////////////////////////////////////////
+
+#obuild_args="$*"
+
+obuild_verbose=no
+obuild_debug=no
+obuild_set_x=no
+obuild_erase_dir_bin=no
+obuild_do_mains=yes
+obuild_group=main
+
+obuild_args=""
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Usage :"
+        echo "  UNIX> sh/build [Options] [Target]"
+        echo "Options :"
+        echo "  -v : verbose."
+        echo "  -g : build in debug mode."
+        echo "  -i : install setup scripts."
+        echo "  -bci : broadacst install setup scripts."
+        echo "  -e : erase binary directory."
+        echo "  -x : execute with set -x."
+        echo "  -l : link only, do not (re)compile."
+        echo "  -k : do not erase result of compilations (.o, .obj)."
+        echo "  -nm : build the not-main components."
+        echo "  -group group : build the given group of components."
+        echo "Target :"
+        echo "  If no option is specify and a ending"
+        echo " string is given ; this string is given"
+        echo " to a find command of the form :"
+        echo '    find ./sh -name "*target*" -exec {} \;'
+        echo " in order to execute selected scripts under"
+        echo " the sh directory."
+        echo "Examples :"
+        echo "  UNIX> sh/build app"
+        echo "  UNIX> sh/build -v _lib"
+        echo "  UNIX> sh/build -v -g dll_"
+        echo ""
+        exit ;;
+    -v) obuild_verbose=yes;obuild_args="${obuild_args} $1" ;;
+    -g) obuild_debug=yes;obuild_args="${obuild_args} $1" ;;
+    -i) ./sh/install; exit ;;
+    -bci) if [ ! -e ./sh/broadcast_install ] ; then 
+            echo "Nothing to do for this package." 
+            exit
+          fi
+          ./sh/broadcast_install ${obuild_args}
+          exit ;;
+    -x) obuild_set_x=yes;obuild_args="${obuild_args} $1" ;;
+    -l) obuild_args="${obuild_args} $1" ;;
+    -k) obuild_args="${obuild_args} $1" ;;
+    -e) obuild_erase_dir_bin=yes ;;
+    -nm) obuild_do_mains=no ;;
+    -group) shift
+        if [ $# != 0 ] ; then
+          obuild_group=$1 
+        else         
+          echo "give a group name after the -group option."
+          exit 
+        fi ;;
+    -*) echo "unknwon option : $1" ; exit ;;
+     *) if [ $# = 1 ] ; then
+          find ./sh -name "*$1*" -exec {} ${obuild_args} \;
+        else         
+          echo "unknwon option : $1"
+        fi
+        exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+if [ ${obuild_erase_dir_bin} = "yes" ] ; then
+  if [  "${OBUILD_PLATFORM}" = "" ] ; then
+    obuild_platform=`uname`
+  else
+    obuild_platform=${OBUILD_PLATFORM}
+  fi
+  if [ "${obuild_platform}" = "" ] ; then
+    echo "obuild_platform variable not defined."
+    exit
+  fi
+  if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+    obuild_dir_bin=${obuild_platform}_obuild
+  else
+    obuild_dir_bin=${OBUILD_DIR_BIN}
+  fi
+  if [ "${obuild_dir_bin}" = "" ] ; then
+    echo "obuild_dir_bin variable not defined."
+    exit
+  fi
+  obuild_pwd=`pwd`
+  obuild_snovis_path=`dirname "${obuild_pwd}"`
+  unset obuild_pwd
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}"
+  exit  
+fi
+
+# Check foreign packages / resources :
+if [ -e ./sh/check_foreigns ] ; then
+  ./sh/check_foreigns
+fi
+
+if [ "${obuild_group}" = main ] ; then
+if [ "${obuild_do_mains}" = yes ] ; then
+  if [ -e ./sh/build_lib_snova ] ; then
+    ./sh/build_lib_snova ${obuild_args}
+    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+  fi
+fi
+fi
+
+if [ "${obuild_group}" = main ] ; then
+if [ "${obuild_do_mains}" = yes ] ; then
+  if [ -e ./sh/build_dll_snovis ] ; then
+    ./sh/build_dll_snovis ${obuild_args}
+    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+  fi
+fi
+fi
+
+if [ "${obuild_group}" = main ] ; then
+if [ "${obuild_do_mains}" = yes ] ; then
+  if [ -e ./sh/build_app_prog_snova ] ; then
+    ./sh/build_app_prog_snova ${obuild_args}
+    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+  fi
+fi
+fi
+if [ "${obuild_group}" = main ] ; then
+if [ "${obuild_do_mains}" = yes ] ; then
+  if [ -e ./sh/build_app_snovis_session ] ; then
+    ./sh/build_app_snovis_session ${obuild_args}
+    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+  fi
+fi
+fi
+
+if [ -e ./sh/install ] ; then
+  ./sh/install
+fi
+
Index: /head/obuild/sh/build_app_prog_snova
===================================================================
--- /head/obuild/sh/build_app_prog_snova	(revision 1)
+++ /head/obuild/sh/build_app_prog_snova	(revision 1)
@@ -0,0 +1,636 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/build_prog_snova )
+#   UNIX> sh/build_prog_snova
+#
+#////////////////////////////////////////////////
+
+obuild_verbose=no
+obuild_debug=no
+obuild_optimize=yes
+obuild_do_not_compile=no
+obuild_dir_bin_o_cleanup=yes
+
+obuild_set_x=no
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Options :"
+        echo "  -v : verbose."
+        echo "  -d : build in debug mode."
+        echo "  -g : build in debug mode."
+        echo "  -x : execute script with set -x."
+        echo "  -l : link only, do not (re)compile."
+        echo "  -k : do not remove result of compilations (.o, .obj)."
+        echo ""
+        exit ;;
+    -v) obuild_verbose=yes ;;
+    -x) obuild_set_x=yes ;;
+    -d) obuild_debug=yes ;;
+    -g) obuild_debug=yes ;;
+    -l) obuild_do_not_compile=yes ;;
+    -k) obuild_dir_bin_o_cleanup=no ;;
+    *) echo "unknown option : $1";exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_optimize=no
+fi
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  exit
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  exit
+fi
+
+obuild_pwd=`pwd`
+obuild_snovis_path=`dirname "${obuild_pwd}"`
+unset obuild_pwd
+
+# Create the bin directory :
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
+    echo "Program source obuild_platform.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then 
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_platform_compiler=${OBUILD_CXX}
+    else
+      obuild_platform_compiler=c++ 
+    fi
+  else
+    obuild_platform_compiler=${obuild_cxx_command} 
+  fi
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+    echo "Program obuild_platform not found."
+    exit
+  fi
+fi
+obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_platform="Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_platform="Darwin-i386"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_home="/geant4/geant4.8.2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/slc3_gcc323"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Darwin-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Linux-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="WIN32-VC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cl.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_command}" = "" ] ; then
+  echo "Variable obuild_cxx_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="/O2"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="/ZI /Od"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="-fPIC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_debug_local=${obuild_cxx_debug}
+else
+  obuild_cxx_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_optimize_local=${obuild_cxx_optimize}
+else
+  obuild_cxx_optimize_local=
+fi
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    exit
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
+if [ "${obuild_HDF5_path}" = "" ] ; then
+  echo "Can't find HDF5 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
+if [ "${obuild_HDF5_path}" = "" ] ; then
+  echo "Can't find HDF5 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
+if [ "${obuild_zlib_path}" = "" ] ; then
+  echo "Can't find zlib package."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="-I${SNOVA_ROOT}"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include"
+fi
+unset obuild_platform_result
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\""
+
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
+fi
+
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
+
+# Compile prog_snova files :
+if [ ${obuild_do_not_compile} = no ] ; then
+
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_prog_snova/prog_snova.o ../applications/prog_snova.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+
+fi #do_not_compile
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="link.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_linker_command}" = "" ] ; then
+  echo "Variable obuild_cxx_linker_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="/DEBUG"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_options="/nologo"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_linker_debug_local=${obuild_cxx_linker_debug}
+else
+  obuild_cxx_linker_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_linker_optimize_local=${obuild_cxx_linker_optimize}
+else
+  obuild_cxx_linker_optimize_local=
+fi
+obuild_linked_paths="-L\"${obuild_snovis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries=" -lsnova"
+obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom"
+obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils"
+obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep"
+obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${CLHEP_home}/lib -lCLHEP"
+fi
+unset obuild_platform_result
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_HDF5"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
+
+# Link prog_snova :
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+obuild_objs=`find ./app_prog_snova -name '*.o' -print`
+/bin/rm -f ./prog_snova
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+ eval ${obuild_cxx_linker_command} ${obuild_cxx_linker_debug_local} ${obuild_cxx_linker_optimize_local} ${obuild_cxx_linker_options} -o \"${obuild_snovis_path}/${obuild_dir_bin}/prog_snova\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+cd "${obuild_snovis_path}/obuild"
+
+# Some cleanup :
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
+fi
+/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+
Index: /head/obuild/sh/build_app_snovis_session
===================================================================
--- /head/obuild/sh/build_app_snovis_session	(revision 1)
+++ /head/obuild/sh/build_app_snovis_session	(revision 1)
@@ -0,0 +1,872 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/build_snovis_session )
+#   UNIX> sh/build_snovis_session
+#
+#////////////////////////////////////////////////
+
+obuild_verbose=no
+obuild_debug=no
+obuild_optimize=yes
+obuild_do_not_compile=no
+obuild_dir_bin_o_cleanup=yes
+
+obuild_set_x=no
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Options :"
+        echo "  -v : verbose."
+        echo "  -d : build in debug mode."
+        echo "  -g : build in debug mode."
+        echo "  -x : execute script with set -x."
+        echo "  -l : link only, do not (re)compile."
+        echo "  -k : do not remove result of compilations (.o, .obj)."
+        echo ""
+        exit ;;
+    -v) obuild_verbose=yes ;;
+    -x) obuild_set_x=yes ;;
+    -d) obuild_debug=yes ;;
+    -g) obuild_debug=yes ;;
+    -l) obuild_do_not_compile=yes ;;
+    -k) obuild_dir_bin_o_cleanup=no ;;
+    *) echo "unknown option : $1";exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_optimize=no
+fi
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  exit
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  exit
+fi
+
+obuild_pwd=`pwd`
+obuild_snovis_path=`dirname "${obuild_pwd}"`
+unset obuild_pwd
+
+# Create the bin directory :
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
+    echo "Program source obuild_platform.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then 
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_platform_compiler=${OBUILD_CXX}
+    else
+      obuild_platform_compiler=c++ 
+    fi
+  else
+    obuild_platform_compiler=${obuild_cxx_command} 
+  fi
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+    echo "Program obuild_platform not found."
+    exit
+  fi
+fi
+obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_platform="Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_platform="Darwin-i386"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_home="/geant4/geant4.8.2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/slc3_gcc323"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Darwin-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Linux-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="WIN32-VC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cl.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_command}" = "" ] ; then
+  echo "Variable obuild_cxx_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="/O2"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="/ZI /Od"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="-fPIC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_debug_local=${obuild_cxx_debug}
+else
+  obuild_cxx_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_optimize_local=${obuild_cxx_optimize}
+else
+  obuild_cxx_optimize_local=
+fi
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    exit
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
+if [ "${obuild_HDF5_path}" = "" ] ; then
+  echo "Can't find HDF5 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'`
+if [ "${obuild_AIDA_path}" = "" ] ; then
+  echo "Can't find AIDA package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'`
+if [ "${obuild_Slash_path}" = "" ] ; then
+  echo "Can't find Slash package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
+if [ "${obuild_OnX_path}" = "" ] ; then
+  echo "Can't find OnX package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
+if [ "${obuild_HDF5_path}" = "" ] ; then
+  echo "Can't find HDF5 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'`
+if [ "${obuild_expat_path}" = "" ] ; then
+  echo "Can't find expat package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
+if [ "${obuild_zlib_path}" = "" ] ; then
+  echo "Can't find zlib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
+if [ "${obuild_HEPVis_path}" = "" ] ; then
+  echo "Can't find HEPVis package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
+if [ "${obuild_HEPVis_path}" = "" ] ; then
+  echo "Can't find HEPVis package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'`
+if [ "${obuild_jpeg_path}" = "" ] ; then
+  echo "Can't find jpeg package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'`
+if [ "${obuild_dvi2bitmap_path}" = "" ] ; then
+  echo "Can't find dvi2bitmap package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'`
+if [ "${obuild_freetype2_path}" = "" ] ; then
+  echo "Can't find freetype2 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
+if [ "${obuild_CoinGL_path}" = "" ] ; then
+  echo "Can't find CoinGL package."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="-I${SNOVA_ROOT}"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include"
+fi
+unset obuild_platform_result
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\""
+
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session"
+fi
+
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session"
+
+# Compile snovis_session files :
+if [ ${obuild_do_not_compile} = no ] ; then
+
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_snovis_session/snovis_session.o ../applications/snovis_session.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+
+fi #do_not_compile
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_command="link.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_linker_command}" = "" ] ; then
+  echo "Variable obuild_cxx_linker_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_debug="/DEBUG"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_linker_options="/nologo"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_linker_debug_local=${obuild_cxx_linker_debug}
+else
+  obuild_cxx_linker_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_linker_optimize_local=${obuild_cxx_linker_optimize}
+else
+  obuild_cxx_linker_optimize_local=
+fi
+obuild_linked_paths="-L\"${obuild_OnX_path}/${obuild_dir_bin}\""
+obuild_linked_libraries=" -lOnXCore"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snovis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lsnova"
+obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom"
+obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils"
+obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_HDF5"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_G4Lab_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lG4LabUIOnX"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_G4Lab_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lG4LabCore"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${CLHEP_home}/lib -lCLHEP"
+fi
+unset obuild_platform_result
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lLibXML"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_expat"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lLibZip"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lLibUtils"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisGeometry"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisUtils"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_jpeg"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_dvi2bitmap"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_freetype2"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_Coin"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -framework OpenGL -framework AGL"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -framework ApplicationServices"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -lpthread"
+fi
+unset obuild_platform_result
+
+# Link snovis_session :
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+obuild_objs=`find ./app_snovis_session -name '*.o' -print`
+/bin/rm -f ./snovis_session
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+ eval ${obuild_cxx_linker_command} ${obuild_cxx_linker_debug_local} ${obuild_cxx_linker_optimize_local} ${obuild_cxx_linker_options} -o \"${obuild_snovis_path}/${obuild_dir_bin}/snovis_session\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+cd "${obuild_snovis_path}/obuild"
+
+# Some cleanup :
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session"
+fi
+/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+
Index: /head/obuild/sh/build_dll_snovis
===================================================================
--- /head/obuild/sh/build_dll_snovis	(revision 1)
+++ /head/obuild/sh/build_dll_snovis	(revision 1)
@@ -0,0 +1,829 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/build_snovis )
+#   UNIX> sh/build_snovis
+#
+#////////////////////////////////////////////////
+
+obuild_verbose=no
+obuild_debug=no
+obuild_optimize=yes
+obuild_do_not_compile=no
+obuild_dir_bin_o_cleanup=yes
+
+obuild_set_x=no
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Options :"
+        echo "  -v : verbose."
+        echo "  -d : build in debug mode."
+        echo "  -g : build in debug mode."
+        echo "  -x : execute script with set -x."
+        echo "  -l : link only, do not (re)compile."
+        echo "  -k : do not remove result of compilations (.o, .obj)."
+        echo ""
+        exit ;;
+    -v) obuild_verbose=yes ;;
+    -x) obuild_set_x=yes ;;
+    -d) obuild_debug=yes ;;
+    -g) obuild_debug=yes ;;
+    -l) obuild_do_not_compile=yes ;;
+    -k) obuild_dir_bin_o_cleanup=no ;;
+    *) echo "unknown option : $1";exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_optimize=no
+fi
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  exit
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  exit
+fi
+
+obuild_pwd=`pwd`
+obuild_snovis_path=`dirname "${obuild_pwd}"`
+unset obuild_pwd
+
+# Create the bin directory :
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
+    echo "Program source obuild_platform.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then 
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_platform_compiler=${OBUILD_CXX}
+    else
+      obuild_platform_compiler=c++ 
+    fi
+  else
+    obuild_platform_compiler=${obuild_cxx_command} 
+  fi
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+    echo "Program obuild_platform not found."
+    exit
+  fi
+fi
+obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_platform="Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_platform="Darwin-i386"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_home="/geant4/geant4.8.2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/slc3_gcc323"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Darwin-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Linux-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="WIN32-VC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cl.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_command}" = "" ] ; then
+  echo "Variable obuild_cxx_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="/O2"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="/ZI /Od"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="-fPIC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_debug_local=${obuild_cxx_debug}
+else
+  obuild_cxx_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_optimize_local=${obuild_cxx_optimize}
+else
+  obuild_cxx_optimize_local=
+fi
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    exit
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'`
+if [ "${obuild_Slash_path}" = "" ] ; then
+  echo "Can't find Slash package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'`
+if [ "${obuild_AIDA_path}" = "" ] ; then
+  echo "Can't find AIDA package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
+if [ "${obuild_OnX_path}" = "" ] ; then
+  echo "Can't find OnX package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
+if [ "${obuild_G4Lab_path}" = "" ] ; then
+  echo "Can't find G4Lab package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_BatchLab_path=`"${obuild_find_exe}" BatchLab 'v1r*'`
+if [ "${obuild_BatchLab_path}" = "" ] ; then
+  echo "Can't find BatchLab package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
+if [ "${obuild_HEPVis_path}" = "" ] ; then
+  echo "Can't find HEPVis package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
+if [ "${obuild_CoinGL_path}" = "" ] ; then
+  echo "Can't find CoinGL package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'`
+if [ "${obuild_expat_path}" = "" ] ; then
+  echo "Can't find expat package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
+if [ "${obuild_zlib_path}" = "" ] ; then
+  echo "Can't find zlib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
+if [ "${obuild_Lib_path}" = "" ] ; then
+  echo "Can't find Lib package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
+if [ "${obuild_HEPVis_path}" = "" ] ; then
+  echo "Can't find HEPVis package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
+if [ "${obuild_HEPVis_path}" = "" ] ; then
+  echo "Can't find HEPVis package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'`
+if [ "${obuild_jpeg_path}" = "" ] ; then
+  echo "Can't find jpeg package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'`
+if [ "${obuild_dvi2bitmap_path}" = "" ] ; then
+  echo "Can't find dvi2bitmap package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'`
+if [ "${obuild_freetype2_path}" = "" ] ; then
+  echo "Can't find freetype2 package."
+  exit
+fi
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
+if [ "${obuild_CoinGL_path}" = "" ] ; then
+  echo "Can't find CoinGL package."
+  exit
+fi
+
+obuild_cxx_includes="-I\"${obuild_snovis_path}\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_OnX_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_BatchLab_path}\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HEPVis_path}/include\""
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_CoinGL_path}/include\""
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I/System/Library/Frameworks/OpenGL.framework/Headers"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${OBUILD_OPENGL_HOME}/include"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
+fi
+
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
+
+# Compile snovis files :
+if [ ${obuild_do_not_compile} = no ] ; then
+
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o ../source/Callbacks.cxx
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o ../source/InventorCallbacks.cxx
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o ../source/Layouts.cxx
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+
+fi #do_not_compile
+
+obuild_linked_paths="-L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries=" -lLibXML"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_expat"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lLibZip"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lLibUtils"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisGeometry"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisUtils"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_jpeg"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_dvi2bitmap"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_freetype2"
+obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\""
+obuild_linked_libraries="${obuild_linked_libraries}  -losc_Coin"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -framework OpenGL -framework AGL"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -framework ApplicationServices"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_linked_libraries="${obuild_linked_libraries} -lpthread"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_dll_builder_command}" = "" ] ; then
+  echo "Variable obuild_cxx_dll_builder_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_options="-bundle -twolevel_namespace -Wl,-headerpad_max_install_names -Wl,-headerpad,800"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_options="-shared"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_options="-shared"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_prefix="lib"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_prefix="lib"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_suffix="bundle"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_suffix="so"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_dll_builder_suffix="so"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_dll_builder_debug_local=${obuild_cxx_dll_builder_debug}
+else
+  obuild_cxx_dll_builder_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_dll_builder_optimize_local=${obuild_cxx_dll_builder_optimize}
+else
+  obuild_cxx_dll_builder_optimize_local=
+fi
+# Create the dll snovis :
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+obuild_objs=`find ./dll_snovis -name '*.o' -print`
+/bin/rm -f ./${obuild_cxx_dll_builder_prefix}snovis.${obuild_cxx_dll_builder_suffix}
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+ eval ${obuild_cxx_dll_builder_command} ${obuild_cxx_dll_builder_options} -o \"${obuild_snovis_path}/${obuild_dir_bin}/${obuild_cxx_dll_builder_prefix}snovis.${obuild_cxx_dll_builder_suffix}\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+cd "${obuild_snovis_path}/obuild"
+
+# Some cleanup :
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
+fi
+/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+
Index: /head/obuild/sh/build_lib_snova
===================================================================
--- /head/obuild/sh/build_lib_snova	(revision 1)
+++ /head/obuild/sh/build_lib_snova	(revision 1)
@@ -0,0 +1,655 @@
+#!/bin/sh -f
+
+#
+# File produced by the obuild tool version 1.0
+# for the package snovis with version v1r0.
+#
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/build_snova )
+#   UNIX> sh/build_snova
+#
+#////////////////////////////////////////////////
+
+obuild_verbose=no
+obuild_debug=no
+obuild_optimize=yes
+obuild_do_not_compile=no
+obuild_dir_bin_o_cleanup=yes
+
+obuild_set_x=no
+while test $# -ge 1 ; do
+  case $1 in
+    -h) 
+        echo "Options :"
+        echo "  -v : verbose."
+        echo "  -d : build in debug mode."
+        echo "  -g : build in debug mode."
+        echo "  -x : execute script with set -x."
+        echo "  -l : link only, do not (re)compile."
+        echo "  -k : do not remove result of compilations (.o, .obj)."
+        echo ""
+        exit ;;
+    -v) obuild_verbose=yes ;;
+    -x) obuild_set_x=yes ;;
+    -d) obuild_debug=yes ;;
+    -g) obuild_debug=yes ;;
+    -l) obuild_do_not_compile=yes ;;
+    -k) obuild_dir_bin_o_cleanup=no ;;
+    *) echo "unknown option : $1";exit ;;
+  esac
+  shift
+done
+
+if [ ${obuild_set_x} = yes ] ; then
+  set -x
+fi
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_optimize=no
+fi
+
+if [  "${OBUILD_PLATFORM}" = "" ] ; then
+  obuild_platform=`uname`
+else
+  obuild_platform=${OBUILD_PLATFORM}
+fi
+
+if [ "${obuild_platform}" = "" ] ; then
+  echo "obuild_platform variable not defined."
+  exit
+fi
+
+if [  "${OBUILD_DIR_BIN}" = "" ] ; then
+  obuild_dir_bin=${obuild_platform}_obuild
+else
+  obuild_dir_bin=${OBUILD_DIR_BIN}
+fi
+
+if [ "${obuild_dir_bin}" = "" ] ; then
+  echo "obuild_dir_bin variable not defined."
+  exit
+fi
+
+obuild_pwd=`pwd`
+obuild_snovis_path=`dirname "${obuild_pwd}"`
+unset obuild_pwd
+
+# Create the bin directory :
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
+    echo "Program source obuild_platform.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then 
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_platform_compiler=${OBUILD_CXX}
+    else
+      obuild_platform_compiler=c++ 
+    fi
+  else
+    obuild_platform_compiler=${obuild_cxx_command} 
+  fi
+  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
+  unset obuild_platform_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
+    echo "Program obuild_platform not found."
+    exit
+  fi
+fi
+obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+bhep_platform="Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+GeomUtils_platform="Darwin-i386"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+CLHEP_home="/usr/local/CLHEP/2.0.3.1"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_home="/geant4/geant4.8.2"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/Darwin"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_work="${Geant4_home}/slc3_gcc323"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Darwin-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="Linux-g++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+Geant4_system="WIN32-VC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_command="cl.exe"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_command}" = "" ] ; then
+  echo "Variable obuild_cxx_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="-O"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_optimize="/O2"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="-g"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_debug="/ZI /Od"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="-fPIC"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_debug_local=${obuild_cxx_debug}
+else
+  obuild_cxx_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_optimize_local=${obuild_cxx_optimize}
+else
+  obuild_cxx_optimize_local=
+fi
+
+if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
+    echo "Program source obuild_find.cpp not found."
+    exit
+  fi
+  if [ "${obuild_cxx_command}" = "" ] ; then
+    if [  "${OBUILD_CXX}" != "" ] ; then
+      obuild_find_compiler=${OBUILD_CXX}
+    else
+      obuild_find_compiler=c++
+    fi
+  else
+    obuild_find_compiler=${obuild_cxx_command}
+  fi
+  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
+  unset obuild_find_compiler
+  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
+    echo "Program obuild_find not found."
+    exit
+  fi
+fi
+obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+if [ "${obuild_find_exe}" = "" ] ; then
+  echo "Variable obuild_find_exe not defined."
+  exit
+fi
+obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
+if [ "${obuild_HDF5_path}" = "" ] ; then
+  echo "Can't find HDF5 package."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="-I${SNOVA_ROOT}"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include"
+fi
+unset obuild_platform_result
+obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\""
+
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/lib_snova"
+fi
+
+/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/lib_snova"
+
+# Compile snova files :
+if [ ${obuild_do_not_compile} = no ] ; then
+
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/event.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/event.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/generator.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/generator.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/run.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/run.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/snova_const.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/snova_const.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/stacking.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/stacking.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/stepping.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/stepping.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/stepping_verbose.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/stepping_verbose.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/tracking.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/base/tracking.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/gen_vtx.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/vertex/gen_vtx.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/geometry2.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/geom/geometry2.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/materials.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/geom/materials.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/nemo_field2.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/geom/nemo_field2.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/visibilities2.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/geom/visibilities2.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+ eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_snova/physics.o /Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova/physics/physics.cc
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+cd "${obuild_snovis_path}/obuild"
+
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+
+fi #do_not_compile
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_command="c++"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_command="cxx"
+fi
+unset obuild_platform_result
+if [ "${obuild_cxx_shared_lib_builder_command}" = "" ] ; then
+  echo "Variable obuild_cxx_shared_lib_builder_command not defined."
+  exit
+fi
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_options="-dynamiclib -twolevel_namespace -undefined dynamic_lookup -dynamic -single_module"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_options="-shared"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_options="-shared -expect_unresolved *"
+fi
+unset obuild_platform_result
+
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_suffix="dylib"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_suffix="so"
+fi
+unset obuild_platform_result
+if [ "${obuild_platform_exe}" = "" ] ; then
+  echo "Variable obuild_platform_exe not defined."
+  exit
+fi
+obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
+if [ ${obuild_platform_result} = yes ] ; then
+obuild_cxx_shared_lib_builder_suffix="so"
+fi
+unset obuild_platform_result
+
+if [ ${obuild_debug} = yes ] ; then
+  obuild_cxx_shared_lib_builder_debug_local=${obuild_cxx_shared_lib_builder_debug}
+else
+  obuild_cxx_shared_lib_builder_debug_local=
+fi
+
+if [ ${obuild_optimize} = yes ] ; then
+  obuild_cxx_shared_lib_builder_optimize_local=${obuild_cxx_shared_lib_builder_optimize}
+else
+  obuild_cxx_shared_lib_builder_optimize_local=
+fi
+# Create the shared library snova :
+cd "${obuild_snovis_path}/${obuild_dir_bin}"
+obuild_objs=`find ./lib_snova -name '*.o' -print`
+/bin/rm -f ./libsnova.${obuild_cxx_shared_lib_builder_suffix}
+
+if [ ${obuild_verbose} = yes ] ; then set -x;fi
+ ${obuild_cxx_shared_lib_builder_command} ${obuild_cxx_shared_lib_builder_debug_local} ${obuild_cxx_shared_lib_builder_optimize_local} ${obuild_cxx_shared_lib_builder_options} -o "${obuild_snovis_path}/${obuild_dir_bin}/libsnova.${obuild_cxx_shared_lib_builder_suffix}" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
+obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
+if [ ${obuild_verbose} = yes ] ; then set +x;fi
+cd "${obuild_snovis_path}/obuild"
+
+# Some cleanup :
+if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
+  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/lib_snova"
+fi
+/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
+
Index: /head/obuild/sh/install
===================================================================
--- /head/obuild/sh/install	(revision 1)
+++ /head/obuild/sh/install	(revision 1)
@@ -0,0 +1,43 @@
+#!/bin/sh -f
+
+#////////////////////////////////////////////////
+# Usage :
+#   UNIX> cd some_path/pack/version/obuild
+# ( UNIX> chmod a+x sh/install )
+#   UNIX> sh/install
+#
+# This script is intended to install the 
+# setup.sh and setup.csh scripts. 
+#
+# For setup.sh, it edits the path line :
+#   path_<package>=@@absolute_dir@@
+# and for setup.csh, the path line :
+#   set path_BatchLab="@@absolute_dir@@"
+#
+# The script replaces in these lins the string : 
+#   @@absolute_dir@@ 
+# by the return of the pwd command.
+#
+#////////////////////////////////////////////////
+
+obuild_current=`pwd`
+
+obuild_dir=`echo ${obuild_current} | sed -e 's#/obuild##g'`
+
+obuild_from='="@@absolute_dir@@"'
+
+obuild_to='="'"${obuild_dir}"'"'
+
+if test -e setup.sh ; then
+  /bin/rm -f obuild_tmp
+  sed -e "s#${obuild_from}#${obuild_to}#g" setup.sh > obuild_tmp
+  /bin/mv obuild_tmp setup.sh
+  /bin/rm -f obuild_tmp
+fi
+
+if test -e setup.csh ; then
+  /bin/rm -f obuild_tmp
+  sed -e "s#${obuild_from}#${obuild_to}#g" setup.csh > obuild_tmp
+  /bin/mv obuild_tmp setup.csh
+  /bin/rm -f obuild_tmp
+fi
Index: /head/obuild/sn.obuild
===================================================================
--- /head/obuild/sn.obuild	(revision 1)
+++ /head/obuild/sn.obuild	(revision 1)
@@ -0,0 +1,80 @@
+<!--
+  Access to SuperNemo software.
+-->
+
+<obuild>
+
+  <foreign name="sn">
+
+<!--
+    <native_version>8.2</native_version>
+-->
+
+    <variable name="bhep_home" platform="UNIX">/Users/barrand/dev/exp/nemo/bhep/v1r4p1</variable>
+    <variable name="bhep_platform" platform="Darwin">Darwin</variable>
+
+    <variable name="GeomUtils_home" platform="UNIX">/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils</variable>
+    <variable name="GeomUtils_platform" platform="Darwin">Darwin-i386</variable>
+
+    <variable name="SNgeom2_home" platform="UNIX">/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2</variable>
+<!--
+    <variable name="SNgeom2_platform" platform="Darwin">Darwin-i386</variable>
+-->
+
+    <variable name="snova_home" platform="UNIX">/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova</variable>
+<!--
+    <variable name="snova_platform" platform="Darwin">Darwin-i386</variable>
+-->
+
+    <load_library_path platform="Darwin" verbatim="yes">${GeomUtils_home}/Darwin-i386/lib</load_library_path>
+    <load_library_path platform="Darwin" verbatim="yes">${SNgeom2_home}/Darwin-i386/lib</load_library_path>
+    <load_library_path platform="Darwin" verbatim="yes">${bhep_home}/Darwin/lib</load_library_path>
+
+    <release>
+
+      <!-- bhep -->
+      <copy_files platform="Darwin">
+        <from>${bhep_home}/${bhep_platform}/bin</from>
+        <what>bhep-config</what>
+        <to>bin/.</to>
+      </copy_files>
+
+      <copy_files platform="Darwin">
+        <from>${bhep_home}/${bhep_platform}/lib</from>
+        <what>libbhep.dylib</what>
+        <to>lib/.</to>
+      </copy_files>
+
+      <!-- GeomUtils -->
+      <copy_files platform="Darwin">
+        <from>${GeomUtils_home}/${GeomUtils_platform}/bin</from>
+        <what>test_*</what>
+        <to>bin/.</to>
+      </copy_files>
+
+      <copy_files platform="Darwin">
+        <from>${GeomUtils_home}/${GeomUtils_platform}/lib</from>
+        <what>libgeomutils.dylib</what>
+        <to>lib/.</to>
+      </copy_files>
+
+      <!-- SNgeom2 -->
+<!--
+      <copy_files platform="Darwin">
+        <from>${SNgeom2_home}/${SNgeom2_platform}/bin</from>
+        <what>test_*</what>
+        <to>bin/.</to>
+      </copy_files>
+
+      <copy_files platform="Darwin">
+        <from>${SNgeom2_home}/${SNgeom2_platform}/lib</from>
+        <what>libsngeom.dylib</what>
+        <to>lib/.</to>
+      </copy_files>
+-->
+
+    </release>
+
+  </foreign>
+
+</obuild>
Index: /head/obuild/this.obuild
===================================================================
--- /head/obuild/this.obuild	(revision 1)
+++ /head/obuild/this.obuild	(revision 1)
@@ -0,0 +1,171 @@
+<obuild>
+
+  <package name="snovis" version="v1r0">
+
+    <repository>svn.lal.in2p3.fr/nemo/packages</repository>
+
+    <!-- not this : -->
+
+    <reference package="snovis" version="v1r*" file="obuild/sn.obuild"/>
+
+    <reference package="G4Lab" version="v8r*" file="obuild/export.obuild"/>
+  
+    <use name="HDF5" version="v1r*">
+      <c_include>include</c_include>
+      <lib>osc_HDF5</lib>
+    </use>
+
+    <!-- this : -->
+
+    <library name="snova">
+
+      <files>$SNOVA_ROOT/base/*.cc</files>
+      <files>$SNOVA_ROOT/vertex/*.cc</files>
+      <files>$SNOVA_ROOT/geom/*.cc</files>
+      <files>$SNOVA_ROOT/physics/*.cc</files>
+
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNOVA_ROOT}</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNGEOM2_ROOT}/include</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${GEOMUTILS_ROOT}/include</cxx_include>
+      <cxx_include platform="Darwin" verbatim="yes">-I${BHEP_ROOT}/Darwin/include</cxx_include>
+
+      <!-- not this : -->
+      <cxx_include copy="cxx_include" from="CLHEP"/>
+      <cxx_include copy="cxx_include" from="Geant4"/>
+      <cxx_include copy="c_include" from="HDF5"/>
+    </library>
+
+    <dll name="snovis">
+      <directory>../source</directory>
+
+      <cxx_include>${obuild_snovis_path}</cxx_include>
+
+      <!-- not this : -->
+
+      <cxx_include copy="cxx_include" from="Lib"/>
+      <cxx_include copy="cxx_include" from="Slash"/>
+      <cxx_include copy="cxx_include" from="AIDA"/>
+      <cxx_include copy="cxx_include" from="OnX"/> <!-- Helpers -->
+      <cxx_include copy="cxx_include" from="G4Lab"/>
+      <cxx_include copy="cxx_include" from="BatchLab"/>
+
+      <cxx_include copy="cxx_include" from="HEPVis"/>
+      <cxx_include copy="cxx_include" from="CoinGL"/>
+
+      <lib copy="lib_LibXML" from="Lib"/>
+      <lib copy="lib" from="expat"/>
+      <lib copy="lib_LibZip" from="Lib"/>
+      <lib copy="lib" from="zlib"/>
+      <lib copy="lib_LibUtils" from="Lib"/>
+
+      <!-- graphics. -->
+      <lib copy="lib_HEPVisGeometry" from="HEPVis"/>
+      <lib copy="lib_HEPVisUtils" from="HEPVis"/>
+      <lib copy="lib" from="jpeg"/>
+      <lib copy="lib" from="dvi2bitmap"/>
+      <lib copy="lib" from="freetype2"/>
+      <lib copy="lib" from="CoinGL"/>
+    </dll>
+
+    <application name="prog_snova">
+      <file>../applications/prog_snova.cc</file>
+
+      <!-- not this : -->
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNOVA_ROOT}</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNGEOM2_ROOT}/include</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${GEOMUTILS_ROOT}/include</cxx_include>
+      <cxx_include platform="Darwin" verbatim="yes">-I${BHEP_ROOT}/Darwin/include</cxx_include>
+
+      <cxx_include copy="cxx_include" from="CLHEP"/>
+      <cxx_include copy="cxx_include" from="Geant4"/>
+      <cxx_include copy="c_include" from="HDF5"/>
+
+      <lib>snova</lib>
+      <lib verbatim="yes">-L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom</lib>
+      <lib verbatim="yes">-L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils</lib>
+      <lib verbatim="yes">-L${BHEP_ROOT}/Darwin/lib -lbhep</lib>
+
+      <lib copy="interfaces_lib" from="Geant4"/>
+
+      <lib copy="lib" from="Geant4"/>
+      <lib copy="lib" from="CLHEP"/>
+      <lib copy="lib" from="HDF5"/>
+      <lib copy="lib" from="zlib"/>
+    </application>
+
+    <application name="snovis_session">
+      <file>../applications/snovis_session.cc</file>
+
+      <!-- not this : -->
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNOVA_ROOT}</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${SNGEOM2_ROOT}/include</cxx_include>
+      <cxx_include platform="UNIX" verbatim="yes">-I${GEOMUTILS_ROOT}/include</cxx_include>
+      <cxx_include platform="Darwin" verbatim="yes">-I${BHEP_ROOT}/Darwin/include</cxx_include>
+
+      <cxx_include copy="cxx_include" from="CLHEP"/>
+      <cxx_include copy="cxx_include" from="Geant4"/>
+      <cxx_include copy="c_include" from="HDF5"/>
+
+      <cxx_include copy="cxx_include" from="AIDA"/>
+      <cxx_include copy="cxx_include" from="G4Lab"/>
+
+      <cxx_include copy="cxx_include" from="Lib"/>
+      <cxx_include copy="cxx_include" from="Slash"/>
+
+      <lib copy="lib" from="OnX"/>
+
+      <lib>snova</lib>
+      <lib verbatim="yes">-L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom</lib>
+      <lib verbatim="yes">-L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils</lib>
+      <lib verbatim="yes">-L${BHEP_ROOT}/Darwin/lib -lbhep</lib>
+
+      <lib copy="lib" from="HDF5"/>
+
+      <lib copy="lib_G4LabUIOnX" from="G4Lab"/>
+      <lib copy="lib_G4LabCore" from="G4Lab"/>
+      <lib copy="lib" from="Geant4"/>
+      <lib copy="lib" from="CLHEP"/>
+
+      <lib copy="lib_LibXML" from="Lib"/>
+      <lib copy="lib" from="expat"/>
+      <lib copy="lib_LibZip" from="Lib"/>
+      <lib copy="lib" from="zlib"/>
+      <lib copy="lib_LibUtils" from="Lib"/>
+
+      <!-- graphics. -->
+      <lib copy="lib_HEPVisGeometry" from="HEPVis"/>
+      <lib copy="lib_HEPVisUtils" from="HEPVis"/>
+      <lib copy="lib" from="jpeg"/>
+      <lib copy="lib" from="dvi2bitmap"/>
+      <lib copy="lib" from="freetype2"/>
+      <lib copy="lib" from="CoinGL"/>
+    </application>
+
+    <setup>
+      <exec from="OnX"/>
+      <exec from="G4Lab"/>
+
+      <env name="SNOVISROOT">${obuild_snovis_path}</env> 
+
+      <run_path/>
+
+      <load_library_path copy="load_library_path" from="sn"/>
+
+      <load_library_path/>
+
+      <env name="G4RADIOACTIVEDATA">${Geant4_home}/data/RadiativeDecay3.1</env>
+      <env name="G4LEVELGAMMADATA">${Geant4_home}/data/PhotonEvaporation2.0</env>
+      <env name="G4LEDATA">${Geant4_home}/data/G4EMLOW4.2</env>
+      <env name="NeutronHPCrossSections">${Geant4_home}/data/G4NDL3.10</env>
+    </setup>
+
+    <release>
+      <copy_dir>
+        <from>scripts</from>
+        <to>Resources/snovis/.</to>
+      </copy_dir>
+    </release>
+
+  </package>
+
+</obuild>
Index: /head/run/currentEvent.rndm
===================================================================
--- /head/run/currentEvent.rndm	(revision 1)
+++ /head/run/currentEvent.rndm	(revision 1)
@@ -0,0 +1,203 @@
+Uvec
+2226355706
+1070136133
+0
+1072274839
+2684354560
+1072341259
+536870912
+1069255140
+0
+1072340307
+1610612736
+1072364766
+0
+1072095643
+2684354560
+1072367533
+0
+1072189296
+0
+1069160719
+0
+1071085747
+3221225472
+1071628199
+0
+1068593966
+0
+1067164900
+0
+1066590552
+0
+1071121071
+2147483648
+1072343874
+2684354560
+1072156542
+3221225472
+1071863443
+1073741824
+1071887426
+3758096384
+1070213069
+0
+1070387940
+2147483648
+1070555739
+2147483648
+1071561538
+3221225472
+1069403481
+0
+1070905533
+0
+1069930692
+2147483648
+1071683603
+536870912
+1069813486
+0
+1071724831
+1073741824
+1068902228
+0
+1070123679
+0
+1071224415
+1073741824
+1071717048
+536870912
+1071803034
+1073741824
+1071877127
+1073741824
+1069422049
+0
+1072503683
+0
+1071705195
+536870912
+1071472932
+2147483648
+1071751063
+3758096384
+1072234067
+1610612736
+1071135318
+1073741824
+1067536922
+0
+1071717977
+0
+1067453296
+0
+1070447575
+2147483648
+1071629846
+3221225472
+1072228299
+536870912
+1068350158
+0
+1072337583
+1073741824
+1072220081
+536870912
+1068300254
+0
+1070031341
+2147483648
+1072211669
+1073741824
+1071872515
+2147483648
+1069830099
+0
+1071318730
+3221225472
+1072337363
+2147483648
+1071433740
+1073741824
+1071771877
+2684354560
+1071422764
+3221225472
+1071982840
+1610612736
+1071919541
+3758096384
+1072167193
+536870912
+1072275137
+2147483648
+1070929957
+1073741824
+1070499866
+0
+1065110240
+0
+1072370768
+3758096384
+1069769781
+2147483648
+1068336806
+0
+1070935349
+1073741824
+1069990100
+0
+1071510293
+1073741824
+1072235463
+1073741824
+1065706208
+0
+1070866855
+0
+1072260655
+3221225472
+1072464261
+3758096384
+1072326975
+536870912
+1068521373
+0
+1071561667
+1073741824
+1071376280
+3221225472
+1068847833
+0
+1071861379
+3221225472
+1072672729
+1610612736
+1072454305
+536870912
+1072561011
+2147483648
+1072328387
+536870912
+1071751823
+3758096384
+1071724227
+536870912
+1071513136
+1073741824
+1072283536
+0
+1070903103
+0
+1071030015
+3221225472
+1071879271
+0
+1071559674
+0
+1071461100
+1073741824
+1072693247
+2684354560
+5
Index: /head/run/currentRun.rndm
===================================================================
--- /head/run/currentRun.rndm	(revision 1)
+++ /head/run/currentRun.rndm	(revision 1)
@@ -0,0 +1,203 @@
+Uvec
+2226355706
+1064900448
+0
+1070171103
+0
+1071619317
+2147483648
+1072030130
+1073741824
+1071842751
+3221225472
+1072282123
+536870912
+1070570616
+0
+1070844003
+0
+1072509429
+2147483648
+1072287024
+0
+1072635392
+1073741824
+1068931623
+0
+1070623850
+3221225472
+1071672657
+2684354560
+1071395357
+3221225472
+1072568572
+536870912
+1072652244
+0
+1072084638
+536870912
+1072588075
+2147483648
+1070119832
+2147483648
+1072262282
+0
+1068488478
+0
+1069727883
+2147483648
+1070136579
+2147483648
+1072450699
+1073741824
+1070894071
+1073741824
+1069840972
+2147483648
+1071688046
+0
+1071995540
+1073741824
+1071359953
+0
+1072075974
+536870912
+1071219765
+2147483648
+1069566227
+0
+1072288444
+1610612736
+1071006065
+0
+1071782524
+2147483648
+1069156183
+0
+1071644216
+0
+1071975724
+1073741824
+1072620132
+3221225472
+1067782702
+0
+1072015074
+2147483648
+1072027502
+1073741824
+1069179469
+0
+1072312246
+2684354560
+1071518943
+1073741824
+1072145776
+3758096384
+1072225069
+1073741824
+1071660493
+3758096384
+1071071822
+1073741824
+1070792308
+1073741824
+1072360340
+2147483648
+1071364310
+1073741824
+1071154362
+0
+1070939017
+1073741824
+1071781671
+3758096384
+1072551153
+1073741824
+1072219575
+3221225472
+1072144787
+3758096384
+1069099088
+0
+1072252727
+536870912
+1068639768
+0
+1071395307
+1073741824
+1071854699
+3758096384
+1071763244
+536870912
+1069574367
+0
+1072643492
+536870912
+1071920633
+536870912
+1070997843
+0
+1072014824
+2147483648
+1072146835
+2147483648
+1072038062
+0
+1072113324
+2147483648
+1070815249
+0
+1071806762
+536870912
+1071841859
+1073741824
+1072584327
+1610612736
+1072671684
+3758096384
+1072103117
+2147483648
+1071558575
+2147483648
+1072201239
+536870912
+1072053977
+3758096384
+1071532316
+2147483648
+1072180597
+1610612736
+1071083308
+2147483648
+1071563154
+3221225472
+1071995994
+1073741824
+1072637099
+536870912
+1072547764
+2684354560
+1071765795
+2684354560
+1072244947
+1073741824
+1070237332
+0
+1071717326
+2147483648
+1070954658
+2147483648
+1071057036
+2147483648
+1071203572
+0
+1070369681
+0
+1071712883
+2684354560
+1071461100
+1073741824
+1072693247
+2684354560
+16
Index: /head/run/snemo.geom
===================================================================
--- /head/run/snemo.geom	(revision 1)
+++ /head/run/snemo.geom	(revision 1)
@@ -0,0 +1,137 @@
+#///////////////////////////////////////////////////////////////////////
+#/////  File containing SuperNemo geometry implementation options  /////
+#///////////////////////////////////////////////////////////////////////
+
+
+
+#////////////////////////   SOURCE FOIL   /////////////////////////////
+
+# SOURCE layout (Options: simple)
+GEOMETRY SOURCE_layout S simple
+
+# SOURCE thickness (mm)
+GEOMETRY SOURCE_thick D 0.060
+
+# SOURCE height (cm)
+GEOMETRY SOURCE_height D 350.
+
+# SOURCE width (cm)
+GEOMETRY SOURCE_width D 450.
+
+# SOURCE materials (Options: Molibdenium, Selenium, Neodymium, ...)
+GEOMETRY SOURCE_mat S Molibdenium
+
+
+#//////////////////////   TRACKING CHAMBER   //////////////////////////
+
+# Tracking Chamber total length (cm)
+GEOMETRY TC_length D 120.
+
+# Tracking Chamber height (cm)
+GEOMETRY TC_height D 400.
+
+# Tracking Chamber width (cm)
+GEOMETRY TC_width D 500.
+
+# Tracking gas materials (Options: Helium, Tracking_gas, ...)
+GEOMETRY TC_mat S Tracking_gas
+
+# Tracking Chamber gas pressure (atm)
+GEOMETRY TC_pressure D 0.89
+
+# Tracking Chamber gas temperature (kelvin)
+GEOMETRY TC_temperature D 300.
+
+
+#/////////////////   TRACKING PLANES DISTRIBUTION   ////////////////////
+
+# Measurement planes distribution (Options: nblocks)
+GEOMETRY TC_planes_dist S nblocks
+
+# /// In the case of "nblocks" planes distribution:
+
+# Number of planes GG blocks
+GEOMETRY TC_num_blocks I 3
+
+# Number of planes in every GG block
+GEOMETRY TC_planes_per_block V 3
+4
+2
+3
+
+# Gap size (cm) for every GG block
+GEOMETRY TC_gaps_Z V 3
+5.0
+15.0
+15.0
+
+
+#//////////////////////   DRIFT CELLS   ////////////////////////
+
+# Drift cell geometry (Options: gwires_8)
+GEOMETRY DCELL_layout S gwires_8
+
+# Drift cell diametry (mm)
+GEOMETRY DCELL_diam D 30.
+
+# Drift cell anode wires diametry (um)
+GEOMETRY DCELL_AWIRE_diam D 50.
+
+# Drift cell anode wires material
+GEOMETRY DCELL_AWIRE_mat S Inox
+
+# Drift cell ground wires diametry (um)
+GEOMETRY DCELL_GWIRE_diam D 50.
+
+# Drift cell ground wires material
+GEOMETRY DCELL_GWIRE_mat S Inox
+
+# Drift cell cathode ring outer diameter (mm)
+GEOMETRY DCELL_CRING_outer_diam D 23.
+
+# Drift cell cathode ring inner diameter (mm)
+GEOMETRY DCELL_CRING_inner_diam D 22.5
+
+# Drift cell cathode ring height (mm)
+GEOMETRY DCELL_CRING_height D 35.
+
+# Drift cell ground wires material
+GEOMETRY DCELL_CRING_mat S Copper
+
+# Place extra ground wire between adjacent cells of same plane
+GEOMETRY DCELL_GWIRE_extra_cell I 1
+
+# Place extra ground wire between adjacent cells of adjacent planes
+GEOMETRY DCELL_GWIRE_extra_plane I 1
+
+
+#///////////////////   CALORIMETER BLOCKS   /////////////////////
+
+# Calorimeter layout
+GEOMETRY CALO_layout S basic
+
+# Calorimeter blocks total thickness (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_thick D 10.
+
+# Calorimeter blocks total height (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_height D 25.
+
+# Calorimeter blocks total width (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_width D 25.
+
+# Calorimeter blocks wrapper thickness (mm)
+GEOMETRY CALO_WRAP_thick D 0.05
+
+# Calorimeter blocks wrapper material (Mylar, ...)
+GEOMETRY CALO_WRAP_mat S Mylar
+
+
+#//////////////////////   MAGNETIC FIELD   ////////////////////////
+
+# Magnetic field (B) intensity (in Gauss) (10 KGauss = 1 Tesla)
+GEOMETRY B_int D 25.0
+
+# Magnetic field (B) direction (Options: Y, Z)
+GEOMETRY B_dir S Y
+
+# end of SuperNEMO module geometry file
Index: /head/run/snova.par
===================================================================
--- /head/run/snova.par	(revision 1)
+++ /head/run/snova.par	(revision 1)
@@ -0,0 +1,117 @@
+#/////////////////////////////////////////////////////////
+#/////  File containing nemo implementation options  /////
+#/////////////////////////////////////////////////////////
+
+
+#/////////////////////////////////
+# This is group GLOBAL variables
+#/////////////////////////////////
+
+# Simulation data verbosity (MUTE, CONCISE, NORMAL, DETAILED, VERBOSE, VVERBOSE)
+GLOBAL simulation_verbosity S NORMAL
+
+# G4 Tracking verbosity ("0", "1", "2", "3", ...)
+GLOBAL G4Tracking_verbosity S 0
+
+# Output dst file name 
+# Allowed extensions: '.txt' for text files
+#                     '.gz'  for gziped text files
+#                     '.h5' for HDF5 files
+GLOBAL dst_fname S data/dst_test_random_Nd150_Bon.txt
+
+
+#/////////////////////////////////
+# This is group VERTEX variables
+#/////////////////////////////////
+
+# Type of vertex generator 
+# Options: "source_simple_bulk"
+#          "source_simple_surf"
+#          "input_file_name"
+#          "spot"
+VERTEX gen_vertex S source_simple_bulk
+
+# Save vertex in a file for next runs:
+VERTEX gen_vertex_save I 0
+
+# Vertex output file for [gen_vertex != "input_file_name"]
+VERTEX gen_vertex_save_filename S vertex.out
+
+# Vertex input file for [gen_vertex == "input_file_name"]
+VERTEX gen_vertex_filename S vertex.in
+
+# Spot vertex coordinates (cm) for [gen_vertex == "spot"]
+VERTEX gen_vertex_spot V 3
+0.
+0.
+0.
+
+######### PARTICLES GENERATOR SECTION ########
+
+# Generator data source ("random" or "input_file_name")
+# Options: "random"
+#          "input_file_name"
+
+#GLOBAL gen_source S gen_data/test_2nubb_Nd150.txt
+GLOBAL gen_source S random
+
+# In case of Generator data source == "random", Ekin (MeV) minimum limit
+GLOBAL gen_min_E D 0.05
+
+# In case of Generator data source == "random", Ekin (MeV) maximum limit
+GLOBAL gen_max_E D 3.55
+
+# Number of events
+GLOBAL num_events I 10
+
+# Initial particles name
+GLOBAL part_name S e-
+
+
+######### GEOMETRY SECTION ########
+
+# GEOMETRY parameters file
+GLOBAL geom_file S snemo.geom
+
+# In case of visual run, display a complete view (1) or just the shape (0)
+GLOBAL DISPLAY_ALL I 0
+
+
+
+#///////////////////////////////////
+# This is group PHYSICS variables
+#///////////////////////////////////
+
+# Energy Loss Enabled for electrons (0=OFF 1=ON)
+PHYSICS energy_loss I 1
+
+# Multiple Scattering Enabled for electrons (0=OFF 1=ON)
+PHYSICS mult_scattering I 1
+
+# Maximum Step Length inside the SOURCE (mm)
+PHYSICS SOURCE_max_step D 0.01
+
+# Maximum Step Length inside the GEIGER CELLS (mm)
+PHYSICS GG_CELL_max_step D 5.
+
+# Cut (mm) for Calorimeter region
+PHYSICS calo_cut D 5.
+
+# Cut (mm) for Tracking region
+PHYSICS tracking_cut D .5
+
+# Cut (mm) for Source region
+PHYSICS source_cut D .05
+
+
+#///////////////////////////////////
+# This is group CHECK variables
+#///////////////////////////////////
+
+# Store meaning-less particles generated at the Calorimeter: YES (1) or NO (0)
+CHECK store_all I 0
+
+# Print BHEP Stored particles at the end: YES (1) or NO (0)
+CHECK print_parts I 0
+
+# end of parameters file
Index: /head/scripts/Help/Tutorial.help
===================================================================
--- /head/scripts/Help/Tutorial.help	(revision 1)
+++ /head/scripts/Help/Tutorial.help	(revision 1)
@@ -0,0 +1,24 @@
+  First steps :
+  -----------
+  Click in 'snovis/Detector' to visualize some default geometry.
+ 
+  Click in 'snovis/Run...' to map the Run dialog box.
+  
+  Click in Apply to start a run.
+
+  After each event, control is given to the GUI.
+ Someone can play with the Inventor viewer controls
+ to manipulate the scene.
+
+  Click in 'snovis/Next evt' to produce a new event.
+
+  By default, the command prompt is set to Geant4 commands.
+
+  Geometry viewing :
+  ----------------
+  Click in 'Tree/PhysicalVolumes' to display the geometry
+ hierachy in the tree widget (the one at the
+ left of the viewer).
+
+  Choose an item in the tree to visualize it.
+
Index: /head/scripts/Inventor/Floor.iv
===================================================================
--- /head/scripts/Inventor/Floor.iv	(revision 1)
+++ /head/scripts/Inventor/Floor.iv	(revision 1)
@@ -0,0 +1,28 @@
+#Inventor V1.0 ascii
+
+DEF sceneGraph Separator {
+  DEF highlight Switch {
+    whichChild 0
+    Material {diffuseColor 0.8 0.8 0.8}
+    Material {diffuseColor 1 1 1}    
+  }
+  Transform {translation -2500 -2500 -2500}
+  SoSeparator {
+    Scale {scaleFactor 1000 1000 1000}
+    RotationXYZ {axis X angle 1.57079}
+    Array {
+#      origin CENTER
+      numElements1 5
+      numElements2 5
+      Coordinate3 {
+        point [ 0.0  0.0  0.0,
+                1.0  0.0  0.0,
+                1.0  1.0  0.0,
+                0.0  1.0  0.0]
+      }
+      IndexedLineSet {
+        coordIndex [ 0, 1, 2, 3, 0, -1 ]
+      }
+   }
+  }
+}
Index: /head/scripts/OnX/Camera.onx
===================================================================
--- /head/scripts/OnX/Camera.onx	(revision 1)
+++ /head/scripts/OnX/Camera.onx	(revision 1)
@@ -0,0 +1,33 @@
+<!--
+   The orientation field of an SoCamera defines
+  a rotation from the default position, that is to say
+  a camera looking toward -z axis with up along y axis.
+-->
+
+
+<widget class="CascadeButton">
+  <label>Camera</label>
+  <widget class="Menu">
+    <widget class="MenuItem">
+      <label>Front (+z)</label>
+      <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 0 5000 orientation 0 1 0 0</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Back (-z)</label>
+      <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 0 -5000 orientation 0 1 0 3.14</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Side +z at left</label>
+      <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 5000 0 0 orientation 0 1 0 1.57</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Side +z at right</label>
+      <activate exec="DLD">OnX region_setNode type SoCamera height 5000  position -5000 0 0 orientation 0 1 0 -1.57</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Top</label>
+      <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 5000 0 orientation 1 0 0 -1.57</activate>
+    </widget>
+    <reference file="$ONXROOT/scripts/OnX/Camera.onx"/>
+  </widget>
+</widget>
Index: /head/scripts/OnX/Help.onx
===================================================================
--- /head/scripts/OnX/Help.onx	(revision 1)
+++ /head/scripts/OnX/Help.onx	(revision 1)
@@ -0,0 +1,11 @@
+<widget class="CascadeButton">
+  <label>Help</label>
+  <widget class="Menu">
+    <reference file="$ONXROOT/scripts/OnX/Help.onx"/>
+    <widget class="MenuItem">
+      <label>Tutorial</label>
+      <activate exec="DLD">OnX ui_help_file $SNOVISROOT/scripts/Help/Tutorial.help</activate>
+    </widget>
+  </widget>
+</widget>
+
Index: /head/scripts/OnX/InputLayout.onx
===================================================================
--- /head/scripts/OnX/InputLayout.onx	(revision 1)
+++ /head/scripts/OnX/InputLayout.onx	(revision 1)
@@ -0,0 +1,9 @@
+<OnX version="v15r0">
+
+  <widget class="InputDialog" name="snovis_InputLayout">
+    <label>Layout</label>
+    <input name="layout" label="Layout" type="option" items="default\nfront_top\nCAD"/>
+    <ok exec="DLD">snovis snovis_InputLayout_ok</ok>
+  </widget>
+
+</OnX>
Index: /head/scripts/OnX/Pages.onx
===================================================================
--- /head/scripts/OnX/Pages.onx	(revision 1)
+++ /head/scripts/OnX/Pages.onx	(revision 1)
@@ -0,0 +1,12 @@
+<widget class="TabStack" name="ViewerTabStack">
+  <select exec="DLD bg">OnX OnX_Tab_select</select>
+  <widget class="PageViewer" name="Viewer_1">
+    <tabLabel>Viewer_1</tabLabel>
+    <create exec="DLD">OnX page_create</create>
+    <destroy exec="DLD">OnX page_destroy</destroy>
+    <create exec="DLD">snovis snovis_Page_create</create>
+    <collect exec="DLD">OnX viewer_collect</collect>
+    <popupItems>No highlighted</popupItems>
+    <popup exec="DLD">OnX viewer_popup</popup>
+  </widget>
+</widget>
Index: /head/scripts/OnX/Scene.onx
===================================================================
--- /head/scripts/OnX/Scene.onx	(revision 1)
+++ /head/scripts/OnX/Scene.onx	(revision 1)
@@ -0,0 +1,14 @@
+<widget class="CascadeButton">
+  <label>Scene</label>
+  <widget class="Menu">
+    <reference file="$G4LABROOT/scripts/OnX/Scene.onx"/>
+    <widget class="MenuItem">
+      <label>Floor</label>
+      <activate exec="DLD">OnX region_readInventorFile $SNOVISROOT/scripts/Inventor/Floor.iv</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Set a layout...</label>
+      <activate exec="DLD">OnX ui_show_dialog $SNOVISROOT/scripts/OnX/InputLayout.onx snovis_InputLayout_dialog</activate>
+    </widget>
+  </widget>
+</widget>
Index: /head/scripts/OnX/snovis.onx
===================================================================
--- /head/scripts/OnX/snovis.onx	(revision 1)
+++ /head/scripts/OnX/snovis.onx	(revision 1)
@@ -0,0 +1,39 @@
+<widget class="CascadeButton">
+  <label>snovis</label>
+  <widget class="Menu">
+    <widget class="MenuItem">
+      <label>Detector</label>
+      <activate exec="DLD">snovis snovis_layout_default</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Run...</label>
+      <activate exec="DLD">OnX ui_show_dialog $G4LABROOT/scripts/OnX/InputRun.onx G4Lab_InputRun_dialog</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Next evt</label>
+      <activate exec="DLD">OnX ui_exit</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Execute snovis_eventEnd</label>
+      <activate exec="DLD">snovis snovis_execute_eventEnd</activate>
+    </widget>
+<!--
+    <widget class="MenuItem">
+      <label>Customize next event action</label>
+      <activate exec="DLD">OnX ui_show_dialog $G4SIMPLEROOT/scripts/OnX/InputNextEventAction.onx G4Simple_InputNextEventAction_dialog</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Gun pi0 toward right end cap</label>
+      <activate exec="G4">/gun/particle pi0</activate>
+      <activate exec="G4">/gun/direction 0.1 0.1 1</activate>
+    </widget>
+    <widget class="MenuItem">
+      <label>Dump Cell hits</label>
+      <activate exec="DLD">OnX data_collect CellHC</activate>
+      <activate exec="DLD">OnX data_dump</activate>
+    </widget>
+-->
+    <reference file="$G4LABROOT/scripts/OnX/Geant4.onx"/>
+  </widget>
+</widget>
+
Index: /head/scripts/OnX/snovis_session.onx
===================================================================
--- /head/scripts/OnX/snovis_session.onx	(revision 1)
+++ /head/scripts/OnX/snovis_session.onx	(revision 1)
@@ -0,0 +1,80 @@
+<OnX version="v15r0">
+  <create exec="DLD">OnX OnX_Initialize</create>
+  <create exec="DLD">OnXLab OnXLab_Initialize</create>
+  <create exec="DLD">snovis snovis_Initialize</create>
+  <destroy exec="DLD">snovis snovis_Finalize</destroy>
+  <widget class="Window" name="main">
+    <geometry>850x650+0+0</geometry>
+    <title>snovis</title>
+    <widget class="MenuBar" name="menuBar">
+      <reference file="$ONXROOT/scripts/OnX/File.onx"/>
+      <reference file="$SNOVISROOT/scripts/OnX/snovis.onx"/>
+      <reference file="$SNOVISROOT/scripts/OnX/Scene.onx"/>
+      <reference file="$SNOVISROOT/scripts/OnX/Camera.onx"/>
+      <reference file="$ONXROOT/scripts/OnX/Page.onx"/>
+      <reference file="$ONXROOT/scripts/OnX/Plotter.onx"/>
+      <reference file="$ONXLABROOT/scripts/OnX/Analysis.onx" optional="yes"/>
+      <reference file="$ONXROOT/scripts/OnX/Viewers.onx"/>
+      <reference file="$SNOVISROOT/scripts/OnX/Help.onx"/>
+    </widget>
+    <widget class="ToolBar">
+      <widget class="ToolBarItem">
+        <label>Print...</label>
+        <pixmap>$ONXROOT/scripts/images/fileprint.xpm</pixmap>
+        <tooltip>Map print dialog</tooltip>
+        <activate exec="DLD">OnX ui_show_dialog $ONXROOT/scripts/OnX/InputPrint.onx OnX_InputPrint_dialog</activate>
+      </widget>
+      <widget class="ToolBarItem">
+        <label>Clear region</label>
+        <pixmap>$ONXROOT/scripts/images/editdelete.xpm</pixmap>
+        <tooltip>Clear region</tooltip>
+        <activate exec="DLD">OnX region_clear</activate>
+      </widget>
+      <widget class="ToolBarItem">
+        <label>Next event</label>
+        <pixmap>$ONXROOT/scripts/images/civil_arrow_right.xpm</pixmap>
+        <tooltip>Next event</tooltip>
+        <activate exec="DLD">G4Lab G4Lab_nextEvent</activate>
+      </widget>
+    </widget>
+    <widget class="VPaned"> 
+      <splitPosition>450</splitPosition>
+      <widget class="HPaned">
+        <splitPosition>200</splitPosition>
+        <widget class="VBox">
+          <expand>second</expand>
+          <sizeOfFixed>30</sizeOfFixed>
+          <widget class="OptionMenu" name="optionTree">
+            <label>Tree actions</label>
+            <items>PhysicalVolumes\nPhysicsTables\nAIDA trees</items>
+            <default>PhysicalVolumes</default>
+            <valueChanged exec="DLD">G4Lab G4Lab_tree_option</valueChanged>
+          </widget>
+          <widget class="ScrolledTree" name="mainTree">
+            <select exec="DLD">G4Lab G4Lab_tree_select</select>
+          </widget>
+        </widget>
+        <reference file="$SNOVISROOT/scripts/OnX/Pages.onx"/>
+      </widget>
+      <widget class="VBox"> 
+        <expand>first</expand>
+        <sizeOfFixed>30</sizeOfFixed>
+        <widget class="ScrolledText" name="consoleText"/>
+        <widget class="HBox"> 
+          <expand>second</expand>
+          <sizeOfFixed>80</sizeOfFixed>
+          <widget class="OptionMenu" name="consolePrompt">
+            <label>Interpreter</label>
+            <default>G4</default>
+            <items>G4\nDLD\nsystem\nPython</items>
+          </widget>
+          <widget class="CommandLine" name="consoleCommandLine">
+            <activate exec="DLD">OnX console_execute</activate>
+            <complete exec="DLD">G4Lab G4Lab_consolePrompt_complete</complete>
+          </widget>
+        </widget>
+      </widget>
+    </widget>
+    <reference file="$ONXROOT/scripts/OnX/Dialogs.onx"/>
+  </widget>
+</OnX>
Index: /head/scripts/snemo.geom
===================================================================
--- /head/scripts/snemo.geom	(revision 1)
+++ /head/scripts/snemo.geom	(revision 1)
@@ -0,0 +1,137 @@
+#///////////////////////////////////////////////////////////////////////
+#/////  File containing SuperNemo geometry implementation options  /////
+#///////////////////////////////////////////////////////////////////////
+
+
+
+#////////////////////////   SOURCE FOIL   /////////////////////////////
+
+# SOURCE layout (Options: simple)
+GEOMETRY SOURCE_layout S simple
+
+# SOURCE thickness (mm)
+GEOMETRY SOURCE_thick D 0.060
+
+# SOURCE height (cm)
+GEOMETRY SOURCE_height D 350.
+
+# SOURCE width (cm)
+GEOMETRY SOURCE_width D 450.
+
+# SOURCE materials (Options: Molibdenium, Selenium, Neodymium, ...)
+GEOMETRY SOURCE_mat S Molibdenium
+
+
+#//////////////////////   TRACKING CHAMBER   //////////////////////////
+
+# Tracking Chamber total length (cm)
+GEOMETRY TC_length D 120.
+
+# Tracking Chamber height (cm)
+GEOMETRY TC_height D 400.
+
+# Tracking Chamber width (cm)
+GEOMETRY TC_width D 500.
+
+# Tracking gas materials (Options: Helium, Tracking_gas, ...)
+GEOMETRY TC_mat S Tracking_gas
+
+# Tracking Chamber gas pressure (atm)
+GEOMETRY TC_pressure D 0.89
+
+# Tracking Chamber gas temperature (kelvin)
+GEOMETRY TC_temperature D 300.
+
+
+#/////////////////   TRACKING PLANES DISTRIBUTION   ////////////////////
+
+# Measurement planes distribution (Options: nblocks)
+GEOMETRY TC_planes_dist S nblocks
+
+# /// In the case of "nblocks" planes distribution:
+
+# Number of planes GG blocks
+GEOMETRY TC_num_blocks I 3
+
+# Number of planes in every GG block
+GEOMETRY TC_planes_per_block V 3
+4
+2
+3
+
+# Gap size (cm) for every GG block
+GEOMETRY TC_gaps_Z V 3
+5.0
+15.0
+15.0
+
+
+#//////////////////////   DRIFT CELLS   ////////////////////////
+
+# Drift cell geometry (Options: gwires_8)
+GEOMETRY DCELL_layout S gwires_8
+
+# Drift cell diametry (mm)
+GEOMETRY DCELL_diam D 30.
+
+# Drift cell anode wires diametry (um)
+GEOMETRY DCELL_AWIRE_diam D 50.
+
+# Drift cell anode wires material
+GEOMETRY DCELL_AWIRE_mat S Inox
+
+# Drift cell ground wires diametry (um)
+GEOMETRY DCELL_GWIRE_diam D 50.
+
+# Drift cell ground wires material
+GEOMETRY DCELL_GWIRE_mat S Inox
+
+# Drift cell cathode ring outer diameter (mm)
+GEOMETRY DCELL_CRING_outer_diam D 23.
+
+# Drift cell cathode ring inner diameter (mm)
+GEOMETRY DCELL_CRING_inner_diam D 22.5
+
+# Drift cell cathode ring height (mm)
+GEOMETRY DCELL_CRING_height D 35.
+
+# Drift cell ground wires material
+GEOMETRY DCELL_CRING_mat S Copper
+
+# Place extra ground wire between adjacent cells of same plane
+GEOMETRY DCELL_GWIRE_extra_cell I 1
+
+# Place extra ground wire between adjacent cells of adjacent planes
+GEOMETRY DCELL_GWIRE_extra_plane I 1
+
+
+#///////////////////   CALORIMETER BLOCKS   /////////////////////
+
+# Calorimeter layout
+GEOMETRY CALO_layout S basic
+
+# Calorimeter blocks total thickness (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_thick D 10.
+
+# Calorimeter blocks total height (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_height D 25.
+
+# Calorimeter blocks total width (wrapper included) (cm)
+GEOMETRY CALO_BLOCK_width D 25.
+
+# Calorimeter blocks wrapper thickness (mm)
+GEOMETRY CALO_WRAP_thick D 0.05
+
+# Calorimeter blocks wrapper material (Mylar, ...)
+GEOMETRY CALO_WRAP_mat S Mylar
+
+
+#//////////////////////   MAGNETIC FIELD   ////////////////////////
+
+# Magnetic field (B) intensity (in Gauss) (10 KGauss = 1 Tesla)
+GEOMETRY B_int D 25.0
+
+# Magnetic field (B) direction (Options: Y, Z)
+GEOMETRY B_dir S Y
+
+# end of SuperNEMO module geometry file
Index: /head/scripts/snova.par
===================================================================
--- /head/scripts/snova.par	(revision 1)
+++ /head/scripts/snova.par	(revision 1)
@@ -0,0 +1,117 @@
+#/////////////////////////////////////////////////////////
+#/////  File containing nemo implementation options  /////
+#/////////////////////////////////////////////////////////
+
+
+#/////////////////////////////////
+# This is group GLOBAL variables
+#/////////////////////////////////
+
+# Simulation data verbosity (MUTE, CONCISE, NORMAL, DETAILED, VERBOSE, VVERBOSE)
+GLOBAL simulation_verbosity S NORMAL
+
+# G4 Tracking verbosity ("0", "1", "2", "3", ...)
+GLOBAL G4Tracking_verbosity S 0
+
+# Output dst file name 
+# Allowed extensions: '.txt' for text files
+#                     '.gz'  for gziped text files
+#                     '.h5' for HDF5 files
+GLOBAL dst_fname S data/dst_test_random_Nd150_Bon.txt
+
+
+#/////////////////////////////////
+# This is group VERTEX variables
+#/////////////////////////////////
+
+# Type of vertex generator 
+# Options: "source_simple_bulk"
+#          "source_simple_surf"
+#          "input_file_name"
+#          "spot"
+VERTEX gen_vertex S source_simple_bulk
+
+# Save vertex in a file for next runs:
+VERTEX gen_vertex_save I 0
+
+# Vertex output file for [gen_vertex != "input_file_name"]
+VERTEX gen_vertex_save_filename S vertex.out
+
+# Vertex input file for [gen_vertex == "input_file_name"]
+VERTEX gen_vertex_filename S vertex.in
+
+# Spot vertex coordinates (cm) for [gen_vertex == "spot"]
+VERTEX gen_vertex_spot V 3
+0.
+0.
+0.
+
+######### PARTICLES GENERATOR SECTION ########
+
+# Generator data source ("random" or "input_file_name")
+# Options: "random"
+#          "input_file_name"
+
+#GLOBAL gen_source S gen_data/test_2nubb_Nd150.txt
+GLOBAL gen_source S random
+
+# In case of Generator data source == "random", Ekin (MeV) minimum limit
+GLOBAL gen_min_E D 0.05
+
+# In case of Generator data source == "random", Ekin (MeV) maximum limit
+GLOBAL gen_max_E D 3.55
+
+# Number of events
+GLOBAL num_events I 10
+
+# Initial particles name
+GLOBAL part_name S e-
+
+
+######### GEOMETRY SECTION ########
+
+# GEOMETRY parameters file
+GLOBAL geom_file S snemo.geom
+
+# In case of visual run, display a complete view (1) or just the shape (0)
+GLOBAL DISPLAY_ALL I 0
+
+
+
+#///////////////////////////////////
+# This is group PHYSICS variables
+#///////////////////////////////////
+
+# Energy Loss Enabled for electrons (0=OFF 1=ON)
+PHYSICS energy_loss I 1
+
+# Multiple Scattering Enabled for electrons (0=OFF 1=ON)
+PHYSICS mult_scattering I 1
+
+# Maximum Step Length inside the SOURCE (mm)
+PHYSICS SOURCE_max_step D 0.01
+
+# Maximum Step Length inside the GEIGER CELLS (mm)
+PHYSICS GG_CELL_max_step D 5.
+
+# Cut (mm) for Calorimeter region
+PHYSICS calo_cut D 5.
+
+# Cut (mm) for Tracking region
+PHYSICS tracking_cut D .5
+
+# Cut (mm) for Source region
+PHYSICS source_cut D .05
+
+
+#///////////////////////////////////
+# This is group CHECK variables
+#///////////////////////////////////
+
+# Store meaning-less particles generated at the Calorimeter: YES (1) or NO (0)
+CHECK store_all I 0
+
+# Print BHEP Stored particles at the end: YES (1) or NO (0)
+CHECK print_parts I 0
+
+# end of parameters file
Index: /head/source/Callbacks.cxx
===================================================================
--- /head/source/Callbacks.cxx	(revision 1)
+++ /head/source/Callbacks.cxx	(revision 1)
@@ -0,0 +1,94 @@
+//
+//  All functions here should be OnX callbacks, that is to say
+// functions with signature :
+//   extern "C" {
+//     void callback_without_arguments(IUI&);
+//     void callback_with_arguments(IUI&,const std::vector<std::string>&);
+//   }
+//
+
+#include <OnX/Helpers/OnX.h>
+#include <OnX/Helpers/Inventor.h>
+
+// Slash :
+#include <Slash/Core/ISession.h>
+#include <Slash/UI/IUI.h>
+#include <Slash/UI/ISoViewer.h>
+
+// Lib :
+#include <Lib/System.h>
+#include <Lib/Manager.h>
+#include <Lib/Printer.h>
+#include <Lib/Out.h>
+
+// G4Lab :
+#include <G4Lab/Interfaces/IGeant4Manager.h>
+
+extern "C" {
+
+//////////////////////////////////////////////////////////////////////////////
+/// snovis/scripts/OnX/snovis.onx //////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+void snovis_Initialize(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+// Should be executed (in a widget create callback) 
+// when the GUI is constructed 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  Slash::UI::ISoViewer* soViewer = ui_SoViewer(aUI);
+  if(soViewer) {
+    soViewer->setDecoration(true);
+    soViewer->setViewing(true);
+  }
+
+  aUI.setCallback("OnX_File_exit","activate","DLD","G4Lab G4Lab_exit");
+
+  Slash::Core::ISession& session = aUI.session();
+
+  session.setParameter("modeling.highlightColor","white");
+  session.setParameter("modeling.trajectories","pickable");
+  session.setParameter("event.scan","yes");
+    
+  IGeant4Manager* g4Manager = 
+    Lib_findManager(session,"Geant4Manager",IGeant4Manager);
+  if(!g4Manager) {
+    aUI.echo("snovis_Initialize : Geant4Manager not found.");
+  } else {
+    // Declare a callback executed at each end of event :
+    g4Manager->setEventEndScript("DLD","snovis snovis_eventEnd");
+    //Declare G4Lab types (PV, Trajectory, HitsCollections, etc...).
+    g4Manager->initialize(); 
+  }
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_Finalize(
+ Slash::UI::IUI&
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_execute_eventEnd(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  Slash::Core::ISession& session = aUI.session();
+
+  std::string value;
+  if(!session.parameterValue("event.scan",value)) return;
+  // To avoid falling in the ui.steer();
+  session.setParameter("event.scan","no");
+
+  aUI.executeScript("DLD","snovis snovis_eventEnd");
+
+  // Restore previous event.scan :
+  session.setParameter("event.scan",value);
+}
+
+} // extern "C"
Index: /head/source/InventorCallbacks.cxx
===================================================================
--- /head/source/InventorCallbacks.cxx	(revision 1)
+++ /head/source/InventorCallbacks.cxx	(revision 1)
@@ -0,0 +1,91 @@
+//
+//  All functions here should be OnX callbacks, that is to say
+// functions with signature :
+//   extern "C" {
+//     void callback_without_arguments(IUI&);
+//     void callback_with_arguments(IUI&,const std::vector<std::string>&);
+//   }
+//
+
+//
+// HEPVis and Inventor related callbacks.
+//
+
+#include <OnX/Helpers/OnX.h>
+#include <OnX/Helpers/Inventor.h>
+
+#include <Lib/mmanip.h>
+
+#include <Inventor/nodes/SoOrthographicCamera.h>
+
+// HEPVis :
+#include <HEPVis/nodekits/SoPage.h>
+#include <HEPVis/nodekits/SoDisplayRegion.h>
+
+extern "C" {
+
+//////////////////////////////////////////////////////////////////////////////
+void snovis_eventEnd(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  Slash::Core::ISession& session = aUI.session();
+
+  SoPage* soPage = ui_SoPage(aUI);
+  if(!soPage) return;
+
+  SoRegion* soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+
+  soRegion->clear("dynamicScene");
+
+  //data_collect(session,"Trajectory","particle==\"gamma\"");
+  //data_collect(session,"Trajectory","particle==\"e-\"");
+  //data_collect(session,"Trajectory","particle==\"e+\"");
+
+  data_collect(session,"Trajectory");
+  data_visualize(session);
+
+  std::string svalue;
+  if(!session.parameterValue("modeling.trajectories",svalue)) return;
+
+  if( (svalue=="immediate_all") || 
+      (svalue=="immediate_time") ||
+      (svalue=="pickable") ) {
+    std::string event_scan;
+    session.parameterValue("event.scan",event_scan);
+    if(event_scan=="yes") {
+      //Enter secondary interactive loop to
+      // play with the event :
+      aUI.echo("Play with the event...");
+      aUI.steer();
+    } else {
+      aUI.synchronize();
+    }
+  }
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_Page_create(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  SoPage* soPage = ui_SoPage(aUI);
+  if(!soPage) return;
+
+  soPage->deleteRegions();
+  soPage->titleVisible.setValue(FALSE);
+  soPage->title.setValue("snovis");
+  soPage->createRegions("SoDisplayRegion",1,1,0);
+
+  SoRegion* soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+
+  soRegion->color.setValue(SbColor(0,0,0));
+}
+
+
+} // extern "C"
Index: /head/source/Layouts.cxx
===================================================================
--- /head/source/Layouts.cxx	(revision 1)
+++ /head/source/Layouts.cxx	(revision 1)
@@ -0,0 +1,267 @@
+//
+//  All functions here should be OnX callbacks, that is to say
+// functions with signature :
+//   extern "C" {
+//     void callback_without_arguments(Slash::UI::IUI&);
+//     void callback_with_arguments(Slash::UI::IUI&,
+//                                  const std::vector<std::string>&);
+//   }
+//
+
+#include <OnX/Helpers/OnX.h>
+#include <OnX/Helpers/Inventor.h>
+
+#include <Inventor/nodes/SoOrthographicCamera.h>
+
+// HEPVis :
+#include <HEPVis/SbMath.h>
+#include <HEPVis/nodekits/SoPage.h>
+#include <HEPVis/nodekits/SoDisplayRegion.h>
+
+extern "C" {
+
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+void snovis_scene_default(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+// Visualize same scene as snova_vis_example.mac.
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  Slash::Core::ISession& session = aUI.session();
+  
+  session.setParameter("modeling.modeling","wire_frame");
+
+  data_collect(session,"PV","name==\"WORLD\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"DETECTOR\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"[CALO:0.0.0]\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"CHAMBER\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"[SOURCE.STRIP:0.0]\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"[TC.CELL:0.0.0]\"");
+  data_visualize(session);
+
+  data_collect(session,"PV","name==\"[TC.LAYER:1.0]\"");
+  data_visualize(session);
+
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_layout_default(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  //////////////////////////////////////////////////////////////////////////
+  // Prepare the page :
+  //////////////////////////////////////////////////////////////////////////
+  SoPage* soPage = ui_SoPage(aUI);
+  if(!soPage) return;
+
+  soPage->deleteRegions();
+  soPage->titleVisible.setValue(FALSE);
+  soPage->createRegions("SoDisplayRegion",1,1,1);
+
+  // Lonely region ; front view :
+  soPage->setCurrentRegion(0);
+  SoRegion* soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  SoRegion* fromRegion = soRegion;
+  soRegion->color.setValue(SbColor(0,0,0));
+
+  SoCamera* soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(5000);
+  soCamera->position.setValue(0,0,5000);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(0,1,0),0));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(5000);
+
+  //////////////////////////////////////////////////////////////////////////
+  // Scene :
+  //////////////////////////////////////////////////////////////////////////
+  soPage->setCurrentRegion(0);
+
+  snovis_scene_default(aUI);
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_layout_front_top(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  //////////////////////////////////////////////////////////////////////////
+  // Prepare the page :
+  //////////////////////////////////////////////////////////////////////////
+  SoPage* soPage = ui_SoPage(aUI);
+  if(!soPage) return;
+
+  soPage->deleteRegions();
+  soPage->titleVisible.setValue(FALSE);
+  soPage->createRegions("SoDisplayRegion",1,2,1);
+
+  // First region ; front view :
+  soPage->setCurrentRegion(0);
+  SoRegion* soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  SoRegion* fromRegion = soRegion;
+  soRegion->color.setValue(SbColor(0,0,0));
+
+  SoCamera* soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(5000);
+  soCamera->position.setValue(0,0,5000);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(0,1,0),0));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(5000);
+
+  // Second region ; top view :
+  soPage->setCurrentRegion(1);
+  soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  soRegion->color.setValue(SbColor(0,0,0));
+  soRegion->connectFrom(fromRegion);
+
+  soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(5000);
+  soCamera->position.setValue(0,5000,0);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(1,0,0),-1.57F));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(5000);
+
+  //////////////////////////////////////////////////////////////////////////
+  // Scene :
+  //////////////////////////////////////////////////////////////////////////
+
+  soPage->setCurrentRegion(0);
+
+  snovis_scene_default(aUI);
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_layout_CAD(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  //////////////////////////////////////////////////////////////////////////
+  // Prepare the page :
+  //////////////////////////////////////////////////////////////////////////
+  SoPage* soPage = ui_SoPage(aUI);
+  if(!soPage) return;
+
+  soPage->deleteRegions();
+  soPage->titleVisible.setValue(FALSE);
+  soPage->createRegions("SoDisplayRegion",2,2,1);
+
+  // Connect the second, third, fourth region to the first one.
+
+  // First region ; side view, +z at right :
+  soPage->setCurrentRegion(0);
+  SoRegion* soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  SoRegion* fromRegion = soRegion;
+  soRegion->color.setValue(SbColor(0,0,0));
+
+  float size = 5500;
+
+  SoCamera* soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(size);
+  soCamera->position.setValue(-size,0,0);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(0,1,0),-FM_PI_2));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(size);
+
+  // Second region ; front view :
+  soPage->setCurrentRegion(1);
+  soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  soRegion->color.setValue(SbColor(0,0,0));
+  soRegion->connectFrom(fromRegion);
+
+  soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(size);
+  soCamera->position.setValue(0,0,size);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(0,1,0),0));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(size);
+
+  // Third region ; top view :
+  soPage->setCurrentRegion(2);
+  soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  soRegion->color.setValue(SbColor(0,0,0));
+  soRegion->connectFrom(fromRegion);
+
+  soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(size);
+  soCamera->position.setValue(0,size,9);
+  soCamera->orientation.setValue(SbRotation(SbVec3f(-1,-1,-1),2*FM_PI/3));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(size);
+
+  // Fourth region ; 3D view :
+  soPage->setCurrentRegion(3);
+  soRegion = soPage->currentRegion();
+  if(!soRegion) return;
+  soRegion->color.setValue(SbColor(0,0,0));
+  soRegion->connectFrom(fromRegion);
+
+  size = 2*size;
+
+  soCamera = soRegion->getCamera();
+  if(soCamera->isOfType(SoOrthographicCamera::getClassTypeId()))
+    ((SoOrthographicCamera*)soCamera)->height.setValue(size);
+  soCamera->position.setValue(-10866.0F,12873.0F,-8335.0F);
+  soCamera->orientation.setValue
+    (SbRotation(SbVec3f(-0.178F,-0.92F,-0.361F),2.27F));
+  soCamera->nearDistance.setValue(1);
+  soCamera->farDistance.setValue(100000);
+  soCamera->focalDistance.setValue(size);
+
+  ////////////////////////////////////////////////////////////////////////////
+  // Scene :
+  ////////////////////////////////////////////////////////////////////////////
+
+  soPage->setCurrentRegion(0);
+
+  snovis_scene_default(aUI);
+}
+//////////////////////////////////////////////////////////////////////////////
+void snovis_InputLayout_ok(
+ Slash::UI::IUI& aUI
+) 
+//////////////////////////////////////////////////////////////////////////////
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+{
+  std::string layout;
+  if(!aUI.parameterValue
+    ("snovis_InputLayout_input_layout.value",layout)) return;
+
+  aUI.executeScript("DLD","snovis snovis_layout_"+layout);
+
+}
+
+}
