>From f196aeadcf315e0ef836908385494f9ea24c8a42 Mon Sep 17 00:00:00 2001 From: Magnus Therning Date: Wed, 15 Dec 2010 14:09:40 +0000 Subject: [PATCH 3/3] Deal with stuff that is in distfiles. Not complete. To: magnus+silly@xxxxxxxxxxxx Signed-off-by: Magnus Therning --- ocaml/idl/OMakefile | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ocaml/idl/OMakefile b/ocaml/idl/OMakefile index 44291a0..be363ff 100644 --- a/ocaml/idl/OMakefile +++ b/ocaml/idl/OMakefile @@ -128,10 +128,18 @@ sdk-install: datamodel html_build xenenterpriseapi.pdf mkdir -p $(SDK)/docs/html sh -c '/bin/cp -ar /tmp/docs/html/merged/API $(SDK)/docs/html' cp /tmp/docs/html/autogen/classes.html $(SDK)/docs/html - cp $(JQUERY) $(SDK)/docs/html + if test -f $(JQUERY); then \ + cp $(JQUERY) $(SDK)/docs/html; \ + else; \ + (cd $(SDK)/docs/html; wget http://jqueryjs.googlecode.com/files/jquery-1.1.3.1.pack.js); \ + fi mkdir -p $(SDK)/docs/html/images - unzip -o -j -d $(SDK)/docs/html/images $(JQUERYTREEVIEWZIP) images/* - unzip -o -j -d $(SDK)/docs/html $(JQUERYTREEVIEWZIP) *.js images/* + if test -f $(JQUERYTREEVIEWZIP); then \ + unzip -o -j -d $(SDK)/docs/html/images $(JQUERYTREEVIEWZIP) images/*; \ + unzip -o -j -d $(SDK)/docs/html $(JQUERYTREEVIEWZIP) *.js images/*; \ + else; \ + echo "We are using an old version of treeview, the available version requires jquery 1.2. Time to upgrade."; \ + fi #./datamodel -closed -html $(SDK)/docs/html mkdir -p $(SDK)/docs/pdf cp xenenterpriseapi.pdf $(SDK)/docs/pdf/ -- 1.7.3.5