From 03fd7cf93d2cca0c2e57a0d274f7933d57da628c Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Wed, 21 Aug 2024 01:10:07 +0100 Subject: [PATCH] Remove no longer needed parts.cmake --- src/doc/parts.cmake | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/doc/parts.cmake diff --git a/src/doc/parts.cmake b/src/doc/parts.cmake deleted file mode 100644 index c305743d..00000000 --- a/src/doc/parts.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# -# programmers.cmake - create parts.texi from parts.txt -# Copyright (C) 2022 Marius Greuel -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# - -file(STRINGS ${COMMENTS_FILE} COMMENTS_CONTENTS) - -file(STRINGS ${TXT_FILE} TXT_CONTENTS REGEX "=") - -set(TEXI_CONTENTS "") -foreach(TXT_LINE IN LISTS TXT_CONTENTS) - string(REGEX REPLACE "^[ \t]*([^ \t]+)[ \t]*=[ \t]*(.*)$" "@item @code{\\1} @tab \\2" TEXI_LINE "${TXT_LINE}") - - foreach(COMMENTS_LINE IN LISTS COMMENTS_CONTENTS) - string(REGEX MATCH "^([^ \t]*)(.*)$" DUMMY "${COMMENTS_LINE}") - set(PART_REGEX "${CMAKE_MATCH_1}") - set(COMMENT "${CMAKE_MATCH_2}") - string(REGEX REPLACE "(${PART_REGEX})" "\\1${COMMENT}" TEXI_LINE "${TEXI_LINE}") - endforeach() - - set(TEXI_CONTENTS "${TEXI_CONTENTS}${TEXI_LINE}\n") -endforeach() - -file(WRITE ${TEXI_FILE} "${TEXI_CONTENTS}")