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.11 by eulisse, Wed Dec 6 22:38:06 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 + projectname=$1
33 + case $projectname in
34 +    CMSSW )
35 +    cvsbase=":kserver:cmscvs.cern.ch:/cvs_server/repositories"
36 +    ;;
37 +    * )
38 +    cvsbase=":kserver:isscvs.cern.ch/local/reps"
39 +    projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
40 +    ;;
41 + esac
42 +    
43   CVSROOT="${cvsbase}/$1"; export CVSROOT
44  
45   #SRT STUFF
# Line 55 | Line 67 | if ( $# == 2 ) then
67   endif
68  
69   #CVS Stuff
70 + set projectname = $argv[1]
71   set cvsbase = ":kserver:cmscvs.cern.ch:/cvs_server/repositories"
72 + if ( $argv[1] != "CMSSW" ) then
73 +    set cvsbase=":kserver:isscvs.cern.ch/local/reps"
74 +    set projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
75 + endif
76 +
77   setenv CVSROOT "${cvsbase}/$argv[1]"
78  
79   #SRT STUFF
# Line 75 | Line 93 | else
93  
94   #CVS STUFF
95   cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
96 + case $1 in
97 +    CMSSW )
98 +        cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
99 +    ;;
100 +    * )
101 +        cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
102 +    ;;
103 + esac
104 +
105   CVSROOT="${cvsbase}/$1"; export CVSROOT
106  
107   fi
# Line 89 | Line 116 | else
116  
117   #CVS Stuff
118   set cvsbase = ":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
119 + if ( $argv[1] != "CMSSW" ) then
120 +    set cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
121 + endif
122   setenv CVSROOT "${cvsbase}/$argv[1]"
123  
124   endif
125   EOF_CMSCVSROOT_CSH
126  
127 < cat << \EOF_CLCOMMIT > %i/bin/clcommit
127 > cat << \EOF_CLCOMMIT > %i/bin/clcommit.sh
128   #! /bin/sh
129  
130   # commit version 0.9.4
# Line 366 | Line 396 | chmod +x %i/bin/projch.sh
396   chmod +x %i/bin/projch.csh
397   chmod +x %i/bin/cmscvsroot.sh
398   chmod +x %i/bin/cmscvsroot.csh
399 < chmod +x %i/bin/clcommit
399 > chmod +x %i/bin/clcommit.sh
400  
401   ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh
402   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