install ve rawInstall'a arguman desteği geldi, make DESTDIR soinstall -> rawInstall(..., soinstall)
This commit is contained in:
@@ -83,7 +83,7 @@ def make(parameters = ''):
|
|||||||
if system('make %s' % parameters):
|
if system('make %s' % parameters):
|
||||||
raise MakeError('!!! Make failed...\n')
|
raise MakeError('!!! Make failed...\n')
|
||||||
|
|
||||||
def install(parameters = ''):
|
def install(parameters = '', argument = 'install'):
|
||||||
'''install source into install directory with given parameters'''
|
'''install source into install directory with given parameters'''
|
||||||
if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'):
|
if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'):
|
||||||
args = 'make prefix=%(prefix)s/%(defaultprefix)s \
|
args = 'make prefix=%(prefix)s/%(defaultprefix)s \
|
||||||
@@ -93,24 +93,25 @@ def install(parameters = ''):
|
|||||||
mandir=%(prefix)s/%(man)s \
|
mandir=%(prefix)s/%(man)s \
|
||||||
sysconfdir=%(prefix)s/%(conf)s \
|
sysconfdir=%(prefix)s/%(conf)s \
|
||||||
%(parameters)s \
|
%(parameters)s \
|
||||||
install' % {'prefix': get.installDIR(),
|
%(argument)s' % {'prefix': get.installDIR(),
|
||||||
'defaultprefix': get.defaultprefixDIR(),
|
'defaultprefix': get.defaultprefixDIR(),
|
||||||
'man': get.manDIR(),
|
'man': get.manDIR(),
|
||||||
'info': get.infoDIR(),
|
'info': get.infoDIR(),
|
||||||
'localstate': get.localstateDIR(),
|
'localstate': get.localstateDIR(),
|
||||||
'conf': get.confDIR(),
|
'conf': get.confDIR(),
|
||||||
'data': get.dataDIR(),
|
'data': get.dataDIR(),
|
||||||
'parameters': parameters}
|
'parameters': parameters,
|
||||||
|
'argument':argument}
|
||||||
|
|
||||||
if system(args):
|
if system(args):
|
||||||
raise InstallError('!!! Install failed...\n')
|
raise InstallError('!!! Install failed...\n')
|
||||||
else:
|
else:
|
||||||
raise InstallError('!!! No Makefile found...\n')
|
raise InstallError('!!! No Makefile found...\n')
|
||||||
|
|
||||||
def rawInstall(parameters = ''):
|
def rawInstall(parameters = '', argument = 'install'):
|
||||||
'''install source into install directory with given parameters = PREFIX=%s % get.installDIR()'''
|
'''install source into install directory with given parameters = PREFIX=%s % get.installDIR()'''
|
||||||
if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'):
|
if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'):
|
||||||
if system('make %s install' % parameters):
|
if system('make %s %s' % (parameters, argument)):
|
||||||
raise InstallError('!!! Install failed...\n')
|
raise InstallError('!!! Install failed...\n')
|
||||||
else:
|
else:
|
||||||
raise InstallError('!!! No Makefile found...\n')
|
raise InstallError('!!! No Makefile found...\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user