Skip to content

Commit

Permalink
Fixed srcfile listing for asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fsundermeyer committed Mar 7, 2024
1 parent 7a9820e commit 8ba0243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libexec/get_adoc_includes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ includes=$(basename "$main")

function include_grep {
local f
f=$(grep -E '^include::' $@ 2>/dev/null | sed 's/.*::\.\/\([^\[]*\).*/\1/g' 2>/dev/null)
# f=$(grep -E '^include::' $@ 2>/dev/null | sed 's/.*::\.\/\([^\[]*\).*/\1/g' 2>/dev/null)
f=$(grep -E '^include::' $@ 2>/dev/null | sed 's/.*::\([^\[]*\).*/\1/g' 2>/dev/null)

if [[ -n $f ]]; then
includes+=" $f"
include_grep $f
Expand Down
2 changes: 1 addition & 1 deletion make/adoc2xml.mk
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ endif
#

ADOC_DOCINFO := $(addsuffix -docinfo.xml,$(basename $(ADOC_MAIN)))
ADOC_SRCFILES := $(wildcard $(addprefix $(ADOC_SRC_DIR)/,$(shell $(LIBEXEC_DIR)/get_adoc_includes.sh $(ADOC_MAIN)))) $(wildcard $(ADOC_DOCINFO))
ADOC_SRCFILES := $(realpath $(wildcard $(addprefix $(ADOC_SRC_DIR)/,$(shell $(LIBEXEC_DIR)/get_adoc_includes.sh $(ADOC_MAIN)))) $(wildcard $(ADOC_DOCINFO)))

all: $(MAIN)

Expand Down

0 comments on commit 8ba0243

Please sign in to comment.