Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:03

0001 #!/usr/bin/env bash
0002 export LC_ALL=C
0003 if [ $# -eq 0 ] ;then J=$(getconf _NPROCESSORS_ONLN); else J=$1; fi
0004 
0005 eval `scram runtime -sh`
0006 for file in `cmsglimpse -l -F src/classes.*.h$ include | sed -e 's|^src/||'`;do
0007      dir=`dirname $file`;
0008      echo \#include \<$file\> >${LOCALRT}/src/$dir/`basename $file`.cc ; 
0009 done
0010 cd ${LOCALRT}/tmp/
0011 touch dump-start
0012 #touch function-dumper.txt.unsorted plugins.txt.unsorted classes.txt.dumperct.unsorted classes.txt.dumperft.unsorted classes.txt.dumperall.unsorted
0013 cd ${LOCALRT}/src/Utilities/StaticAnalyzers
0014 scram b -j $J
0015 cd ${LOCALRT}/
0016 export USER_CXXFLAGS="-DEDM_ML_DEBUG -w"
0017 export USER_LLVM_CHECKERS="-enable-checker cms.FunctionDumper -enable-checker optional.ClassDumper -enable-checker optional.ClassDumperCT -enable-checker optional.ClassDumperFT -enable-checker optional.EDMPluginDumper"
0018 scram b -k -j $J checker SCRAM_IGNORE_PACKAGES=Fireworks/% SCRAM_IGNORE_SUBDIRS=test > $LOCALRT/tmp/class+function-dumper.log 2>&1
0019 find ${LOCALRT}/src/ -name classes\*.h.cc | xargs rm -fv
0020 cd ${LOCALRT}/tmp
0021 touch dump-end
0022 sort -u < plugins.txt.unsorted > plugins.txt
0023 sort -u < classes.txt.dumperct.unsorted | grep -e"^class" >classes.txt.dumperct.sorted
0024 sort -u < classes.txt.dumperct.unsorted | grep -v -e"^class" >classes.txt.dumperct.extra
0025 awk -F\' ' {print "class \47"$2"\47\n\nclass \47"$4"\47\n\nclass \47"$6"\47\n\n" } '  <classes.txt.dumperct.sorted | sort -u >classes.txt.dumperct
0026 sort -u < classes.txt.dumperft.unsorted | grep -e"^class" >classes.txt.dumperft.sorted
0027 sort -u < classes.txt.dumperft.unsorted | grep -v -e"^class" >classes.txt.dumperft.extra
0028 awk -F\' ' {print "class \47"$2"\47\n\nclass \47"$4"\47\n\nclass \47"$6"\47\n\n" } '  <classes.txt.dumperft.sorted | sort -u >classes.txt.dumperft
0029 sort -u < classes.txt.dumperall.unsorted | grep -e"^class" >classes.txt.dumperall
0030 sort -u < classes.txt.dumperall.unsorted | grep -v -e"^class" >classes.txt.dumperall.extra
0031 sort -u < function-dumper.txt.unsorted > function-calls-db.txt
0032 class-composition.py >classes.txt.inherits.unsorted
0033 sort -u classes.txt.inherits.unsorted | grep -e"^class" | grep -v \'\' >classes.txt.inherits
0034 sort -u classes.txt.inherits.unsorted | grep -v -e"^class" >classes.txt.inherits.extra
0035 sort -u getparam-dumper.txt.unsorted | awk '{print $0"\n"}' >getparam-dumper.txt
0036 cat classes.txt.inherits classes.txt.dumperft classes.txt.dumperct | grep -e"^class" | grep -v \'\' | sort -u >classes.txt
0037 rm *.txt.*unsorted
0038 classnames-extract.py
0039 bloom_filter_generator bloom.bin classnames.txt
0040 cp -pv $LOCALRT/tmp/bloom.bin $LOCALRT/src/Utilities/StaticAnalyzers/scripts/bloom.bin