From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 14/27] tools/python: Conversion utility for legacy migration streams Date: Tue, 16 Jun 2015 15:01:59 +0100 Message-ID: <1434463319.13744.175.camel@citrix.com> References: <1434375880-30914-1-git-send-email-andrew.cooper3@citrix.com> <1434375880-30914-15-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1434375880-30914-15-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , Yang Hongyang , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, 2015-06-15 at 14:44 +0100, Andrew Cooper wrote: > This utility will take a legacy stream as in input, and produce a v2 stream as > an output. It is exec()'d by libxl to provide backwards compatibility. > > Signed-off-by: Andrew Cooper > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu > --- > tools/python/Makefile | 4 + > tools/python/scripts/convert-legacy-stream.py | 683 +++++++++++++++++++++++++ > 2 files changed, 687 insertions(+) > create mode 100755 tools/python/scripts/convert-legacy-stream.py > > diff --git a/tools/python/Makefile b/tools/python/Makefile > index e933be8..531c862 100644 > --- a/tools/python/Makefile > +++ b/tools/python/Makefile > @@ -17,9 +17,13 @@ build: genwrap.py $(XEN_ROOT)/tools/libxl/libxl_types.idl \ > > .PHONY: install > install: > + $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR) > + > CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py install \ > $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force > > + $(INSTALL_PROG) scripts/convert-legacy-stream.py $(DESTDIR)$(PRIVATE_BINDIR) Please drop the .py on install, or from the source too if you prefer. With that: Acked-by: Ian Campbell