From: Micah Cowan Date: Wed, 10 Oct 2007 03:50:49 +0000 (-0700) Subject: Automated merge with file:/home/micah/devel/wget/mainline X-Git-Tag: v1.13~516^2 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=b8f07eab3b3e65c7b759d76463392780a512c993;hp=fe63bb03f8243bf4a1c9a623ffdcac5b1dba3ff2 Automated merge with file:/home/micah/devel/wget/mainline --- diff --git a/.hgignore b/.hgignore index 9dd951df..3a6b01c6 100644 --- a/.hgignore +++ b/.hgignore @@ -23,6 +23,7 @@ src/wget src/tags src/TAGS src/libunittest.a +src/version.c doc/stamp-vti doc/wget.1 doc/wget.pod diff --git a/configure.ac b/configure.ac index 6a00b79c..33df20a2 100644 --- a/configure.ac +++ b/configure.ac @@ -29,13 +29,10 @@ dnl Process this file with autoconf to produce a configure script. dnl AC_INIT([wget], - [m4_normalize(esyscmd([sed -e 's/^.*"\(.*\)";$/\1/' src/version.c]))], + [1.12-devel], [bug-wget@gnu.org]) AC_PREREQ(2.61) -# Make configure depend on the VERSION file, since it's used in AC_INIT -AC_SUBST([CONFIGURE_DEPENDENCIES], ['$(top_srcdir)/src/version.c']) - dnl dnl What version of Wget are we building? dnl diff --git a/src/Makefile.am b/src/Makefile.am index f0f2214c..dcc19c81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -47,6 +47,17 @@ wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \ EXTRA_wget_SOURCES = mswindows.c LDADD = $(ALLOCA) $(LIBOBJS) +# version.c's not really _phony_, but it does need to be generated each run. +.PHONY: version.c +version.c: hg-id + printf '%s' 'const char *version_string = "@VERSION@' > $@ + -HG_ID=$$(cat hg-id); [ "$$HG_ID" ] && printf '%s' " ($${HG_ID})" >> $@ + printf '%s\n' '";' >> $@ + +.INTERMEDIATE: hg-id +hg-id: + -( hg id | cut -f 1 -d ' ' ) 2>/dev/null > $@ + check_LIBRARIES = libunittest.a libunittest_a_SOURCES = $(wget_SOURCES) test.c test.h libunittest_a_CPPFLAGS = -DTESTING diff --git a/src/version.c b/src/version.c deleted file mode 100644 index 87fdbae3..00000000 --- a/src/version.c +++ /dev/null @@ -1 +0,0 @@ -char *version_string = "1.10+devel";