Changeset 8ba840f


Ignore:
Timestamp:
01/15/2024 01:47:38 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
0632116, d5fda0b
Parents:
56eed6c
Message:

Makefile: Unify two sed for removing bogus xmlns:xlink, and link to upstream bug report

Nasty bug :(.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r56eed6c r8ba840f  
    3636endif
    3737
     38# https://github.com/docbook/xslt10-stylesheets/issues/239
     39SED_XMLNS_XLINK = sed -i 's/xmlns:xlink.*xlink"//'
     40
    3841book: validate profile-html
    3942        @echo "Generating chunked XHTML files at $(BASEDIR)/ ..."
     
    4952        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    5053        $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
    51         $(Q)sed -i 's/xmlns:xlink.*xlink"//' $(BASEDIR)/longindex.html
     54        $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/longindex.html
    5255
    5356        $(Q)mkdir -p $(BASEDIR)/images
     
    102105#                $(RENDERTMP)/lfs-html2.xml
    103106
    104         $(Q)sed 's/xmlns:xlink.*xlink"//' -i $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     107        $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    105108        @echo "Running Tidy..."
    106109        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
Note: See TracChangeset for help on using the changeset viewer.