]> sjero.net Git - wget/commitdiff
Use -r . rather than -r tip.
authorMicah Cowan <micah@cowan.name>
Wed, 17 Oct 2007 01:18:40 +0000 (18:18 -0700)
committerMicah Cowan <micah@cowan.name>
Wed, 17 Oct 2007 01:18:40 +0000 (18:18 -0700)
src/Makefile.am

index f75d7460f024cd47436dac6b7ece3936c3409034..26da74d2b64a77ef0ad2023f5cc087ab1aab04f4 100644 (file)
@@ -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