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 <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Andreas Mohr 2016-03-15 07:40:12 +00:00 committed by Yury V. Zaytsev
parent a56511ce1a
commit 284003e838

View File

@ -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