37 |
|
EOF_CMSSET_DEFAULT_SH |
38 |
|
|
39 |
|
cat << \EOF_CMSSET_DEFAULT_CSH > %instroot/cmsset_default.csh |
40 |
+ |
|
41 |
|
if (${?PATH}) then |
42 |
|
setenv PATH %instroot/bin:$PATH |
43 |
|
else |
75 |
|
endsw |
76 |
|
|
77 |
|
setenv SCRAM_ARCH ${SCRAM_ARCH}_${compilerv} |
78 |
< |
setenv here `dirname $0` |
78 |
> |
if ( ${?VO_CMS_SW_DIR} ) then |
79 |
> |
setenv here $VO_CMS_SW_DIR |
80 |
> |
else |
81 |
> |
setenv here . |
82 |
> |
endif |
83 |
> |
|
84 |
> |
if ( ! -e $here/cmsset_default.csh ) then |
85 |
> |
echo "Please cd into the directory where cmsset_default.csh is." |
86 |
> |
endif |
87 |
|
|
88 |
|
foreach pkg ( `ls ${here}/${SCRAM_ARCH}/etc/profile.d/ | grep -e'^S.*[.]csh'` ) |
89 |
|
source ${here}/${SCRAM_ARCH}/etc/profile.d/$pkg |