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

Comparing COMP/CMSDIST/cms-cvs-utils.spec (file contents):
Revision 1.8 by eulisse, Tue Aug 22 16:30:54 2006 UTC vs.
Revision 1.13 by ratnik, Wed Apr 18 23:46:01 2007 UTC

# Line 1 | Line 1
1   ### RPM cms cms-cvs-utils 1.0
2 + Requires: gcc-wrapper
3   ## INITENV ALIAS_SH project source %i/bin/projch.sh
4   ## INITENV ALIAS_SH cmscvsroot source %i/bin/cmscvsroot.sh
5   ## INITENV ALIAS_CSH project source %i/bin/projch.csh
6   ## INITENV ALIAS_CSH cmscvsroot source %i/bin/cmscvsroot.csh
7 + ## INITENV ALIAS clcommit %i/bin/clcommit.sh
8   Source: none
9  
10   %prep
11   %build
12 + ## IMPORT gcc-wrapper
13   %install
14   mkdir -p %instroot/%cmsplatf/etc/profile.d/
15   mkdir -p %i/bin
# Line 28 | Line 31 | fi
31   export VERSIO
32   #CVS STUFF
33   cvsbase=":kserver:cmscvs.cern.ch:/cvs_server/repositories"
34 < CVSROOT="${cvsbase}/$1"; export CVSROOT
34 > projectname=$1
35 > case $projectname in
36 >    CMSSW )
37 >    cvsbase=":kserver:cmscvs.cern.ch:/cvs_server/repositories"
38 >    ;;
39 >    * )
40 >    cvsbase=":kserver:isscvs.cern.ch/local/reps"
41 >    projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
42 >    ;;
43 > esac
44 >    
45 > CVSROOT="${cvsbase}/$projectname"; export CVSROOT
46  
47   #SRT STUFF
48   #if [ -f $CMS_PATH/OO/Software/$1/releases/$version/SoftRelTools/SRTstartup.sh ]; then
# Line 55 | Line 69 | if ( $# == 2 ) then
69   endif
70  
71   #CVS Stuff
72 + set projectname = $argv[1]
73   set cvsbase = ":kserver:cmscvs.cern.ch:/cvs_server/repositories"
74 < setenv CVSROOT "${cvsbase}/$argv[1]"
74 > if ( $argv[1] != "CMSSW" ) then
75 >    set cvsbase=":kserver:isscvs.cern.ch/local/reps"
76 >    set projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
77 > endif
78 >
79 > setenv CVSROOT "${cvsbase}/$projectname"
80  
81   #SRT STUFF
82   #if ( -f $CMS_PATH/OO/Software/$argv[1]/releases/${version}/SoftRelTools/SRTstartup.csh ) then
# Line 75 | Line 95 | else
95  
96   #CVS STUFF
97   cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
98 + projectname=$1
99 + case $1 in
100 +    CMSSW )
101 +        cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
102 +    ;;
103 +    * )
104 +        cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
105 +        projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
106 +    ;;
107 + esac
108 +
109   CVSROOT="${cvsbase}/$1"; export CVSROOT
110  
111   fi
# Line 88 | Line 119 | if ( ($# > 1) | ($# < 1) ) then
119   else
120  
121   #CVS Stuff
122 + set projectname = $argv[1]
123   set cvsbase = ":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
124 + if ( $argv[1] != "CMSSW" ) then
125 +    set cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
126 +    set projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
127 + endif
128   setenv CVSROOT "${cvsbase}/$argv[1]"
129  
130   endif
131   EOF_CMSCVSROOT_CSH
132  
133 < cat << \EOF_CLCOMMIT > %i/bin/clcommit
133 > cat << \EOF_CLCOMMIT > %i/bin/clcommit.sh
134   #! /bin/sh
135  
136   # commit version 0.9.4
# Line 366 | Line 402 | chmod +x %i/bin/projch.sh
402   chmod +x %i/bin/projch.csh
403   chmod +x %i/bin/cmscvsroot.sh
404   chmod +x %i/bin/cmscvsroot.csh
405 < chmod +x %i/bin/clcommit
405 > chmod +x %i/bin/clcommit.sh
406  
407   ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh
408   ln -sf %i/etc/profile.d/init.csh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines