#!/bin/tcsh setenv SVNROOT /group/halld/Repositories/svnroot set statsvn=/group/halld/Software/ExternalPackages/statsvn/statsvn.jar # Create directory to hold output set dir=SVNstats mkdir -p $dir cd $dir # Create a directory for the code and checkout the SVN packages # into it. mkdir -p code cd code svn co https://halldsvn.jlab.org/repos/trunk/sim-recon cd sim-recon # remove files we want to ignore such as Postscript files or generated files rm -f `find . -name "*.ps"` rm -f `find . -name "*.pdf"` rm -f src/programs/Simulation/HDGeant/hddsGeant3.F rm -f src/programs/Utilities/geantbfield2root/hddsGeant3.F rm -f src/programs/Simulation/HDGeant/dsolenoid.table rm -f src/programs/Simulation/HDGeant/solenoid.map rm -f src/programs/Simulation/HDGeant/flukaaf.dat rm -f src/programs/Simulation/HDGeant/fdc_deflections.dat rm -f src/programs/Simulation/pythiagen/pythia_h.F rm -f src/programs/Simulation/bggen/code/pythia_h.F rm -f src/programs/Analysis/hddm/hddm_t.c rm -f src/libraries/include/hddm_s.h rm -f src/libraries/HDDM/hddm_s.c rm -f src/libraries/HDDM/hddm_s.h rm -f src/libraries/HDGEOMETRY/DMagneticFieldMapGlueX.cc rm -f src/doc/Doxyfile # generate SVN log file cd src svn log --xml -v > ../../svn.log cd .. # Run statsvn cd ../.. java -jar $statsvn code/svn.log code/sim-recon/src # Remove source code directory rm -rf code