]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix automatic version numbering in the Unix tarball.
authorSimon Tatham <anakin@pobox.com>
Mon, 7 Jul 2014 19:47:23 +0000 (19:47 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 7 Jul 2014 19:47:23 +0000 (19:47 +0000)
Manfred Schwarb points out that when I moved the autoconf machinery up
from the unix subdirectory to the top level, in r10141, I missed a
couple of lingering $(srcdir)/.. in the make rule for version.o, as a
result of which the automatic checking of the manifest wasn't doing
its thing and tools built from a standard .tar.gz were reporting as
'Unidentified build'.

[originally from svn r10201]
[r10141 == a947c49bec36957cb5d38e1dc2e22dc0e3465849]

Recipe

diff --git a/Recipe b/Recipe
index 94adddd026371efa3924a811a5f492642c25246f..a88dbc7b3db05c738f36f5137083601d087ad1c4 100644 (file)
--- a/Recipe
+++ b/Recipe
@@ -175,7 +175,7 @@ version.o: FORCE
 # backtick expression. We also force rebuilding via a -D option that
 # makes version.o include empty.h, which we construct ourselves and
 # touch whenever any source file is updated.
-!cflags am version $(VER) -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir)/..; md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/../version.def; else echo "$(VER)"; fi`
+!cflags am version $(VER) -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir); md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/version.def; else echo "$(VER)"; fi`
 !begin am
 BUILT_SOURCES = empty.h
 CLEANFILES = empty.h