Mercurial > mxe-octave
comparison Makefile.in @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | f38cc7e463d5 |
children | b90ee860006f |
comparison
equal
deleted
inserted
replaced
3479:b0314bcf3ead | 3480:13be64f9f16d |
---|---|
502 | 502 |
503 define newline | 503 define newline |
504 | 504 |
505 | 505 |
506 endef | 506 endef |
507 $(eval $(subst #,$(newline),$(shell \ | |
508 $(SED) -n \ | |
509 's/^.* id="\([A-Za-z0-9_+-]*\)-version">\([^<]*\)<.*$$/\1_VERSION := \2#/p' \ | |
510 '$(TOP_DIR)/index.html' \ | |
511 ))) | |
512 | 507 |
513 include $(patsubst %,$(TOP_DIR)/src/%.mk,$(ALL_BUILD_TOOLS)) | 508 include $(patsubst %,$(TOP_DIR)/src/%.mk,$(ALL_BUILD_TOOLS)) |
514 include $(patsubst %,$(TOP_DIR)/src/%.mk,$(PKGS)) | 509 include $(patsubst %,$(TOP_DIR)/src/%.mk,$(PKGS)) |
515 | 510 |
516 .PHONY: download | 511 .PHONY: download |
672 $(if $(filter $(2),$($(1)_IGNORE)), | 667 $(if $(filter $(2),$($(1)_IGNORE)), |
673 $(info IGNORED $(1) $(2)), | 668 $(info IGNORED $(1) $(2)), |
674 $(if $(filter $(2),$($(1)_VERSION)), | 669 $(if $(filter $(2),$($(1)_VERSION)), |
675 $(info . $(1) $(2)), | 670 $(info . $(1) $(2)), |
676 $(info NEW $(1) $($(1)_VERSION) --> $(2)) | 671 $(info NEW $(1) $($(1)_VERSION) --> $(2)) |
677 $(SED) -i 's/\( id="$(1)-version"\)>[^<]*/\1>$(2)/' '$(TOP_DIR)/index.html' | 672 $(SED) -i 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' '$(TOP_DIR)/src/$(1).mk' |
678 $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)' \ | 673 $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)' \ |
679 || { $(SED) -i 's/\( id="$(1)-version"\)>[^<]*/\1>$($(1)_VERSION)/' '$(TOP_DIR)/index.html'; \ | 674 || { $(SED) -i 's/^\([^ ]*_VERSION *:=\).*/\1 $($(1)_VERSION)/' '$(TOP_DIR)/src/$(1).mk'; \ |
680 exit 1; })), | 675 exit 1; })), |
681 $(error Unable to update version number of package $(1))) | 676 $(error Unable to update version number of package $(1))) |
682 | 677 |
683 endef | 678 endef |
684 update: | 679 update: |