On Mon, Mar 03, 2014 at 04:31:47PM +0100, Pino Toscano wrote:
This way "virt-builder" appears directly in the
sysconfdir.
---
builder/Makefile.am | 3 +++
configure.ac | 1 +
2 files changed, 4 insertions(+)
diff --git a/builder/Makefile.am b/builder/Makefile.am
index a539e91..b3de967 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -246,6 +246,9 @@ DISTCLEANFILES = .depend
repoconfdir = $(sysconfdir)/xdg/virt-builder/repos.d
repoconf_DATA = libguestfs.conf libguestfs.gpg
+install-exec-hook:
+ $(LN_S) xdg/virt-builder $(DESTDIR)$(sysconfdir)/virt-builder
+
# Build a small C index validator program.
bin_PROGRAMS = virt-index-validate
diff --git a/configure.ac b/configure.ac
index 8ea2620..da7caa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,7 @@ gl_EARLY
gl_INIT
AC_PROG_LIBTOOL
+AC_PROG_LN_S
# Define $(SED).
m4_ifdef([AC_PROG_SED],[
--
1.8.3.1
ACK.
I guess we should use $(LN_S) a few other places?
$ git grep -- 'ln -s'|wc -l
28
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v