ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/cms-common.spec
(Generate patch)

Comparing COMP/CMSDIST/cms-common.spec (file contents):
Revision 1.4 by muzaffar, Thu Jan 31 17:08:05 2008 UTC vs.
Revision 1.7 by muzaffar, Tue Feb 5 15:51:59 2008 UTC

# Line 7 | Line 7 | echo $SCRAM_ROOT
7  
8   mkdir -p %instroot/common %instroot/bin %{instroot}/%{cmsplatf}/etc/profile.d
9  
10 < # Do not create these common files if already exist
10 > # Do not create these common files if already exist
11   # This is to avoid different arch creating these files
12   if [ ! -f %instroot/common/.cms-common ]; then
13   install -m 755 %_sourcedir/cmsos %instroot/common/cmsos
# Line 157 | Line 157 | if [ "X$SCRAM_VERSION" = "X" ] ; then
157    done
158    if [ -f ${dir}/config/scram_version ] ; then
159      ver=`cat ${dir}/config/scram_version`
160 +    if [ "X$ver" = "XV1_0_3-p1" ] ; then
161 +      if [ "X$CMSARCH" = "Xslc4_ia32_gcc345" ] ; then
162 +        ver=V1_0_3-p2
163 +      fi
164 +    fi
165      case $ver in
166        V0_* ) srbase=lcg/SCRAM/${ver};;
167        * ) srbase=lcg/SCRAMV1/${ver};;
# Line 192 | Line 197 | EOF_COMMON_SCRAM
197   chmod +x %{instroot}/common/scram
198   ln -sf scram %{instroot}/common/scramv1
199   ln -sf scram %{instroot}/common/scramv0
200 + ln -sf ../common/cmsarch %instroot/bin/cmsarch
201 + ln -sf ../common/cmsarch %instroot/bin/cmsos
202 + ln -sf ../common/scramv1 %instroot/bin/scramv1
203   touch %instroot/common/.cms-common
204   fi
205  
206   touch %instroot/%cmsplatf/etc/profile.d/dummy
199 ln -s ../common/cmsarch %instroot/bin/cmsarch
200 ln -s ../common/cmsarch %instroot/bin/cmsos
201 ln -s ../common/scram %instroot/bin/scram
202 ln -s ../common/scramv1 %instroot/bin/scramv1
203 ln -s ../common/scramv0 %instroot/bin/scramv0
207  
208   %post
209   echo $RPM_INSTALL_PREFIX
# Line 222 | Line 225 | perl -p -i -e "s|%{instroot}|$RPM_INSTAL
225   %instroot/common/.cms-common
226   %instroot/bin/cmsos
227   %instroot/bin/cmsarch
225 %instroot/bin/scram
228   %instroot/bin/scramv1
227 %instroot/bin/scramv0
229   %instroot/%cmsplatf/etc/profile.d
230   %exclude %instroot/%cmsplatf/etc/profile.d/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines