Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BDCAC433E0 for ; Mon, 8 Jun 2020 13:48:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 713EF206C3 for ; Mon, 8 Jun 2020 13:48:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 713EF206C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jiI8P-0006ZA-2F; Mon, 08 Jun 2020 13:48:17 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jiI8N-0006Z5-Ji for xen-devel@lists.xenproject.org; Mon, 08 Jun 2020 13:48:15 +0000 X-Inumbo-ID: b2f34144-a98e-11ea-9b55-bc764e2007e4 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id b2f34144-a98e-11ea-9b55-bc764e2007e4; Mon, 08 Jun 2020 13:48:14 +0000 (UTC) Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: xf7Y8GjkauFEV1JKERyWjDzhXxM6gjegyDd5m1Z5TX7oNllGB64KSePD6Ge12US2qdZJBIPmjQ 7FWrhjqKwjDNYXIo5QgMRLj9u4WL+M0grfHGGfwSy18uUPxRALSiHRt4ki2HQ4Stzm6jrf3ccA Vw5mocnd0J/I/p/z544DgGRTIazl5IAL6IsM+XzrnB6XEHnDZTbS+mhLUsANaRg4cUBl08iMbg nEyl3XyhPnWDMPQtfSMZisaUBKHPR/+RL2MR0TYpJCqhDcPQyVh7hN4LG1Du/1DO0FmWuvBdAW SNI= X-SBRS: 2.7 X-MesageID: 20234231 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,487,1583211600"; d="scan'208";a="20234231" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24286.16793.101133.543735@mariner.uk.xensource.com> Date: Mon, 8 Jun 2020 14:48:09 +0100 To: Andrew Cooper Subject: Re: [PATCH v2 for-4.14] docs/support-matrix: unbreak docs rendering In-Reply-To: <20200608133433.23659-1-andrew.cooper3@citrix.com> References: <20200608133433.23659-1-andrew.cooper3@citrix.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , Paul Durrant , George Dunlap , Jan Beulich , Anthony Perard , Xen-devel Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Andrew Cooper writes ("[PATCH v2 for-4.14] docs/support-matrix: unbreak docs rendering"): > The cronjob which renders https://xenbits.xen.org/docs/ has been broken for a > while. commitish_version() pulls an old version of xen/Makefile out of > history, and uses the xenversion rule. > > Currently, this fails with: Thanks for fixing this! > + local maj=$(sed -n 's/.*XEN_VERSION.*= \([0-9]\+\)/\1/p' < "$tmp_versionfile") > + local min=$(sed -n 's/.*XEN_SUBVERSION.*= \([0-9]\+\)/\1/p' < "$tmp_versionfile") > + if [[ -z $maj || -z $min ]]; I would prefer to avoid use of the unusual bash-specific [[ ]] syntax, not because of concerns about portability to other shells (since this is a #!/bin/bash script) but because many programmers won't be familiar with it. Would you mind writing this instead + if test -z "$maj" || test -z "$min"; then ? > + printf "%d.%d\n" "${maj}" "${min}" The { } here are not necessary but I don't kind if you feel they add clarity. You might also want to retain some text in the comment about what assumptions we are making about xen/Makefile. Different assumptions to before, but assumptions nevertheless. In any case, with or without the changes I suggest above: Reviewed-by: Ian Jackson On IRC: 14:35 Diziet: jbeulich: For the docs support-matrix fix, any concerns with me backporting it immediately? Having thought about this properly, I don't think we need to urgently backport this. In our own infrastructure, the one from staging (or maybe it is master) is used. The same script is used to parse all older versions. But I think it is a backport candidate. Maybe add a Backport: tag and my Backport-Requested-By ? Thanks, Ian.