[GE issues] [Issue 2968] New - cleanup incosistent definition of RM variable in install script framework

crei crei at sun.com
Tue Mar 31 08:53:28 BST 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=2968
                 Issue #|2968
                 Summary|cleanup incosistent definition of RM variable in insta
                        |ll script framework
               Component|gridengine
                 Version|6.2u2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|TASK
                Priority|P4
            Subcomponent|cleanup
             Assigned to|ernst
             Reported by|crei






------- Additional comments from crei at sunsource.net Tue Mar 31 00:53:26 -0700 2009 -------
A cleanup in the install script framework would be good for the RM (and possible other) variables.
It would be nice to have one file which sets all this global variables.

> grep "RM=" $ALL | egrep "[:| ]RM"
.//inst_qmaster.sh_1.old:                        RM="rm -r"
util//arch_variables:RM=rm
util/install_modules//inst_common.sh:  RM="rm -f"
util/install_modules//inst_qmaster.sh:                        RM="rm -r"
util/install_modules//inst_qmaster_uninst.sh:   RM="rm -fR"
util/sgeCA//sge_ca:RM=rm
util/sgeSMF//sge_smf_support.sh:      RM="rm -f"

And usage looks like:
> grep '$RM' $ALL | grep "-"
util/install_modules//inst_common.sh:          Execute $RM -rf $dir
util/install_modules//inst_common.sh:          ExecuteAsAdmin $RM -rf $dir
util/install_modules//inst_common.sh:            ExecuteAsAdmin $RM -f $SGE_ROOT_VAL/tst$$
util/install_modules//inst_common.sh:            ExecuteAsAdmin $RM -f $SGE_ROOT_VAL/tst$$
util/sgeCA//sge_ca:  Execute $RM -rf $* > /dev/null 2>&1
util/sgeCA//sge_ca:       Execute $RM -rf $i  > /dev/null 2>&1
util/sgeCA//sge_ca:  ExecuteAsAdmin $RM -rf $*  > /dev/null 2>&1
util/sgeCA//sge_ca:       ExecuteAsAdmin $RM -rf $i  > /dev/null 2>&1
util/sgeCA//sge_ca:   $RM -f $RANDFILE
util/sgeCA//sge_ca:   $RM -f $TMPFILE $TMPFILE1
util/sgeCA//sge_ca:   $RM -f $TMPFILE $TMPFILE1 
util/sgeCA//sge_ca:   $RM -f $TMPFILE $TMPFILE1
util/sgeCA//sge_ca:            ExecuteAsAdmin $RM -f $OLDCERTFILE
util/sgeCA//sge_ca:   Execute $RM -f $TMPFILE $TMPFILE1

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=150286

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list