Bir iki ufak düzenleme
This commit is contained in:
@@ -51,10 +51,11 @@ def dosbin(filename, destination=glb.dirs.sbin):
|
|||||||
destination,
|
destination,
|
||||||
os.path.basename(filename)))
|
os.path.basename(filename)))
|
||||||
|
|
||||||
def doman(filename):
|
def doman(*filenameList):
|
||||||
env = glb.env
|
env = glb.env
|
||||||
dirs = glb.dirs
|
dirs = glb.dirs
|
||||||
|
|
||||||
|
for filename in filenameList:
|
||||||
man, postfix = filename.split('.')
|
man, postfix = filename.split('.')
|
||||||
destDir = os.path.join(env.install_dir, dirs.man, "man" + postfix)
|
destDir = os.path.join(env.install_dir, dirs.man, "man" + postfix)
|
||||||
|
|
||||||
@@ -68,11 +69,11 @@ def doman(filename):
|
|||||||
copy_file(filename + '.gz',
|
copy_file(filename + '.gz',
|
||||||
os.path.join(destDir,
|
os.path.join(destDir,
|
||||||
os.path.basename(filename)))
|
os.path.basename(filename)))
|
||||||
|
|
||||||
def domove(source, destination):
|
def domove(source, destination):
|
||||||
env = glb.env
|
env = glb.env
|
||||||
|
|
||||||
makedirs(env.install_dir + '/' + os.path.dirname(destination))
|
makedirs(env.install_dir + '/' + os.path.dirname(destination))
|
||||||
|
|
||||||
shutil.move(env.install_dir + '/' + source, env.install_dir + '/' + destination)
|
shutil.move(env.install_dir + '/' + source, env.install_dir + '/' + destination)
|
||||||
|
|
||||||
def dosym(source, destination):
|
def dosym(source, destination):
|
||||||
|
|||||||
Reference in New Issue
Block a user