From d48ea51666631896484ba57d5f4900d4e9045e84 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Tue, 16 Oct 2007 18:18:40 -0700 Subject: [PATCH] Use -r . rather than -r tip. --- src/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index f75d7460..26da74d2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -48,10 +48,10 @@ EXTRA_wget_SOURCES = mswindows.c LDADD = $(ALLOCA) $(LIBOBJS) ../lib/libgnu.a AM_CPPFLAGS = -I$(top_srcdir)/lib -version.c: $(wget_SOURCES) $(LDADD) - printf '%s' 'const char *version_string = "@VERSION@' > $@ - -hg log -r tip --template=' ({node|short})' >> $@ - printf '%s\n' '";' >> $@ +version.c: $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am + echo 'const char *version_string = "@VERSION@"' > $@ + -hg log -r . --template='" ({node|short})"\n' 2>/dev/null >> $@ + echo ';' >> $@ check_LIBRARIES = libunittest.a libunittest_a_SOURCES = $(wget_SOURCES) test.c test.h -- 2.39.2