Skip to content

Commit

Permalink
Build setup fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed Jul 18, 2018
1 parent 3b4fcc1 commit 0eb1575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
2.7.0 (2018-07-18)
2.7.0 (2018-07-19)
------------------

New features:

* `ARGBASH_WRAP` works recursively - you can wrap wrapped scripts.
* Introduced new output - the strict POSIX shell output.

Bugfixes:

Expand Down
9 changes: 4 additions & 5 deletions doc/Makefile.pieces
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ AB_INIT = ../bin/argbash-init
# example exclusively in index.rst
INDEX_SCRIPT = script.sh
MINIMAL_INIT_TPL = $(RESOURCES)/examples/minimal-raw.m4
MINIMAL_INIT_CREATE = minimal.m4
MINIMAL_INIT_POST = $(RESOURCES)/examples/minimal.m4
MINIMAL_SCRIPT = $(RESOURCES)/examples/minimal.sh
SIMPLE = $(RESOURCES)/examples/simple.sh
Expand Down Expand Up @@ -47,9 +48,8 @@ endef

A_INIT_ARGS = --pos positional-arg --opt option --opt-bool print
$(STATICDIR)/minimal_init-create.txt: $(AB_INIT)
$(eval FLAGS := $(A_INIT_ARGS) minimal.m4)
$(eval FLAGS := $(A_INIT_ARGS) $(MINIMAL_INIT_CREATE))
$(CMD_OUT)
$(RM) minimal.m4

$(STATICDIR)/index_script-create.txt: $(AB_INIT) $(INDEX_SCRIPT)
$(eval FLAGS := $(A_INIT_ARGS) - | $(AB) -o $(INDEX_SCRIPT) -)
Expand All @@ -70,7 +70,7 @@ $(MINIMAL_INIT_TPL): $(AB_INIT)
$(AB_INIT) $(A_INIT_ARGS) $@

$(MINIMAL_INIT_POST): $(MINIMAL_INIT_TPL) $(PWD)/_static/minimal.patch
cat $(word 2,$^) | sed -e 's/@VERSION@/$(shell cat ../src/version)/' | patch -d $(dir $<) -o $(notdir $@) $(notdir $<)
cat $(word 2,$^) | sed -e 's/@VERSION@/$(shell cat ../src/version)/' | patch -d $(dir $@) -o $(notdir $@) $(notdir $<)

# We enable the comments-in mode for the minimal script, so they are can be observed in the documentation
$(MINIMAL_SCRIPT): $(MINIMAL_INIT_POST) $(AB)
Expand All @@ -79,7 +79,6 @@ $(MINIMAL_SCRIPT): $(MINIMAL_INIT_POST) $(AB)
$(STATICDIR)/minimal_argbash-create.txt: $(AB) $(MINIMAL_INIT_POST)
$(eval FLAGS := -o $(MINIMAL_SCRIPT) $(MINIMAL_INIT_POST))
$(CMD_OUT_LOCAL)
rm $(MINIMAL_SCRIPT)

$(STATICDIR)/minimal_init-output.txt: $(MINIMAL_SCRIPT)
$(eval FLAGS := --option value1 --print value0)
Expand Down Expand Up @@ -113,4 +112,4 @@ clean-pieces: clean-tmp
$(RM) $(PIECES)

clean-tmp:
$(RM) $(MINIMAL_SCRIPT) $(INDEX_SCRIPT) $(MINIMAL_INIT_POST)
$(RM) $(MINIMAL_SCRIPT) $(INDEX_SCRIPT) $(MINIMAL_INIT_CREATE)

0 comments on commit 0eb1575

Please sign in to comment.