Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:34

0001 #! /bin/csh -f
0002 #
0003 # This script assumes that the schema file DetectorDescription/Schema/DDLSchema.xsd
0004 # is located as it's specified in an xml file, e.g. in a relative to the xml path.
0005 # This is true for the xml files in a release area.
0006 #
0007 # However, if you check out some xml files locally, please, make sure you check out
0008 # the DetectorDescription/Schema locally as well.
0009 #
0010 # Note, this test will fail to find the schema, if an xml file is placed in
0011 # a subdirectory of a data directory.
0012 
0013 eval `scramv1 runtime -csh`
0014 grep ".xml" $CMSSW_RELEASE_BASE/src/Geometry/CMSCommonData/python/cmsExtendedGeometryXML_cfi.py | sed "{s/'//g}" | sed '{s/,//g}' | sed '{s/ //g}' | sed '{s/\t//g}' | sed '{s/geomXMLFiles=cms.vstring(//g}' | sed '{s/)//g}' | grep -v "#" >! /tmp/tmpcmsswdddxmlfileslist
0015 cd $CMSSW_RELEASE_BASE/src
0016 
0017 set hms = `echo $CMSSW_SEARCH_PATH | awk 'BEGIN{FS=":"}{for (i=1; i<=NF; i++) print $i}'`
0018 
0019 set tmpFile=/tmp/tmpcmsswdddxmlfileslistvalid
0020 
0021 foreach line( "`cat /tmp/tmpcmsswdddxmlfileslist`" )
0022  set fileFound=0
0023  foreach spath( $hms )
0024   if( ! $fileFound ) then
0025    set file=$spath/$line
0026    if( -f $file ) then
0027     echo $file >> $tmpFile
0028     set fileFound=1
0029    endif
0030   endif 
0031  end
0032 end
0033 
0034 set script=$CMSSW_BASE/bin/$SCRAM_ARCH/DOMCount
0035 if ( ! -f $script ) then
0036  set script=$CMSSW_RELEASE_BASE/bin/$SCRAM_ARCH/DOMCount
0037 endif
0038 
0039 $script -v=always -n -s -f -l $tmpFile
0040 
0041 if( -f  $tmpFile ) then
0042  rm -f $tmpFile
0043 endif
0044 
0045 if( -f  /tmp/tmpcmsswdddxmlfileslist ) then
0046  rm -f /tmp/tmpcmsswdddxmlfileslist
0047 endif