From: Lady Date: Tue, 16 Jan 2024 01:01:57 +0000 (-0500) Subject: Get rid of weird superfluous sed in i·d fallback X-Git-Tag: 0.3.0~6 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/c430638b245e4ff141c7b6c69d64f87d4d163e9f?hp=630f5bf06a645dbaad5f05a50526328fafad87ca Get rid of weird superfluous sed in i·d fallback --- diff --git a/GNUmakefile b/GNUmakefile index 085b4c2..be1cf1a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -234,7 +234,7 @@ override assetfiles := $(filter-out $(xmlfiles) $(plaintextfiles),$(sourcefiles) override typeoffile = $(patsubst $(foreach file,$1,$(file)?type=%),%,$(filter $(foreach file,$1,$(file)?type=%),$(types))) # (callable) Get the identifier for the given transform. -override id = $(or $(shell $(XMLLINT) --xpath '/*/*[local-name()="id" and namespace-uri()="urn:fdc:ladys.computer:20231231:Shu1She4"]/text()[1]' $1),$(basename $(notdir $1)) | $(SED)) +override id = $(or $(shell $(XMLLINT) --xpath '/*/*[local-name()="id" and namespace-uri()="urn:fdc:ladys.computer:20231231:Shu1She4"]/text()[1]' $1),$(basename $(notdir $1))) # (callable) Get the local path for the given source file. override sourcepath = $(firstword $(foreach directory,$(SRCDIR),$(if $(filter $(directory)/%,$1),$(patsubst $(directory)/%,%,$1),))) diff --git a/README.markdown b/README.markdown index 89dfd2e..8e56f29 100644 --- a/README.markdown +++ b/README.markdown @@ -382,7 +382,7 @@ In addition to being called with the transform result, each of these modes will additionally be called with a `` element corresponding to each transform. If a transform has a `<书社:id>` top‐level element whose value is an - i·r·i, its `` element will have a corresponding + i·r·i, its `` element will have a corresponding `@书社:id` attribute. This mechanism can be used to allow transforms to insert content without matching any elements in the result; for example, the