]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
readline: install configuration file from package recipe
authorJérôme Pouiller <jezz@sysmic.org>
Tue, 17 Nov 2015 17:20:45 +0000 (18:20 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 Nov 2015 21:19:15 +0000 (22:19 +0100)
/etc/inputrc is configuration file for readline. However, until now, it
was provided by skeleton. This patch install /etc/inputrc from readline
recipe.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/readline/inputrc [moved from system/skeleton/etc/inputrc with 100% similarity]
package/readline/readline.mk

index c004899c23242d7fb645bf5973415ad8ef85afb5..3d3169627df86a3303fd18d759adef74e1f2e488 100644 (file)
@@ -17,8 +17,12 @@ READLINE_LICENSE_FILES = COPYING
 define READLINE_PURGE_EXAMPLES
        rm -rf $(TARGET_DIR)/usr/share/readline
 endef
-
 READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_PURGE_EXAMPLES
 
+define READLINE_INSTALL_INPUTRC
+       $(INSTALL) -D -m 644 package/readline/inputrc $(TARGET_DIR)/etc/inputrc
+endef
+READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_INPUTRC
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))