Skip to content

Commit

Permalink
SCRAMV2: Do not create CMS_PAtH/etc/scramrc files which are taken car…
Browse files Browse the repository at this point in the history
…e by SCRAMV1
  • Loading branch information
smuzaffar authored Jul 31, 2023
1 parent 6ae8147 commit f219608
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions SCRAMV2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM lcg SCRAMV2 V2_2_9_pre18
### RPM lcg SCRAMV2 V2_2_9_pre19
## NOCOMPILER
## NO_VERSION_SUFFIX

Expand Down Expand Up @@ -63,14 +63,6 @@ echo "SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.
echo "set SCRAMV1_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh
echo "set SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh

if [ ! -d $RPM_INSTALL_PREFIX/etc/scramrc ] ; then
mkdir -p $RPM_INSTALL_PREFIX/etc/scramrc
touch $RPM_INSTALL_PREFIX/etc/scramrc/links.db
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw.map
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw-patch/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw-patch.map
echo 'CORAL=$SCRAM_ARCH/cms/coral/CORAL_*' > $RPM_INSTALL_PREFIX/etc/scramrc/coral.map
fi

if [ ! -d $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir} ] ; then
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir}
rsync --links --ignore-existing --recursive $RPM_INSTALL_PREFIX/%{pkgrel}/ $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir}/
Expand Down

0 comments on commit f219608

Please sign in to comment.