From 284003e838140b8d344e2eaba36de6f4a946adcd Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Tue, 15 Mar 2016 07:40:12 +0000 Subject: [PATCH] Ticket #3609: install mc.keymap as a symlink to mc.default.keymap Save space and fix rpmlint warning found by OBS Framework (build.opensuse.org). mc.x86_64: W: files-duplicate /etc/mc/mc.keymap /etc/mc/mc.default.keymap Signed-off-by: Andreas Mohr Signed-off-by: Yury V. Zaytsev --- misc/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/Makefile.am b/misc/Makefile.am index db4ddc3c5..7d005b272 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -22,7 +22,6 @@ SCRIPTS_OUT = \ LIBFILES_CONST = \ filehighlight.ini \ - mc.keymap \ mc.default.keymap \ mc.emacs.keymap @@ -52,3 +51,9 @@ EXTRA_DIST = \ if !CHARSET EXTRA_DIST += mc.charsets endif + +install-data-hook: + cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap && $(LN_S) mc.default.keymap mc.keymap + +uninstall-hook: + cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap