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

Comparing COMP/CMSDIST/SCRAM.spec (file contents):
Revision 1.21 by eulisse, Tue Jul 18 08:14:51 2006 UTC vs.
Revision 1.23 by eulisse, Tue Jul 25 08:57:03 2006 UTC

# Line 54 | Line 54 | tar -cf - . | tar -C %i -xvvf -
54  
55   mkdir -p %instroot/bin %instroot/share/scramdbv0
56   touch %instroot/share/scramdbv0/project.lookup
57 < cat > %instroot/bin/scram << \EOF
57 > cat > %instroot/bin/scramv0 << \EOF
58   #!/bin/sh
59  
60   # FIXME: Handle -re?
# Line 82 | Line 82 | echo "source $P5_LIBWWW_PERL_ROOT/etc/pr
82   echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh
83   echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
84  
85 < chmod 755 %instroot/bin/scram
85 > chmod 755 %instroot/bin/scramv0
86   perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i})
87   ln -sf %{i}/etc/profile.d/init.sh  %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
88   ln -sf %{i}/etc/profile.d/init.csh %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
89 < ln -sf scram %{i}/bin/scramv0
89 > ln -sf scramv0 %{instroot}/bin/scram
90  
91   %files
92   %i
# Line 100 | Line 100 | ln -sf scram %{i}/bin/scramv0
100   %post
101   %{relocateConfig}etc/profile.d/dependencies-setup.sh
102   %{relocateConfig}etc/profile.d/dependencies-setup.csh
103 < perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram
103 > perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scramv0
104   ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
105   ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
106 #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines