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.10 by eulisse, Tue Dec 5 11:26:34 2006 UTC

# Line 3 | Line 3
3   ## INITENV ALIAS_SH cmscvsroot source %i/bin/cmscvsroot.sh
4   ## INITENV ALIAS_CSH project source %i/bin/projch.csh
5   ## INITENV ALIAS_CSH cmscvsroot source %i/bin/cmscvsroot.csh
6 + ## INITENV ALIAS clcommit %i/bin/clcommit.sh
7   Source: none
8  
9   %prep
# Line 28 | Line 29 | fi
29   export VERSIO
30   #CVS STUFF
31   cvsbase=":kserver:cmscvs.cern.ch:/cvs_server/repositories"
32 + case $1 in
33 +    CMSSW )
34 +    cvsbase=":kserver:cmscvs.cern.ch:/cvs_server/repositories"
35 +    ;;
36 +    * )
37 +    cvsbase=":kserver:isscvs.cern.ch/local/reps"
38 +    ;;
39 + esac
40 +    
41   CVSROOT="${cvsbase}/$1"; export CVSROOT
42  
43   #SRT STUFF
# Line 56 | Line 66 | endif
66  
67   #CVS Stuff
68   set cvsbase = ":kserver:cmscvs.cern.ch:/cvs_server/repositories"
69 + if ( $argv[1] != "CMSSW" ) then
70 +    set cvsbase=":kserver:isscvs.cern.ch/local/reps"
71 + endif
72 +
73   setenv CVSROOT "${cvsbase}/$argv[1]"
74  
75   #SRT STUFF
# Line 75 | Line 89 | else
89  
90   #CVS STUFF
91   cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
92 + case $1 in
93 +    CMSSW )
94 +        cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
95 +    ;;
96 +    * )
97 +        cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
98 +    ;;
99 + esac
100 +
101   CVSROOT="${cvsbase}/$1"; export CVSROOT
102  
103   fi
# Line 89 | Line 112 | else
112  
113   #CVS Stuff
114   set cvsbase = ":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
115 + if ( $argv[1] != "CMSSW" ) then
116 +    set cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
117 + endif
118   setenv CVSROOT "${cvsbase}/$argv[1]"
119  
120   endif
121   EOF_CMSCVSROOT_CSH
122  
123 < cat << \EOF_CLCOMMIT > %i/bin/clcommit
123 > cat << \EOF_CLCOMMIT > %i/bin/clcommit.sh
124   #! /bin/sh
125  
126   # commit version 0.9.4
# Line 366 | Line 392 | chmod +x %i/bin/projch.sh
392   chmod +x %i/bin/projch.csh
393   chmod +x %i/bin/cmscvsroot.sh
394   chmod +x %i/bin/cmscvsroot.csh
395 < chmod +x %i/bin/clcommit
395 > chmod +x %i/bin/clcommit.sh
396  
397   ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh
398   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