From: Harlan Stenn Date: Sat, 10 Nov 2001 18:46:34 +0000 (-0500) Subject: Handle the version stuff even when building completely outside X-Git-Tag: NTP_4_1_0B_RC1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71bca34bf486a0430e217d6c297c91e0ffcbf90a;p=thirdparty%2Fntp.git Handle the version stuff even when building completely outside the srcdir. bk: 3bed760atsxo25kD7qStXtTas1QsvQ --- diff --git a/Makefile.am b/Makefile.am index e2af637535..e9f58566bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -63,10 +63,16 @@ BUILT_SOURCES = .warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/COPYRIGHT: html/copyright.htm ( echo "This file is automatically generated from html/copyright.htm" ; lynx -dump $(srcdir)/html/copyright.htm ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT +# HMS: The next bit is still suboptimal. If bk is present but this NTP +# repo is not a bk repo, we'll get an error message from the prs command. +# Unfortunately, I haven't found the necessary magic to redirect this error +# output to /dev/null under ancient/unique shells like the one Ultrix uses. +# We'll also get an error of srcdir or version is unwritable. $(srcdir)/version: FRC.version -(bk version) >/dev/null 2>&1 && \ + cd $(srcdir) && \ x=`bk -R prs -hr+ -nd:I: ChangeSet` && \ - case "$$x" in '') ;; *) echo $$x > $(srcdir)/version ;; esac + case "$$x" in '') ;; *) echo $$x > version ;; esac dist-hook: @find $(distdir) -type d -name CVS -print | xargs rm -rf