ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xcmsi-compatibility.spec
Revision: 1.4
Committed: Tue Jul 4 12:23:54 2006 UTC (18 years, 9 months ago) by eulisse
Branch: MAIN
Changes since 1.3: +2 -1 lines
Log Message:
Prints message if xcmsi installation is not there.

File Contents

# Content
1 ### RPM cms xcmsi-compatibility 1.0
2 # This spec is used to link the old scramdb to the new one.
3 Source: none
4 Requires: SCRAM SCRAMV1 cms-env
5
6 %prep
7 %build
8 %install
9 %post
10 [ -f $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup ] || { echo "XCMSI installation not found. Quitting without doing anything." ; exit 0}
11 source $RPM_INSTALL_PREFIX/cmsset_default.sh
12 scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup
13 %preun
14 [ -f $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup ] || { echo "XCMSI installation not found. Quitting without doing anything." ; exit 0}
15 source $RPM_INSTALL_PREFIX/cmsset_default.sh
16 scramv1 db -link $RPM_INSTALL_PREFIX/Releases/SCRAM/scramdb/project.lookup