From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D1C1C433F5 for ; Fri, 14 Jan 2022 03:38:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 468B0831F0; Fri, 14 Jan 2022 04:38:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cohzWXCc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0CA5832CD; Thu, 13 Jan 2022 22:26:35 +0100 (CET) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0AE93830EA for ; Thu, 13 Jan 2022 22:26:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wkernelteam@gmail.com Received: by mail-lf1-x12c.google.com with SMTP id x22so24001116lfd.10 for ; Thu, 13 Jan 2022 13:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=Of4g9RhJj7ra56uON5bbcdzVLs/1xkNdLmYEWLqb004=; b=cohzWXCcOzqljT8+zFCeq5T8wvxhIKXx+dcvVJGCwaHONjIASw8rnpshGk2e+jgrot VD+SIg7m+d5HfTeHraXqqRD1reldCPELB00TOl4+nacJspfwOEs5LriD5MW6u/TNeIeD JquxomnEmEDpJRt1a6w0R5uw5UPOW45hdLiWwFY0iXo8X4+TGmFd/DPEQRUGgilG+fXG nGIuX0IAsBUNeYFUjo8KxNdeRpJL1w0gPulVoqNKlX3jQEkXA880Fg5hzauq7b1OLBC+ +kG+KP5uB/1nRMliFGJ0NA0BAWqnec1NzJyENG7XKD3vb9BT7lNAqU1HopQXdNd4RQlC 3WQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=Of4g9RhJj7ra56uON5bbcdzVLs/1xkNdLmYEWLqb004=; b=gVwTReofqqrE5g6rLnOpMqYpuQXW/PKCpUAGFP7ksthfkGUcuKBqbNweFS9W6FUhkT 3iMj5aP//Y0kyCXcz1b7ovUz5qWjIVoVock1pCkHab+DbxGumuOYnrU5SJMF+jNcHGnA +nRQ/cdJOtqx4EIswuws3Ly+ICXdsy4V0fxEWnnVzsOvsi0Vfbgw8xgVrBod3mY9NBJL 8ceSRkxf2hHZjB6uHgKgSwHQqnGhdaTacdbB3QSlHCls0MNQt7qf3UI1utm+iyri08XD S6cyauTGEkVVxCrvi+EpcGOvTjnh7+AJCyDqjle5c+r+wMreA9wQAwAaEL4hj2g4kZbj Brqg== X-Gm-Message-State: AOAM531bWtxbN5nY7bCScUOW3nNG+ul2h4o3V/ooi48gTHuxGPRiruTQ iP2CuGeaNIaetLB/cR++JzaOFte35hM= X-Google-Smtp-Source: ABdhPJxcPwS+dagHJg+2PSSh9ImWEhJ9VkTqWrYnaUE0lqDaDi7JZo+92q0fYqfYNs5zTXVlHl35DQ== X-Received: by 2002:a05:6512:3406:: with SMTP id i6mr4699321lfr.509.1642109191737; Thu, 13 Jan 2022 13:26:31 -0800 (PST) Received: from [192.168.0.205] (89-178-123-85.broadband.corbina.ru. [89.178.123.85]) by smtp.gmail.com with ESMTPSA id d2sm98919ljj.120.2022.01.13.13.26.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jan 2022 13:26:31 -0800 (PST) Message-ID: <40d76a4e-e888-c1ef-aa0a-af19392fd4f6@gmail.com> Date: Fri, 14 Jan 2022 00:26:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Content-Language: en-US To: u-boot@lists.denx.de From: Nikita Maslov Subject: [PATCH] scripts: setlocalversion: remove quotes around localversion from config Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 14 Jan 2022 04:38:29 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Nikita Maslov Date: Fri, 14 Jan 2022 00:13:39 +0300 Subject: [PATCH] scripts: setlocalversion: remove quotes around localversion from config After replacing of include/config/auto.conf sourcing with extraction of CONFIG_LOCALVERSION, resulting version string contains quotes around localversion part which are always present in auto.conf (even if localversion is empty). This patch fixes this script so it removes quotes now. Signed-off-by: Nikita Maslov Cc: Philipp Tomsich Cc: Tom Rini --- scripts/setlocalversion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/setlocalversion b/scripts/setlocalversion index c1c0435267..4a63143706 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -153,8 +153,9 @@ if test -e include/config/auto.conf; then # We are interested only in CONFIG_LOCALVERSION and # CONFIG_LOCALVERSION_AUTO, so extract these in a safe # way (i.e. w/o sourcing auto.conf) - CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION=/ {print $2}'` - CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}'` + # xargs echo removes quotes + CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION=/ {print $2}' | xargs echo` + CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}' | xargs echo` else echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2 exit 1 --