]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
wiggles
authorHarlan Stenn <stenn@ntp.org>
Thu, 29 Dec 2005 06:38:14 +0000 (01:38 -0500)
committerHarlan Stenn <stenn@ntp.org>
Thu, 29 Dec 2005 06:38:14 +0000 (01:38 -0500)
bk: 43b38456QkzURfY6lqdH0cs4LN6VvA

Makefile.am
bootstrap
packageinfo.sh [new file with mode: 0644]
version.m4 [deleted file]

index 4c120472efc6897ddcd9eb0297d47e63065d4c94..9606044016582201bb963dfc79415bd98b964967 100644 (file)
@@ -84,7 +84,22 @@ ETAGS_ARGS = Makefile.am configure.ac
 # DIST_HOOK_DIRS = conf html scripts ports
 
 # HMS: Keep .gcc-warning first, as that way it gets printed first.
-BUILT_SOURCES = .gcc-warning
+BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version
+
+$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
+       ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(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 if 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` && \
+           y=`cat version 2>/dev/null` || true && \
+           case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
 
 dist-hook:
        @find $(distdir) -type d -name CVS -print | xargs rm -rf
index 40ace8481a513a40a1bd0b3106517cffefd0e886..8f7d9f36d7f094ad040ffc6e0ffc2f71959a1340 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -11,8 +11,7 @@
 #  To use the raw sources from the repository, you must have the following
 #  tools available to you:
 #
-#  1.  BitKeeper.  Some of our version information is based on the BitKeeper
-#      "prs" command.
+#  1.  Autoconf and Automake.
 #
 #  2.  AutoGen.  The repository does *not* contain the files generated from
 #      the option definition files and it does not contain the libopts
 #
 #  5.  bash, ksh, zsh or any POSIX compliant shell to run this script.
 #
-version=4.2.0b
 
 set -e
 
-if (bk version) >/dev/null 2>&1
-then
-  bk_ver=$(
-    test -d "${srcdir}" && cd ${srcdir}
-    bk -R prs -hr+ -nd:I: ChangeSet )
-  test -f version || touch version
-  y=$(<version)
-  case "${bk_ver}" in '' | "$y") ;; *) echo ${bk_ver} > version ;; esac
-else
-  echo ${version} > version
-  bk_ver=''
-fi
-
-( echo "This file is automatically generated from html/copyright.html"
-  lynx -dump html/copyright.html
-) > COPYRIGHT.new
-mv COPYRIGHT.new COPYRIGHT
+. packageinfo.sh
 
 rm -rf sntp/libopts*
 gunzip -c $(autoopts-config --libsrc) | (
diff --git a/packageinfo.sh b/packageinfo.sh
new file mode 100644 (file)
index 0000000..730e900
--- /dev/null
@@ -0,0 +1 @@
+version=4.2.0b
diff --git a/version.m4 b/version.m4
deleted file mode 100644 (file)
index 2243b67..0000000
+++ /dev/null
@@ -1 +0,0 @@
-m4_define([VERSION_NUMBER],[4.2.0b])