Skip to content
Snippets Groups Projects
Commit 1b534526 authored by Stephen Herbein's avatar Stephen Herbein
Browse files

docbook-xml: replace 'cp -t' with install_tree

'-t' is not supported by the default cp on Mac OS X

replace with install/install_tree

cannot just use install_tree since shutil.copytree insists that the dst
directory not exist
parent b9148b17
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
import os import os
import glob
from spack import * from spack import *
...@@ -35,9 +34,10 @@ class DocbookXml(Package): ...@@ -35,9 +34,10 @@ class DocbookXml(Package):
version('4.5', '03083e288e87a7e829e437358da7ef9e') version('4.5', '03083e288e87a7e829e437358da7ef9e')
def install(self, spec, prefix): def install(self, spec, prefix):
cp = which('cp') for item in os.listdir('.'):
src = os.path.abspath(item)
install_args = ['-a', '-t', prefix] dst = os.path.join(prefix, item)
install_args.extend(glob.glob('*')) if os.path.isdir(item):
install_tree(src, dst, symlinks=True)
cp(*install_args) else:
install(src, dst)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment