bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Specify archive suffixes to announce-gen


From: Jim Meyering
Subject: Re: [PATCH] Specify archive suffixes to announce-gen
Date: Thu, 05 Mar 2009 17:35:17 +0100

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

[Prev in Thread] Current Thread [Next in Thread]