]> www.ginac.de Git - ginac.git/commitdiff
Revert "Work around Tex Live 2012 versus doxygen problem."
authorRichard Kreckel <kreckel@ginac.de>
Sat, 11 Feb 2023 17:51:08 +0000 (18:51 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 11 Feb 2023 21:23:07 +0000 (22:23 +0100)
The bug seems to have disappeared many years ago, at least since
Debian 9 Stretch (ca. 2017).

This reverts commit af3801eb5e40bb3717bf207470252172a0af2559.

doc/CMakeLists.txt
doc/reference/Makefile.am
scripts/fixupind.py [deleted file]

index 5f17dc27344a59b146de7b8ba6d855934964cfde..e38e2a198ab2a5920ee78d57223fdd97112e8734 100644 (file)
@@ -35,7 +35,6 @@ macro(pdflatex_process texfile)
        set(_idx ${_dirname}/${_basename}.idx)
        set(_ind ${_dirname}/${_basename}.ind)
        set(_pdf ${_dirname}/${_basename}.pdf)
-       set(_fixupind ${CMAKE_SOURCE_DIR}/scripts/fixupind.py)
        add_custom_command(
                OUTPUT ${_idx}
                COMMAND ${PDFLATEX_COMPILER} ${texfile}
@@ -45,7 +44,6 @@ macro(pdflatex_process texfile)
        add_custom_command(
                OUTPUT ${_ind}
                COMMAND ${MAKEINDEX_COMPILER} ${_idx}
-               COMMAND ${PYTHON} ${_fixupind} ${_idx}
                WORKING_DIRECTORY ${_dirname}
                DEPENDS ${texfile} ${_idx}
                COMMENT "MAKEINDEX ${_basename}.idx")
index 445eeb729a4535d2a8e74836435326d89d6189dc..5ad8a0006616e8ec1b1d9536fd7a226f6e638d8f 100644 (file)
@@ -53,7 +53,6 @@ pdflatex/reference.pdf: pdflatex/reference.tex
                cd pdflatex; \
          ${PDFLATEX} reference.tex ;\
          ${MAKEINDEX} reference.idx ;\
-         ${PYTHON} $(abs_top_srcdir)/scripts/fixupind.py reference.ind; \
          ${PDFLATEX} reference.tex
 
 reference.dvi: latex latex/reference.dvi
diff --git a/scripts/fixupind.py b/scripts/fixupind.py
deleted file mode 100644 (file)
index 0e781c0..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-
-# encoding: utf-8
-# TeX Live 2012 seems to dislike files produces by doxygen (1.8.x.y)
-# In particular, makeindex(1) program creates invalid index entries like
-# \hyperpage{NNN_}
-# (note the trailing underscore in the page number). This breaks automatic
-# builds and is very annoying. Hence this script. It replaces (broken)
-# \hyperpage{NNN_} with \hyperpage{NNN}.
-# Note: this is an ugly work around, a proper fix is welcome.
-import sys, os, re
-
-def fixupind(fname):
-       """ Fix \\hyperpage{NNN_} entries in the ind file @var{fname} """
-       tmpout = fname + '.tmp'
-       inp = open(fname)
-       out = open(tmpout, 'wt')
-       rx = re.compile('(hyperpage)[{]([0-9]+)[_][}]')
-       for line in inp:
-               out.write(re.sub(rx, '\\1{\\2}', line))
-       out.flush()
-       out.close()
-       inp.close()
-       os.rename(tmpout, fname)
-
-if __name__ == '__main__':
-       if len(sys.argv) <= 1:
-               sys.exit(1)
-       fixupind(sys.argv[1])
-       sys.exit(0)
-