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.14 by elmer, Tue May 1 11:31:21 2007 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 < CVSROOT="${cvsbase}/$1"; export CVSROOT
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}/$projectname"; export CVSROOT
44  
45   #SRT STUFF
46   #if [ -f $CMS_PATH/OO/Software/$1/releases/$version/SoftRelTools/SRTstartup.sh ]; then
# 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 < setenv CVSROOT "${cvsbase}/$argv[1]"
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}/$projectname"
78  
79   #SRT STUFF
80   #if ( -f $CMS_PATH/OO/Software/$argv[1]/releases/${version}/SoftRelTools/SRTstartup.csh ) then
# Line 75 | Line 93 | else
93  
94   #CVS STUFF
95   cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
96 + projectname=$1
97 + case $1 in
98 +    CMSSW )
99 +        cvsbase=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
100 +    ;;
101 +    * )
102 +        cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
103 +        projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
104 +    ;;
105 + esac
106 +
107   CVSROOT="${cvsbase}/$1"; export CVSROOT
108  
109   fi
# Line 88 | Line 117 | if ( ($# > 1) | ($# < 1) ) then
117   else
118  
119   #CVS Stuff
120 + set projectname = $argv[1]
121   set cvsbase = ":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
122 + if ( $argv[1] != "CMSSW" ) then
123 +    set cvsbase=":pserver:anonymous@isscvs.cern.ch/local/reps"
124 +    set projectname=`echo $projectname | tr "[A-Z]" "[a-z]"`
125 + endif
126   setenv CVSROOT "${cvsbase}/$argv[1]"
127  
128   endif
129   EOF_CMSCVSROOT_CSH
130  
131 < cat << \EOF_CLCOMMIT > %i/bin/clcommit
131 > cat << \EOF_CLCOMMIT > %i/bin/clcommit.sh
132   #! /bin/sh
133  
134   # commit version 0.9.4
# Line 366 | Line 400 | chmod +x %i/bin/projch.sh
400   chmod +x %i/bin/projch.csh
401   chmod +x %i/bin/cmscvsroot.sh
402   chmod +x %i/bin/cmscvsroot.csh
403 < chmod +x %i/bin/clcommit
403 > chmod +x %i/bin/clcommit.sh
404  
405   ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh
406   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