Project

General

Profile

Support #11531

ups override file

Added by Lynn Garren almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/28/2016
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Duration:

Description

The setup script will recognize a file in the product database directory named ups_OVERRIDE.`hostname` This is quite handy.

It seems a better idea to look for this file in the .upsfiles directory, so that bunches of them are not floating around in some top level products directory.

We need the ability to override a single flavor regardless of hostname. So we propose adding a file named ups_OVERRIDE.<flavor>.

Finally, the setups script needs to also recognize these files.

History

#1 Updated by Marc Mengel almost 4 years ago

Did a version of this in setups, see r2869 and r2870. it can be

$UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`hostname`

or
$UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`uname -r | cut -d. -f1-2`

i.e. $UPS_THIS_DB/.upsfiles/ups_OVERRIDE.foo.fnal.gov or
$UPS_THIS_DB/.upsfiles/ups_OVERRIDE.2.6

#2 Updated by Marc Mengel almost 4 years ago

Okay, so the revision stuff for cvs is wonky; added:

#    
# set UPS_OVERRIDE based on $PRODUCTS/.upsfiles    
#        
s_setenv UPS_OVERRIDE_FILE /dev/null    

test -r $UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`hostname` && \        
    s_setenv UPS_OVERRIDE_FILE $UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`hostname`

test -r $UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`uname -r | cut -d. -f 1-2` && \            
    s_setenv UPS_OVERRIDE_FILE $UPS_THIS_DB/.upsfiles/ups_OVERRIDE.`uname -r | cut -d. -f 1-2`    

s_setenv UPS_OVERRIDE "`cat $UPS_OVERRIDE_FILE`"        

s_unsetenv UPS_OVERRIDE_FILE

#3 Updated by Marc Mengel over 2 years ago

  • Status changed from New to Closed
  • Target version set to v5_2_1


Also available in: Atom PDF