Skip to content

Commit

Permalink
Merge pull request #5919 from cms-sw/crab-complete
Browse files Browse the repository at this point in the history
[CRAB] By default make crab complete to use crab-prob
  • Loading branch information
smuzaffar committed Jun 8, 2020
2 parents 89e1c41 + 955e554 commit 2f7399f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions crab-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ rsync -a %{_builddir}/DBS/Client/utils/ %{i}/examples/

if [ $(grep '_UseCrab' %{i}/etc/crab-bash-completion.sh | wc -l) -gt 0 ] && [ $(grep ' filenames *crab' %{i}/etc/crab-bash-completion.sh |wc -l) -gt 0 ] ; then
sed -i -e 's|_UseCrab|_UseCrab_%{crab_type}|g;s| filenames *crab| filenames crab-%{crab_type}|' %{i}/etc/crab-bash-completion.sh
if [ "%{crab_type}" = "prod" ] ; then
echo "complete -F _UseCrab_prod -o filenames crab" >> %{i}/etc/crab-bash-completion.sh
fi
else
echo "ERROR: Unable to fix crab use function _UseCrab"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion crab-dev.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#For new crabclient_version, set the version_suffix to 00
#For any other change, increment version_suffix
##########################################
%define version_suffix 00
%define version_suffix 01
%define crabclient_version v3.200531
### RPM cms crab-dev %{crabclient_version}.%{version_suffix}
%define wmcore_version 1.3.3
Expand Down
2 changes: 1 addition & 1 deletion crab-pre.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#For new crabclient_version, set the version_suffix to 00
#For any other change, increment version_suffix
##########################################
%define version_suffix 00
%define version_suffix 01
%define crabclient_version 3.3.2004
### RPM cms crab-pre v3.2004.%{version_suffix}
%define wmcore_version 1.3.2
Expand Down
2 changes: 1 addition & 1 deletion crab-prod.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#For new crabclient_version, set the version_suffix to 00
#For any other change, increment version_suffix
##########################################
%define version_suffix 00
%define version_suffix 01
%define crabclient_version 3.3.2005
### RPM cms crab-prod v3.2005.%{version_suffix}
%define wmcore_version 1.3.3
Expand Down

0 comments on commit 2f7399f

Please sign in to comment.