[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/2] Add NSIS support to nightly builds



-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
--- autobuild.sh.orig	2008-10-08 16:41:26.000000000 +0100
+++ autobuild.sh	2008-10-08 16:41:31.000000000 +0100
@@ -87,4 +87,20 @@
        --define "_sourcedir `pwd`" \
        -ba --clean mingw32-libvirt.spec
   fi
+
+  if [ -x /usr/bin/nsiswrapper ]; then
+    # XXX nsiswrapper doesn't really like having 'two roots', so
+    # we hack around it for the moment.
+    cp -a $AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw .
+    cp -a /usr/i686-pc-mingw32/sys-root/mingw/bin/* mingw/bin
+    export PATH=`pwd`/mingw/bin:$PATH
+    nsiswrapper --run --verbose \
+      --name "Libvirt" \
+      --outfile "libvirt-`date +%Y%m%d`.exe" \
+      `pwd`/mingw/bin/virsh.exe \
+      `pwd`/mingw/include/libvirt \
+      `pwd`/mingw/etc/libvirt \
+      `pwd`/mingw/lib \
+      `pwd`/mingw/share
+  fi
 fi

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]