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

Comparing COMP/CMSDIST/xcmsi-compatibility.spec (file contents):
Revision 1.3 by eulisse, Tue Jul 4 12:18:14 2006 UTC vs.
Revision 1.5 by eulisse, Tue Jul 4 12:52:34 2006 UTC

# Line 6 | Line 6 | Requires: SCRAM SCRAMV1 cms-env
6   %prep
7   %build
8   %install
9 +
10   %post
11 < ls $RPM_INSTALL_PREFIX
12 < source $RPM_INSTALL_PREFIX/cmsset_default.sh
13 < scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup
14 < %preun
15 < source $RPM_INSTALL_PREFIX/cmsset_default.sh
16 < scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup
11 > echo "Linking old XCMSI scram database to the new one..."
12 > if [ ! -f $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup ]
13 > then
14 >    echo "XCMSI installation not found. Quitting without doing anything."
15 > else
16 >    source $RPM_INSTALL_PREFIX/cmsset_default.sh
17 >    scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup
18 > fi
19 >
20 > #%preun
21 > #echo "Unlinking old XCMSI scram database from the new one..."
22 > #if [ ! -f $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup ]
23 > #then
24 > #    echo "XCMSI installation not found. Quitting without doing anything."
25 > #    exit 0
26 > #else
27 > #    source $RPM_INSTALL_PREFIX/cmsset_default.sh
28 > #    scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup
29 > #fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines