From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C5FEB1581B9 for ; Thu, 02 Oct 2025 14:28:19 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id AF8F1340F64 for ; Thu, 02 Oct 2025 14:28:19 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id ACD7F1103CB; Thu, 02 Oct 2025 14:28:18 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A32D61103CB for ; Thu, 02 Oct 2025 14:28:18 +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 642E9340F62 for ; Thu, 02 Oct 2025 14:28:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C537239B8 for ; Thu, 02 Oct 2025 14:28:16 +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: <1759344247.c8bef70af0223ec814c9a16fec0a1d8895c71336.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: c8bef70af0223ec814c9a16fec0a1d8895c71336 X-VCS-Branch: master Date: Thu, 02 Oct 2025 14:28:16 +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: 8f6ebe12-be46-423d-a687-3afcb3eac7ba X-Archives-Hash: d2baf3e99feef2c10a13a2c8831b3858 commit: c8bef70af0223ec814c9a16fec0a1d8895c71336 Author: Ulrich Müller gentoo org> AuthorDate: Wed Oct 1 18:44:07 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Oct 1 18:44:07 2025 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=c8bef70a Makefile: Replace mk4ht with make4ht Use the modern interface recommended by upstream. As a welcome side-effect, postprocessing with sed is no longer necessary. Signed-off-by: Ulrich Müller gentoo.org> Makefile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 422dac9..1850adf 100644 --- a/Makefile +++ b/Makefile @@ -50,21 +50,10 @@ pms.dvi: $(LATEXFILES) pms.bbl $(COMMITINFO) pms.html: $(LATEXFILES) pms.bbl $(COMMITINFO) set -e; sum=''; \ while true; do \ - mk4ht xhlatex pms 'xhtml,fn-in,charset=utf-8' ' -cunihtf -utf8'; \ + make4ht -f xhtml pms fn-in; \ oldsum=$${sum}; sum=$$(cksum $@); \ test "$${sum}" != "$${oldsum}" || break; \ done - @# replace ligatures by their component letters - LC_ALL=C sed -i "$$(printf 's/\\xef\\xac\\x8%s/%s/g;' \ - 0 ff 1 fi 2 fl 3 ffi 4 ffl)" $@ - @# remove redundant span elements - LC_ALL=C sed -Ei ':x;/]*)?$$/{N;bx;};'\ - ':y;s,(]*>)([^<]*)\1,\1\2,;ty' $@ - @# guessable names for sections - LC_ALL=C sed -Ei \ - -e 's/("#?)x1-[0-9]*00+([1-9][0-9]?")/\1chapter-\2/g' \ - -e 's/("#?)x1-[0-9]*00+([1-9][0-9]?(\.[0-9]+)+")/\1section-\2/g' \ - -e 's/("#?)x1-[0-9]*00+([A-Z](\.[0-9]+)*")/\1appendix-\2/g' $@ pms.bbl: pms.bib $(LATEXFILES) $(COMMITINFO) $(aux-clean)