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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5525B1581D3 for ; Sun, 2 Jun 2024 09:57:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7624DE2AFD; Sun, 2 Jun 2024 09:57:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A869E2AFE for ; Sun, 2 Jun 2024 09:57:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 610A234302E for ; Sun, 2 Jun 2024 09:57:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC3851C11 for ; Sun, 2 Jun 2024 09:57:34 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1715622253.bd3a35db46006e2c45fee66e7759cfc327ebf187.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-9 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-cheatsheet.tex pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: bd3a35db46006e2c45fee66e7759cfc327ebf187 X-VCS-Branch: eapi-9 Date: Sun, 2 Jun 2024 09:57:34 +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: e01c8932-1ced-4533-94fa-ef99a8e69d14 X-Archives-Hash: 23895ac280106059801b3219af9c69e1 commit: bd3a35db46006e2c45fee66e7759cfc327ebf187 Author: Ulrich Müller gentoo org> AuthorDate: Sun May 12 18:15:24 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon May 13 17:44:13 2024 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=bd3a35db pms.cls, eapi-cheatsheet.tex: Avoid conditional code in \date Signed-off-by: Ulrich Müller gentoo.org> eapi-cheatsheet.tex | 9 ++++----- pms.cls | 13 ++++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/eapi-cheatsheet.tex b/eapi-cheatsheet.tex index fc75aec..2e2b757 100644 --- a/eapi-cheatsheet.tex +++ b/eapi-cheatsheet.tex @@ -33,11 +33,10 @@ Ulrich Müller \\ \href{mailto:ulm@gentoo.org}{ulm@gentoo.org} } -\date{% - Version \version \\ - \ifthenelse{\equal{\gitCommitterDate}{(None)}} - {Generated on: \today} - {\printdate{\gitCommitterDate}}% +\ifthenelse{\equal{\gitCommitterDate}{(None)}}{% + \date{Version \version \\ Generated on: \today} +}{% + \date{Version \version \\ \printdate{\gitCommitterDate}} } \CutLine*{1} \CutLine*{3} diff --git a/pms.cls b/pms.cls index d1a85fa..d9907b7 100644 --- a/pms.cls +++ b/pms.cls @@ -175,13 +175,12 @@ % Reads the last commit date from the Git repository and even succeeds % when none is available -\date{% - \ifthenelse{\equal{\gitCommitterDate}{(None)}} - {Generated on: \today} - {\printdate{\gitCommitterDate}}% -} -\newcommand{\commitinfo}{% - \ifthenelse{\equal{\gitCommitterDate}{(None)}}{}{% +\ifthenelse{\equal{\gitCommitterDate}{(None)}}{% + \date{Generated on: \today} + \newcommand{\commitinfo}{} +}{% + \date{\printdate{\gitCommitterDate}} + \newcommand{\commitinfo}{% This version corresponds to commit \gitAbbrevHash \ifthenelse{\equal{\gitBranch}{\detokenize{master}}}{} { on branch \gitBranch}% 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C509D158064 for ; Mon, 13 May 2024 18:00:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16B642BC013; Mon, 13 May 2024 18:00:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1BAC2BC013 for ; Mon, 13 May 2024 18:00:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31F6134068A for ; Mon, 13 May 2024 18:00:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8577D1A35 for ; Mon, 13 May 2024 18:00:04 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1715622253.bd3a35db46006e2c45fee66e7759cfc327ebf187.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-cheatsheet.tex pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: bd3a35db46006e2c45fee66e7759cfc327ebf187 X-VCS-Branch: master Date: Mon, 13 May 2024 18:00:04 +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: b672a14f-01a6-41d4-a297-93be13084b07 X-Archives-Hash: 549fe1ca22cde0ee4232b07b747f3e2c Message-ID: <20240513180004.dzW8t0AaIcCX4LsTQvlJPMvuqG-XaDN1hUeSlk09zbY@z> commit: bd3a35db46006e2c45fee66e7759cfc327ebf187 Author: Ulrich Müller gentoo org> AuthorDate: Sun May 12 18:15:24 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon May 13 17:44:13 2024 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=bd3a35db pms.cls, eapi-cheatsheet.tex: Avoid conditional code in \date Signed-off-by: Ulrich Müller gentoo.org> eapi-cheatsheet.tex | 9 ++++----- pms.cls | 13 ++++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/eapi-cheatsheet.tex b/eapi-cheatsheet.tex index fc75aec..2e2b757 100644 --- a/eapi-cheatsheet.tex +++ b/eapi-cheatsheet.tex @@ -33,11 +33,10 @@ Ulrich Müller \\ \href{mailto:ulm@gentoo.org}{ulm@gentoo.org} } -\date{% - Version \version \\ - \ifthenelse{\equal{\gitCommitterDate}{(None)}} - {Generated on: \today} - {\printdate{\gitCommitterDate}}% +\ifthenelse{\equal{\gitCommitterDate}{(None)}}{% + \date{Version \version \\ Generated on: \today} +}{% + \date{Version \version \\ \printdate{\gitCommitterDate}} } \CutLine*{1} \CutLine*{3} diff --git a/pms.cls b/pms.cls index d1a85fa..d9907b7 100644 --- a/pms.cls +++ b/pms.cls @@ -175,13 +175,12 @@ % Reads the last commit date from the Git repository and even succeeds % when none is available -\date{% - \ifthenelse{\equal{\gitCommitterDate}{(None)}} - {Generated on: \today} - {\printdate{\gitCommitterDate}}% -} -\newcommand{\commitinfo}{% - \ifthenelse{\equal{\gitCommitterDate}{(None)}}{}{% +\ifthenelse{\equal{\gitCommitterDate}{(None)}}{% + \date{Generated on: \today} + \newcommand{\commitinfo}{} +}{% + \date{\printdate{\gitCommitterDate}} + \newcommand{\commitinfo}{% This version corresponds to commit \gitAbbrevHash \ifthenelse{\equal{\gitBranch}{\detokenize{master}}}{} { on branch \gitBranch}%