* build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
authorJim Meyering <jim@meyering.net>
Fri, 8 Dec 2006 17:37:36 +0000 (17:37 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 8 Dec 2006 17:37:36 +0000 (17:37 +0000)
Instead, use Emacs' time-stamp write hook.

ChangeLog
build-aux/announce-gen

index f483995..2e3b651 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-12-08  Jim Meyering  <jim@meyering.net>
 
+       * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
+       Instead, use Emacs' time-stamp write hook.
+
        * build-aux/announce-gen: Add two new options, both optional:
        --bootstrap-tools=TOOL_LIST
              a comma-separated list of tools, e.g.,
index 751ece0..1f87bc2 100755 (executable)
@@ -1,6 +1,12 @@
 #!/usr/bin/perl -w
 # Generate a release announcement message.
 
+my $VERSION = '2006-12-08 17:35'; # UTC
+# The definition above must lie within the first 8 lines in order
+# for the Emacs time-stamp write hook (at end) to update it.
+# If you change this file with Emacs, please let the write hook
+# do its job.  Otherwise, update this string manually.
+
 # Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -26,7 +32,6 @@ use Digest::MD5;
 use Digest::SHA1;
 use POSIX qw(strftime);
 
-(my $VERSION = '$Revision: 1.2 $ ') =~ tr/[0-9].//cd;
 (my $ME = $0) =~ s|.*/||;
 
 my %valid_release_types = map {$_ => 1} qw (alpha beta major);
@@ -480,8 +485,6 @@ EOF
   exit 0;
 }
 
-
-
 ### Setup "GNU" style for perl-mode and cperl-mode.
 ## Local Variables:
 ## perl-indent-level: 2
@@ -497,4 +500,9 @@ EOF
 ## cperl-extra-newline-before-brace: t
 ## cperl-merge-trailing-else: nil
 ## cperl-continued-statement-offset: 2
+## eval: (add-hook 'write-file-hooks 'time-stamp)
+## time-stamp-start: "my $VERSION = '"
+## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
+## time-stamp-time-zone: "UTC"
+## time-stamp-end: "'; # UTC"
 ## End: