#!/usr/bin/perl -w
# Generate a release announcement message.
-my $VERSION = '2008-06-02 08:18'; # UTC
+my $VERSION = '2008-12-02 16:28'; # 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
--news=NEWS_FILE
--bootstrap-tools=TOOL_LIST a comma-separated list of tools, e.g.,
autoconf,automake,bison,gnulib
- --gnulib-snapshot-date=DATE if gnulib is in the bootstrap tool list,
- then report this as the snapshot date.
- If not specified, use the current date/time.
- If you specify a date here, be sure it is UTC.
+ --gnulib-version=VERSION report VERSION as the gnulib version, where
+ VERSION is the result of running git describe
+ in the gnulib source directory.
+ required if gnulib is in TOOL_LIST.
--help display this help and exit
--version output version information and exit
# the first occurrence of $prev_version.
my $in_items;
- my $re_prefix = qr/\* (?:Noteworthy|Major) change/;
+ my $re_prefix = qr/(?:\* )?(?:Noteworthy c|Major c|C)(?i:hanges)/;
open NEWS, '<', $news_file
or die "$ME: $news_file: cannot open for reading: $!\n";
my $tgz = "$my_distdir.tar.gz";
my $tbz = "$my_distdir.tar.bz2";
my $lzma = "$my_distdir.tar.lzma";
+ my $xz = "$my_distdir.tar.xz";
+
my $xd = "$package_name-$prev_version-$curr_version.xdelta";
- my @tarballs = grep {-f $_} ($tgz, $tbz, $lzma);
+ my @tarballs = grep {-f $_} ($tgz, $tbz, $lzma, $xz);
+ @tarballs
+ or die "$ME: none of $tgz, $tbz, $lzma or $xz were found\n";
my @sizable = @tarballs;
-f $xd
and push @sizable, $xd;