+2007-10-28 Jim Meyering <meyering@redhat.com>
+
+ README-hacking: Recommend running autoreconf -vi.
+ * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
+ so that we use just-built tools when they're available.
+ Suggestions from Ralf Wildenhues.
+
2007-10-28 Jim Meyering <meyering@redhat.com>
Make inter-release --version output more useful.
# It is necessary if you want to build targets usually of interest
# only to the maintainer.
-# Copyright (C) 2001, 2003, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2006-2007 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
ifneq (,$(_is-dist-target))
_curr-ver := $(shell build-aux/git-version-gen .version)
ifneq ($(_curr-ver),$(VERSION))
- $(info INFO: rerunning autoconf for new version string: $(_curr-ver))
- dummy := $(shell rm -rf autom4te.cache; $(AUTOCONF))
+ $(info INFO: running autoreconf for new version string: $(_curr-ver))
+ dummy := $(shell rm -rf autom4te.cache; PATH=`pwd`/tests:$$PATH; autoreconf -i)
endif
endif
endif
elif test -d .git \
&& v=`git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in
- # FIXME: remove this after v6.10.
- COREUTILS-[0-9]*) v=`echo "$v" | sed 's/^COREUTILS-//;s/_/./g'` ;;
v[0-9]*) ;;
*) (exit 1) ;;
esac
v=`echo "$v" |sed 's/^v//'`
+# Don't declare a version "dirty" merely because a time stamp has changed.
git-status > /dev/null 2>&1
+
dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
case "$dirty" in
'') ;;