Mercurial > octave
comparison scripts/module.mk @ 21281:b76955e83fe4
maint: Run all build shell scripts with SHELL as command interpreter
* Makefile.am, common.mk, doc/module.mk, libinterp/corefcn/module.mk,
libinterp/module.mk, libinterp/octave-value/module.mk,
libinterp/operators/module.mk, liboctave/module.mk, scripts/module.mk,
test/module.mk: Use $(SHELL) variable as command interpreter for all build
helper shell scripts.
* config-images.sh, config-module.sh, config-ops.sh: Use ${SHELL}
environment variable as command interpreter for move-if-change helper
script.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 16 Feb 2016 23:08:31 -0800 |
parents | 0ebb8e26ebbc |
children | 1309edb344e1 |
comparison
equal
deleted
inserted
replaced
21280:ebdf74c15722 | 21281:b76955e83fe4 |
---|---|
88 endif | 88 endif |
89 | 89 |
90 define PKG_ADD_FILE_TEMPLATE | 90 define PKG_ADD_FILE_TEMPLATE |
91 $(1)/PKG_ADD: $$($(2)_FCN_FILES) $$($(2)_GEN_FCN_FILES) $(1)/$(octave_dirstamp) scripts/mk-pkg-add | 91 $(1)/PKG_ADD: $$($(2)_FCN_FILES) $$($(2)_GEN_FCN_FILES) $(1)/$(octave_dirstamp) scripts/mk-pkg-add |
92 $$(AM_V_GEN)rm -f $$@-t $$@ && \ | 92 $$(AM_V_GEN)rm -f $$@-t $$@ && \ |
93 $$(srcdir)/scripts/mk-pkg-add $(srcdir) $$($(2)_FCN_FILES) -- $$($(2)_GEN_FCN_FILES) > $$@-t && \ | 93 $$(SHELL) $$(srcdir)/scripts/mk-pkg-add $(srcdir) $$($(2)_FCN_FILES) -- $$($(2)_GEN_FCN_FILES) > $$@-t && \ |
94 mv $$@-t $$@ | 94 mv $$@-t $$@ |
95 endef | 95 endef |
96 | 96 |
97 $(foreach d, $(FCN_FILE_DIRS), $(eval $(call PKG_ADD_FILE_TEMPLATE, $(d),$(subst /,_,$(subst -,_,$(d)))))) | 97 $(foreach d, $(FCN_FILE_DIRS), $(eval $(call PKG_ADD_FILE_TEMPLATE, $(d),$(subst /,_,$(subst -,_,$(d)))))) |
98 | 98 |
115 cp $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \ | 115 cp $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \ |
116 touch -r $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \ | 116 touch -r $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \ |
117 fi && \ | 117 fi && \ |
118 $(PERL) $(srcdir)/scripts/mkdoc.pl "$(srcdir)" $(FCN_FILES) -- $(GEN_FCN_FILES) > $@-t && \ | 118 $(PERL) $(srcdir)/scripts/mkdoc.pl "$(srcdir)" $(FCN_FILES) -- $(GEN_FCN_FILES) > $@-t && \ |
119 mv $@-t $@ && \ | 119 mv $@-t $@ && \ |
120 $(top_srcdir)/build-aux/move-if-change $@ scripts/DOCSTRINGS && \ | 120 $(SHELL) $(top_srcdir)/build-aux/move-if-change $@ scripts/DOCSTRINGS && \ |
121 touch $@ | 121 touch $@ |
122 | 122 |
123 OCTAVE_INTERPRETER_TARGETS += \ | 123 OCTAVE_INTERPRETER_TARGETS += \ |
124 scripts/.DOCSTRINGS | 124 scripts/.DOCSTRINGS |
125 | 125 |