1 |
|
### RPM cms cms-cvs-utils 1.0 |
2 |
< |
## INITENV ALIAS_SH project source projch.sh |
3 |
< |
## INITENV ALIAS_SH cmscvsroot source cmscvsroot.sh |
4 |
< |
## INITENV ALIAS_CSH project source projch.csh |
5 |
< |
## INITENV ALIAS_CSH cmscvsroot source cmscvsroot.csh |
2 |
> |
## INITENV ALIAS_SH project source %i/bin/projch.sh |
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 |
|
Source: none |
7 |
|
|
8 |
|
%prep |
94 |
|
endif |
95 |
|
EOF_CMSCVSROOT_CSH |
96 |
|
|
97 |
+ |
cat << \EOF_CLCOMMIT > %i/bin/clcommit |
98 |
+ |
|
99 |
+ |
EOF_CLCOMMIT |
100 |
+ |
|
101 |
|
chmod +x %i/bin/projch.sh |
102 |
|
chmod +x %i/bin/projch.csh |
103 |
|
chmod +x %i/bin/cmscvsroot.sh |
104 |
|
chmod +x %i/bin/cmscvsroot.csh |
105 |
|
|
106 |
|
ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh |
107 |
< |
ln -sf %i/etc/profile.d/init.sh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh |
107 |
> |
ln -sf %i/etc/profile.d/init.csh %instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh |
108 |
|
|
109 |
|
%files |
110 |
|
%i |
112 |
|
%instroot/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh |
113 |
|
|
114 |
|
%post |
115 |
+ |
perl -p -i -e 's|(.*setenv.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh |
116 |
+ |
perl -p -i -e 's|(.*export.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh |
117 |
|
ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00cms-cvs-utils.sh |
118 |
< |
ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh |
118 |
> |
ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00cms-cvs-utils.csh |