Changes between Version 2 and Version 3 of Doc/SCDB/Usage


Ignore:
Timestamp:
Jul 28, 2006, 12:36:36 PM (18 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/SCDB/Usage

    v2 v3  
    2929
    3030
     31== Checking Compilation Results ==
     32
     33When doing changes in configuration, this is often useful to check the resulting profiles before deploying. There is a small tool to help doing that, [source:SCDB/trunk/src/utils/profiles/compare_xml src/utils/profiles/compare_xml]. This tool is part of [source:SCDB SCDB base].
     34
     35To use this tool, before compiling your changes, you need to copy your current (or reference) `build` directory to something else, by example `build.saved` (default name used by the script). After the compilation, if you run the script without arguments, it will display the list of all profiles that have changed. You can inspect the changes (require a bit of knowledge of profile contents) using option `-v`. Or you can restrict the check to one specific profile with option `-p`. By example :
     36
     37{{{
     38# src/utils/profiles/compare_xml
     39
     40Comparing XML files (*.xml)...
     41Differences found in build/xml/profile_grid05.xml
     42Differences found in build/xml/profile_grid06.xml
     43Differences found in build/xml/profile_grid07.xml
     44
     45# src/utils/profiles/compare_xml -v -p profile_grid05
     46
     47Comparing XML files (profile_grid05.xml)...
     48Differences found in build/xml/profile_grid05.xml
     49--- build.saved/xml/profile_grid05.xml  2006-07-28 11:41:45.000000000 +0200
     50+++ build/xml/profile_grid05.xml        2006-07-28 11:50:58.000000000 +0200
     51@@ -960,7 +960,6 @@
     52         <options>
     53           <dpm>
     54             <db>
     55-              <adminpwd type="string">MyPrefPwd</adminpwd>
     56               <adminuser type="string">root</adminuser>
     57               <configfile type="string">/opt/lcg/etc/DPMCONFIG</configfile>
     58               <password type="string">DpmMgrPwd</password>
     59
     60}}}