summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-05-31 17:48:09 +0200
committerSimon Josefsson <simon@josefsson.org>2010-05-31 20:43:54 +0200
commit2d3a2694a7eed6be247da56025727e1759bd3b7f (patch)
treed208cc63b52b284ced84523d3913b9efae85ee10
parentef11b756916c9961d63b373b06ec229841cc07a9 (diff)
downloadgnutls-2d3a2694a7eed6be247da56025727e1759bd3b7f.tar.gz
Update gnulib files.
-rw-r--r--GNUmakefile6
-rw-r--r--maint.mk5
2 files changed, 7 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index daba47ae2d..97fea36538 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -60,8 +60,10 @@ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
$(filter maintainer-% dist% alpha beta major,$(MAKECMDGOALS)))
_is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS)))
ifneq (,$(_is-dist-target)$(_is-install-target))
- _curr-ver := $(shell cd $(srcdir) \
- && $(_build-aux)/git-version-gen .tarball-version)
+ _curr-ver := $(shell cd $(srcdir) \
+ && $(_build-aux)/git-version-gen \
+ .tarball-version \
+ $(git-version-gen-tag-sed-script))
ifneq ($(_curr-ver),$(VERSION))
ifeq ($(_curr-ver),UNKNOWN)
$(info WARNING: unable to verify if $(VERSION) is the correct version)
diff --git a/maint.mk b/maint.mk
index 1bdd0d5ff5..e526e0fec6 100644
--- a/maint.mk
+++ b/maint.mk
@@ -689,7 +689,8 @@ define def_sym_regex
perl -lne '$(gl_extract_significant_defines_)' $$f; \
done; \
) | sort -u \
- | sed 's/^/^ *# *define /;s/$$/\\>/'
+ | grep -Ev '^ATTRIBUTE_NORETURN' \
+ | sed 's/^/^ *# *(define|undef) */;s/$$/\\>/'
endef
# Don't define macros that we already get from gnulib header files.
@@ -698,7 +699,7 @@ sc_prohibit_always-defined_macros:
case $$(echo all: | grep -l -f - Makefile) in Makefile);; *) \
echo '$(ME): skipping $@: you lack GNU grep' 1>&2; exit 0;; \
esac; \
- $(def_sym_regex) | grep -f - $$($(VC_LIST_EXCEPT)) \
+ $(def_sym_regex) | grep -E -f - $$($(VC_LIST_EXCEPT)) \
&& { echo '$(ME): define the above via some gnulib .h file' \
1>&2; exit 1; } || :; \
fi