Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /CalibCalorimetry/EcalCorrelatedNoiseAnalysisModules/data/EcnaSystemScriptCleanPythonFiles is written in an unsupported language. File is not indexed.

0001 # --------------------------------- EcnaSystemScriptCleanPythonFiles -----------------------------------
0002 #
0003 #    Script for python file clean with path as argument
0004 #
0005 #    Syntax of call:   csh EcnaSystemScriptCleanPythonFiles PATH
0006 #
0007 #    Example of call:  csh EcnaSystemScriptCleanPythonFiles \
0008 #                          cmssw/CMSSW_2_1_19/CalibCalorimetry/EcalCorrelatedNoiseAnalysisModules/data
0009 #
0010 #    Update: 17/03/10
0011 #    
0012 #-------------------------------------------------------------------------------------------------------
0013 
0014 echo "*EcnaSystemScriptCleanPythonFiles> Script for python file clean started."
0015 
0016 set userdir  = $HOME
0017 
0018 if( !(-d ${1}) ) then
0019   set localdir = $PWD
0020 else
0021   set localdir = ${1}
0022 endif
0023 
0024 #....   .......
0025   cd ${localdir}
0026 
0027 if( -f EcnaPythonFlagFile ) then
0028  \rm EcnaPython_*_S*_*_R*_*_*.py
0029  \rm EcnaPythonFlagFile
0030  echo "*EcnaSystemScriptCleanPythonFiles> Ecna python files has been removed in directory:"
0031  echo "                             ${1}"
0032 else
0033  echo "*EcnaSystemScriptCleanPythonFiles> No file EcnaPythonFlagFile found in directory:"
0034  echo "                             ${1}"
0035 endif
0036 
0037 echo "*EcnaSystemScriptCleanPythonFiles> End of execution."