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

Re: [Fedora-packaging] installation of info files



On Thu, 2006-07-13 at 12:51 +0200, Ralf Corsepius wrote:

> Introducing such macros is a double sided sword:
[...]

Agreed.

Regarding the case at hand, in case someone's thinking about submitting
an RFE somewhere, FWIW Mandriva has had macros for installing and
removing info files for a long time, they're defined as:

%__install_info         /sbin/install-info

%_extension             .bz2

%_install_info()        if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir;fi \
%{nil}

%_remove_install_info() if [ "$1" = "0" ]; then if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ;fi; fi \
%{nil}

The naming (%_extension, %_remove_install_info) is unfortunate and other
nitpicks could be said, but perhaps these are useful as a starting
point.



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