define stage1_module_vars
ifneq "$($(1)-SVNPATH)" ""
$(1)-SVNPATH := $(strip $($(1)-SVNPATH))
define stage1_module_vars
ifneq "$($(1)-SVNPATH)" ""
$(1)-SVNPATH := $(strip $($(1)-SVNPATH))
$(1).gitrepo := $$(firstword $$(subst @, ,$$($(1)-GITPATH)))
$(1).gittag := $$(word 2,$$(subst @, ,$$($(1)-GITPATH)))
$(1).gittag := $$(if $$($(1).gittag),$$($(1).gittag),master)
$(1).gitrepo := $$(firstword $$(subst @, ,$$($(1)-GITPATH)))
$(1).gittag := $$(word 2,$$(subst @, ,$$($(1)-GITPATH)))
$(1).gittag := $$(if $$($(1).gittag),$$($(1).gittag),master)
$(if $($(1).has-date),echo "%define date $(shell date +%Y.%m.%d)" >> $($(1).specpath),)
$(if $($(1)-SPECVARS), \
$(foreach line,$($(1)-SPECVARS), \
$(if $($(1).has-date),echo "%define date $(shell date +%Y.%m.%d)" >> $($(1).specpath),)
$(if $($(1)-SPECVARS), \
$(foreach line,$($(1)-SPECVARS), \