From patchwork Wed Sep 27 16:41:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 819232 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y2Ns06zSsz9tXQ for ; Thu, 28 Sep 2017 02:42:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 730CF886E4; Wed, 27 Sep 2017 16:42:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f9x4o9z00mhj; Wed, 27 Sep 2017 16:42:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E44A0886F1; Wed, 27 Sep 2017 16:42:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DA5F71BF8E5 for ; Wed, 27 Sep 2017 16:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C9E98886F1 for ; Wed, 27 Sep 2017 16:42:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ez5c8rapbYJR for ; Wed, 27 Sep 2017 16:42:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CEAE7886E4 for ; Wed, 27 Sep 2017 16:42:05 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id C03881578B63 for ; Wed, 27 Sep 2017 13:41:43 -0300 (BRT) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id B23111578B5F for ; Wed, 27 Sep 2017 13:41:43 -0300 (BRT) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZFT4G9Rp84ST for ; Wed, 27 Sep 2017 13:41:43 -0300 (BRT) Received: from PEDELD011457.datacom.net (unknown [172.31.206.21]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 422391578B4D for ; Wed, 27 Sep 2017 13:41:43 -0300 (BRT) From: Carlos Santos To: buildroot@buildroot.org Date: Wed, 27 Sep 2017 13:41:54 -0300 Message-Id: <1506530514-27185-2-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1506530514-27185-1-git-send-email-casantos@datacom.ind.br> References: <1506530514-27185-1-git-send-email-casantos@datacom.ind.br> Subject: [Buildroot] [PATCH 2/2] dash: enable line editting if libedit is selected. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Also, add a profile snippet enabling line editing, Emacs style. Change-Id: I68c6dbbafa95e266860329cb9c7ff5519fda5bf8 Signed-off-by: Carlos Santos --- package/dash/dash.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/dash/dash.mk b/package/dash/dash.mk index 72ef722..5c26994 100644 --- a/package/dash/dash.mk +++ b/package/dash/dash.mk @@ -10,6 +10,17 @@ DASH_SITE = http://gondor.apana.org.au/~herbert/dash/files DASH_LICENSE = BSD-3-Clause, GPL-2.0+ (mksignames.c) DASH_LICENSE_FILES = COPYING +# Enable line editing, Emacs style +define DASH_INSTALL_PROFILE + echo 'set -E' > $(TARGET_DIR)/etc/profile.d/dash.sh +endef + +ifeq ($(BR2_PACKAGE_LIBEDIT),y) +DASH_DEPENDENCIES += libedit +DASH_CONF_OPTS += --with-libedit +DASH_POST_INSTALL_TARGET_HOOKS += DASH_INSTALL_PROFILE +endif + define DASH_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 $(@D)/src/dash $(TARGET_DIR)/bin/dash endef