Sergey Poznyakoff wrote:
> The enclosed patch add to announce-gen a new option, --archive-suffix,
> which allows to specify new archive suffixes. For example:
>
>   announce-gen --archive-suffix cpio.gz --archive-suffix shar.gz
>
> It is useful for such projects as GNU tar, which is distributed in a
> wider set of archive formats.
>
> OK to push?

Sure, that looks fine.
But please remove the trailing blanks first.

> -
> +my @archive_suffixes = ('tar.gz', 'tar.bz2', 'tar.lzma', 'tar.xz');
> +  <<---
...
> -
> +   --archive-suffix=SUF         add SUF to the list of archive suffixes
> +   <<---
...
> -  my @tarballs = grep {-f $_} ($tgz, $tbz, $lzma, $xz);
> +  my @candidates = map { "$my_distdir.$_" } @archive_suffixes;
> +  my @tarballs = grep {-f $_} @candidates;
> +  <<---


Reply via email to