Re: automatically include files in %doc only if they are not empty

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

 



On Thu, 27 Nov 2008 12:55:07 +0100, Till Maas wrote:

> Hiyas,
> 
> on a package I recently packaged for Fedora, there is an empty TODO file 
> included. Is there an easy way to mark this file in %files to be included 
> only if it is not empty? This would make it easier to not forget to add the 
> file in case it will be filed with some contents in a future release.

%prep and %check : easy enough to add a bash conditional expression
(e.g. which exits with failure if the file exists and has a size greater
than zero -- or the opposite, a zero size, for files you want to exclude).

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux