diff options
Diffstat (limited to 'scripts/rtemsdoc/templ.add.in')
-rw-r--r-- | scripts/rtemsdoc/templ.add.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rtemsdoc/templ.add.in b/scripts/rtemsdoc/templ.add.in index 5a0d8f7be0..a4e93e1e82 100644 --- a/scripts/rtemsdoc/templ.add.in +++ b/scripts/rtemsdoc/templ.add.in @@ -26,9 +26,9 @@ This package contains the @target@ documentation. %{_datadir}/rtems/html/@target@* %post @target@ -/sbin/install-info %{_infodir}/@target@.info.gz %{_infodir}/dir +/sbin/install-info --infodir=%{_infodir} %{_infodir}/@target@.info.gz %preun @target@ -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/@target@.info.gz %{_infodir}/dir +if [ $1 -eq 0 ]; then + /sbin/install-info --delete --infodir=%{_infodir}/dir %{_infodir}/@target@.info.gz fi |