From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2685D138334 for ; Sun, 24 Nov 2019 20:00:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3447E087B; Sun, 24 Nov 2019 20:00:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8AE27E087B for ; Sun, 24 Nov 2019 20:00:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 656D934D2D5 for ; Sun, 24 Nov 2019 20:00:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35C958C9 for ; Sun, 24 Nov 2019 20:00:13 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1574625556.9db8c8c0e64be497bc579122e3344b0fee7dc302.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: genkernel X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 9db8c8c0e64be497bc579122e3344b0fee7dc302 X-VCS-Branch: master Date: Sun, 24 Nov 2019 20:00:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 921b38ed-1ca9-40a1-9ca7-154d65e2c156 X-Archives-Hash: e1773f61964e4a1587c9aebbbef9b7fa commit: 9db8c8c0e64be497bc579122e3344b0fee7dc302 Author: Thomas Deutschmann gentoo org> AuthorDate: Wed Nov 20 23:51:00 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Nov 24 19:59:16 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9db8c8c0 genkernel: Check for [z]grep Signed-off-by: Thomas Deutschmann gentoo.org> genkernel | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/genkernel b/genkernel index 88dba56..7cf8f15 100755 --- a/genkernel +++ b/genkernel @@ -106,6 +106,16 @@ print_info 1 "Using genkernel configuration from '${_GENKERNEL_CONF}' ..." unset _GENKERNEL_CONF print_info 1 "Running with options: ${GK_OPTIONS}" +if ! hash grep &>/dev/null +then + gen_die "grep not found. Is sys-apps/grep installed?" +fi + +if ! hash zgrep &>/dev/null +then + print_warning 1 "zgrep not found. Is app-arch/gzip installed? You will be unable to use compressed config files!" +fi + # Save any customizations of MODULES_* first. override_module_vars="$(compgen -A variable |grep '^MODULES_')" for v in ${override_module_vars}