let dohtml handle weird filenames, patch by TGL (bug #171272)
authorMarius Mauch <genone@gentoo.org>
Sat, 6 Oct 2007 15:40:38 +0000 (15:40 -0000)
committerMarius Mauch <genone@gentoo.org>
Sat, 6 Oct 2007 15:40:38 +0000 (15:40 -0000)
svn path=/main/trunk/; revision=7983

bin/dohtml

index 5087ca4306067479135a002528ecb54e4966da1f..b94629a76f56ffcf1c1a1404c973bc5c678c330b 100755 (executable)
@@ -34,17 +34,17 @@ import sys
 import types
 
 def dodir(path):
-       os.system("install -d '%s'" % path)
+       os.spawnlp(os.P_WAIT, "install", "install", "-d", path)
 
 def dofile(src,dst):
-
-       os.system("install -m0644 '%s' '%s'" % (src, dst))
+       os.spawnlp(os.P_WAIT, "install", "install", "-m0644", src, dst)
 
 def install(basename, dirname, options, prefix=""):
-
        fullpath = basename
-       if prefix: fullpath = prefix + "/" + fullpath
-       if dirname: fullpath = dirname + "/" + fullpath
+       if prefix:
+               fullpath = prefix + "/" + fullpath
+       if dirname:
+               fullpath = dirname + "/" + fullpath
 
        if options.DOCDESTTREE:
                destdir = options.D + "usr/share/doc/" + options.PF + "/" + options.DOCDESTTREE + "/" + options.doc_prefix + "/" + prefix