ia64/xen-unstable

changeset 14866:8ea56a6141dd

Install dtd into correct place

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Fri Apr 13 16:54:03 2007 +0100 (2007-04-13)
parents 66e935c09530
children ed29a1d721f8
files tools/python/Makefile tools/python/xen/xm/xenapi_create.py
line diff
     1.1 --- a/tools/python/Makefile	Fri Apr 13 16:46:41 2007 +0100
     1.2 +++ b/tools/python/Makefile	Fri Apr 13 16:54:03 2007 +0100
     1.3 @@ -56,13 +56,16 @@ refresh-po: $(POTFILE)
     1.4  .PHONY: install
     1.5  ifndef XEN_PYTHON_NATIVE_INSTALL
     1.6  install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()")
     1.7 -install: install-messages
     1.8 +install: install-messages install-dtd
     1.9  	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python"
    1.10  else
    1.11 -install: install-messages
    1.12 +install: install-messages install-dtd
    1.13  	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
    1.14  endif
    1.15  
    1.16 +install-dtd: all
    1.17 +	$(INSTALL) -m 755 xen/xm/create.dtd $(DESTDIR)/usr/share/xen
    1.18 +
    1.19  install-messages: all
    1.20  	if which $(MSGFMT) >/dev/null ; then \
    1.21  		mkdir -p $(DESTDIR)$(NLSDIR); \
     2.1 --- a/tools/python/xen/xm/xenapi_create.py	Fri Apr 13 16:46:41 2007 +0100
     2.2 +++ b/tools/python/xen/xm/xenapi_create.py	Fri Apr 13 16:54:03 2007 +0100
     2.3 @@ -72,7 +72,7 @@ class xenapi_create:
     2.4      def __init__(self):
     2.5          self.DEFAULT_STORAGE_REPOSITORY = get_default_SR()
     2.6  
     2.7 -        self.dtd = "/usr/lib/python/xen/xm/create.dtd"
     2.8 +        self.dtd = "/usr/share/xen/create.dtd"
     2.9  
    2.10      def create(self, filename=None, document=None, skipdtd=False):
    2.11          """