Download the code:
scram project CMSSW_7_4_2 cd CMSSW_7_4_2/src cmsenv git cms-merge-topic shervin86:iRingInSubdet git clone git@github.com:ECALELFS/EcalTiming.git git clone git@github.com:ECALELFS/PhiSym.git scram b -j16
Check if you have astyle command installed:
which astyle
If you don't, please install it from http://sourceforge.net/projects/astyle/ and put it into your $HOME/bin directory
Then add the following pre-commit hook into your GIT_DIR:
cd $CMSSW_BASE/src/EcalTiming/ if [ -d ".git/hooks" ];then wget -O .git/hooks/pre-commit https://raw.githubusercontent.com/UMN-CMS/cms-WR/master/scripts/formatCode.sh else echo "[ERROR] You are not in the main directory of this repository" >> /dev/stderr fi cd -
Go back to index