Skip to content

Commit 1aff80b

Browse files
committed
Merge branch 'feature/fix_rc1_issues' into develop
2 parents 59698d6 + b04360f commit 1aff80b

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

bash_completion/daps

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ _daps() {
8686
*)
8787
# the global options go here
8888
case "$prev" in
89-
--builddir|--fb_styleroot|--styleroot)
89+
--builddir|--fb_styleroot|--styleroot|--adocimgdir)
9090
_filedir -d
9191
return 0
9292
;;

bin/daps.in

+4
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,11 @@ recover_cmdl_values
15821582
# run help if requested
15831583
#
15841584
if [[ "${SCMD_ARGS[@]}" = "-h" ]]; then
1585+
# source additional functions
1586+
#
1587+
[[ -f $LIB_DIR/$SUBCMD ]] && source "$LIB_DIR/$SUBCMD"
15851588
${SUBCOMMANDS[$SUBCMD]} "$SUBCMD" "${SCMD_ARGS[@]}"
1589+
exit 0
15861590
fi
15871591

15881592
# Sample call for early commands

make/adoc2xml.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ifneq "$(strip $(ADOC_IMG_DIR))" ""
5656
FIG := $(subst $(ADOC_IMG_DIR)/,$(FIG_DIR)/,$(wildcard $(ADOC_IMG_DIR)/*.fig))
5757
JPG_DIR := $(IDIR)/jpg
5858
JPG := $(subst $(ADOC_IMG_DIR)/,$(JPG_DIR)/,$(wildcard $(ADOC_IMG_DIR)/*.jpg))
59-
ODG_DIR := $(IDIR)/pdf
59+
ODG_DIR := $(IDIR)/odg
6060
ODG := $(subst $(ADOC_IMG_DIR)/,$(ODG_DIR)/,$(wildcard $(ADOC_IMG_DIR)/*.odg))
6161
PDF_DIR := $(IDIR)/pdf
6262
PDF := $(subst $(ADOC_IMG_DIR)/,$(PDF_DIR)/,$(wildcard $(ADOC_IMG_DIR)/*.pdf))
@@ -101,7 +101,7 @@ $(FIG_DIR)/%.fig: $(ADOC_IMG_DIR)/%.fig | $(FIG_DIR)
101101
$(JPG_DIR)/%.jpg: $(ADOC_IMG_DIR)/%.jpg | $(JPG_DIR)
102102
(cd $(@D); ln -sf $<)
103103

104-
$(ODG_DIR)/%.pdf: $(ADOC_IMG_DIR)/%.odg | $(ODG_DIR)
104+
$(ODG_DIR)/%.odg: $(ADOC_IMG_DIR)/%.odg | $(ODG_DIR)
105105
(cd $(@D); ln -sf $<)
106106

107107
$(PDF_DIR)/%.pdf: $(ADOC_IMG_DIR)/%.pdf | $(PDF_DIR)

make/images.mk

+6-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,12 @@ GEN_IMAGES := $(addprefix $(IMG_GENDIR)/gen/pdf/,$(GEN_PDF)) $(addprefix $
216216
# creation via pattern targets is not possible. We use an empty target instead
217217
# and make it a dependenc of $(GEN_IMAGES) (ONLINE_IMAGES) (COLOR_IMAGES)
218218
#
219-
$(GEN_IMAGES) (ONLINE_IMAGES) (COLOR_IMAGES): $(IMG_GENDIR)/gen/.odg_gen
219+
220+
# Only run the .odg_gen target if there are ODG files!!
221+
#
222+
ifneq "$(strip $(USED_ODG))" ""
223+
$(GEN_IMAGES) (ONLINE_IMAGES) (COLOR_IMAGES): $(IMG_GENDIR)/gen/.odg_gen
224+
endif
220225

221226
$(IMG_GENDIR)/gen/.odg_gen: $(USED_ODG)
222227
ifeq "$(VERBOSITY)" "2"

0 commit comments

Comments
 (0)