]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add a ./run script for running programs from the local directory.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 14 Sep 2012 09:08:54 +0000 (10:08 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 18 Sep 2012 09:59:16 +0000 (10:59 +0100)
commit5090c576e3a76727c39a9b3221b2e82b545bc983
tree8cc8b6b146b02fca04c0d20c346feef46b05d589
parent24f03aa8e4000029831a1235b554a00879bd9ba0
Add a ./run script for running programs from the local directory.

With this script you can run libvirt programs without needing to
install them first.  You just have to do for example:

  ./run ./tools/virsh [args ...]

If you are already in the tools/ subdirectory, then the following
command will also work:

  ../run ./virsh [...]

You can also run the C programs under valgrind like this:

  ./run valgrind [valgrind opts...] ./program

or under gdb:

  ./run gdb --args ./program

This also works with sudo (eg. if you need root access for libvirt):

  sudo ./run ./tools/virsh list --all

Derived from libguestfs and simplified.  The ./run script in
libguestfs is much more sophisticated:

https://github.com/libguestfs/libguestfs/blob/master/run.in
.gitignore
Makefile.am
configure.ac
docs/compiling.html.in
run.in [new file with mode: 0644]