Skip to content

Commit

Permalink
Merge pull request cms-sw#3695 from danbarto/fix_patching
Browse files Browse the repository at this point in the history
Moving user-specific patching to after extramodel download
  • Loading branch information
menglu21 authored Jun 5, 2024
2 parents 5edf2a2 + 7582ae1 commit 382e00c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/MadGraph5_aMCatNLO/gridpack_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ make_gridpack () {
cd $MGBASEDIRORIG
cat $PRODHOME/patches/*.patch | patch -p1
cp -r $PRODHOME/PLUGIN/CMS_CLUSTER/ PLUGIN/
# Intended for expert use only!
if ls $CARDSDIR/${name}*.patch; then
echo " WARNING: Applying custom user patch. I hope you know what you're doing!"
cat $CARDSDIR/${name}*.patch | patch -p1
fi

# Copy bias module (cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LOEventGenerationBias)
# Expected structure:
Expand Down Expand Up @@ -303,6 +298,14 @@ make_gridpack () {
set +u
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then return 0; else exit 0; fi
fi

cd $MGBASEDIRORIG
# Intended for expert use only!
if ls $CARDSDIR/${name}*.patch; then
echo " WARNING: Applying custom user patch. I hope you know what you're doing!"
cat $CARDSDIR/${name}*.patch | patch -p 1
fi
cd $WORKDIR

echo `pwd`

Expand Down

0 comments on commit 382e00c

Please sign in to comment.