From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id 3BD553858D28 for ; Fri, 29 Mar 2024 18:09:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3BD553858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3BD553858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::22d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711735760; cv=none; b=AMbs7jQ+ymbRjvdSvk5+rV70t4+hxeEUmljy5iecjbq5/BtsHb0KCqK1hMgW/y3FRUTWH9YYoszfIlVz2rq9pppZxdDeMS9Nu/NmZlfTn78kXyym/4BF6hP6m4QxfSWkBtwSfxsJj0GtP6T3tbKZjY9nr3OMlOTLgy2+Fep1Cq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711735760; c=relaxed/simple; bh=lbFTWUU4bqoSWWsDwD2Q/qkK0FG2mxGKyREuJT/YB6Q=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=mkhSOc4YCUW2szoTUiJEeL+MmqkiODqZiubPQzJZOzs2J16LN3kvXn2pkzTl0JZR5KVJnOEWhbZ40BlmNYXe+qqm0xgxLuhpcIYhg4LkNDSDSZdZ5Z+gdKSJslNbr0X8CK4nd9WvQI6txBexDi+tozGYKGRCCQnl+Tz9MbNsKDE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3bd4e6a7cb0so1274921b6e.3 for ; Fri, 29 Mar 2024 11:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711735757; x=1712340557; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bZPaerDATmNyfD49ZOMPhQd+0WmonLnnSma4TsIlTVs=; b=vLpqTdnHG3toHEZAWKPEhQ7O6UgF9GBJCy4F65OcfvrcbEqIkYqi6DaPL8p8P+f/M8 5iAQ8DQxndvRxsKCEy/EemAYa3VsBndEQbveWUThVpnyUvtcon4+4vmgZ1V1seI+DRR7 819OKL0UJc2eCQArtAY185GtIwwjbMMP3XuyZ6hMeFitOz1V/24gmOUbiQr9cT4zGuMN HEvtEd37kccIR2HzKC2sdVn/tJLp6cjO/O3yu3f59HCdKD0DTrYZ1yVnloD1jYkD44QH DqN0SQNfJGReNi+HyscSg6KRH0F5AwLJOsBu0eMRXtZmVrQvSzdTXL6SvjVDAwbidUFE tFnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711735757; x=1712340557; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bZPaerDATmNyfD49ZOMPhQd+0WmonLnnSma4TsIlTVs=; b=qnAHEW35TLXdpWrOIhZWC4+aGWo9ZpT3OmkZsLlaoFUtRhWhU5nHN6IH3+7TI8dgLo UXt6s5+tjtciC4vhNtM54Gl5Q5wycZtq07NBz+hPS0iAEcUylXa1w3KOq/sNkfjGRrwC mxRyefalVPtDgE/2e3hhS/g3CdhvhaEZHMCjoHcJ2x5fE69CKhs6GMjAw0fydprRF2oy U4AWTtp4duI8Ua5tmxDrbBaYPsotKSfLCDR0ciX+AfLu/igsYLX8QLs0DVZ5Y4dcxUFT 39aiHHxNGy7fTwbTWbuhJckhqe0P6Lx1aXVd4xyL8AqnU1ArVtV8zsjapy8XdIsTDbbw oJAw== X-Gm-Message-State: AOJu0Yz11ENl9tzH1KN5bWCGDQ47AGGFwM4ziFg/21Nubb11vO/c9EPT uSK+Nmkd+53nE2LAr4zhAJ/n8DzAtiqCN+S16j4XUHODvlOjXvqA9fKvpF8a6b0/VqXPOivgRSt xxGVLwA== X-Google-Smtp-Source: AGHT+IGB7OLJkFPIKdFncK/0UdvUtO5H5+zmQoQRydyUd9zcXFSP48mHihxKqEPhQlOxRmezP8EEjg== X-Received: by 2002:a05:6808:384e:b0:3c3:eee8:cc89 with SMTP id ej14-20020a056808384e00b003c3eee8cc89mr4153191oib.23.1711735756783; Fri, 29 Mar 2024 11:09:16 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id ck23-20020a056808251700b003c3cf84226fsm665007oib.15.2024.03.29.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 11:09:16 -0700 (PDT) From: Christophe Lyon To: gcc-patches@gcc.gnu.org, gaiusmod2@gmail.com Cc: Christophe Lyon Subject: [PATCH 2/2] modula2: Fix m2.install-info in gcc/m2/Make-lang.in Date: Fri, 29 Mar 2024 18:09:03 +0000 Message-Id: <20240329180903.3325518-2-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329180903.3325518-1-christophe.lyon@linaro.org> References: <20240329180903.3325518-1-christophe.lyon@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Fix a few typos: the generated filename is m2.info (not gm2.info, and gm2$(exeext) is a file not a directory (so test -d would always fail). 2024-03-29 Christophe Lyon gcc/m2/ * Make-lang.in (m2.install-info): Fix rule. --- gcc/m2/Make-lang.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in index 2d8a47a1b1f..e56240b4c44 100644 --- a/gcc/m2/Make-lang.in +++ b/gcc/m2/Make-lang.in @@ -400,20 +400,20 @@ m2.install-common: installdirs done m2.install-info: installdirs - if [ -d gm2$(exeext) ] ; then \ - if [ -f $(objdir)/doc/gm2.info ]; then \ - rm -f $(DESTDIR)$(infodir)/gm2.info*; \ - for f in $(objdir)/doc/gm2.info*; do \ + if [ -f gm2$(exeext) ] ; then \ + if [ -f $(objdir)/doc/m2.info ]; then \ + rm -f $(DESTDIR)$(infodir)/m2.info*; \ + for f in $(objdir)/doc/m2.info*; do \ realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ rm -f $(DESTDIR)$(infodir)/`basename $$realfile`; \ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/`basename $$realfile`; \ done; \ - chmod a-x $(DESTDIR)$(infodir)/gm2.info*; \ + chmod a-x $(DESTDIR)$(infodir)/m2.info*; \ else true; fi; \ else true; fi - -if [ -f gm2$(exeext) ] && [ -f $(DESTDIR)$(infodir)/gm2.info ]; then \ + -if [ -f gm2$(exeext) ] && [ -f $(DESTDIR)$(infodir)/m2.info ]; then \ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ - install-info --dir-file=$(infodir)/dir $(DESTDIR)$(infodir)/gm2.info; \ + install-info --dir-file=$(infodir)/dir $(DESTDIR)$(infodir)/m2.info; \ else true; fi; \ else true; fi -- 2.34.1