build: use symlinks for nmtui
authorMichael Biebl <biebl@debian.org>
Thu, 10 Jul 2014 01:33:18 +0000 (03:33 +0200)
committerThomas Haller <thaller@redhat.com>
Thu, 7 Jan 2016 16:41:53 +0000 (17:41 +0100)
Make /usr/bin/nmtui-* symbolic links to /usr/bin/nmtui.

https://bugzilla.gnome.org/show_bug.cgi?id=759824

clients/tui/Makefile.am
configure.ac

index ba2bbcd..0ce3cc4 100644 (file)
@@ -25,7 +25,7 @@ links = nmtui-edit nmtui-connect nmtui-hostname
 
 install-exec-hook:
        for link in $(links); do \
-               ln -f $(DESTDIR)$(bindir)/nmtui $(DESTDIR)$(bindir)/$$link; \
+               cd $(DESTDIR)$(bindir) && $(LN_S) -f nmtui $$link; \
        done
 
 uninstall-hook:
index 63f2db1..5f21fa1 100644 (file)
@@ -33,6 +33,8 @@ AM_PROG_CC_C_O
 # C++ only required if --enable-qt=yes
 AC_PROG_CXX
 
+AC_PROG_LN_S
+
 dnl Initialize libtool
 LT_PREREQ([2.2])
 LT_INIT([disable-static])