Re: How to register manpages?
Am 2006-09-01 15:07:08, schrieb Eddy Petrisor:
> On 31/08/06, Michelle Konzack <linux4michelle@freenet.de> wrote:
> >But unfortunatly it can not rename files while using dh_install and
> >I like to see a dh_installpo like the dh_installman which put the
> ><manpage>.CC.N in the right CountryCode section...
> >
> >So, if dh_installpo can do this with the CC.po ...
>
> .po files are never used in the system. .mo are, 'though.
Oops, right, (was a Typo)
> What would you want that dh_installpo to do? It was not clear to me.
Install it into the right directorys instead of using things like
----8<--------------------------------------------------------------
#!/usr/bin/make -f
<snip>
PO_LANG = $(patsubst %.po,%,$(notdir $(wildcard po/*.po)))
gettext-get:
xgettext --language=shell --add-location --foreign-user \
--copyright-holder="Michelle Konzack" \
--msgid-bugs-address="linux4michelle@freenet.de" \
--output po/tdcdautorun.pot tdcdautorun
gettext-merge:
dh_testdir
for CC in $(PO_LANG) ; do \
msgfmtm --update po/$$CC.po po/tdcdautorun.pot ; \
done
clean:
dh_testdir
dh_clean
rm -v -f po/*.mo po/*.~
build: $(PO_LANG)
$(PO_LANG):
dh_testdir
msgfmt -o po/$@.mo po/$@.po
install:
dh_testdir
<snip>
for CC in $(PO_LANG) ; do \
mkdir -v -p debian/tdcdautorun/usr/share/locale/$$CC/LC_MESSAGES ; \
done
binary-indep: build install
dh_testdir
<snip>
for CC in $(PO_LANG) ; do \
mv -v -f po/$$CC.mo debian/tdcdautorun/usr/share/locale/$$CC/LC_MESSAGES/tdcdautorun.mo ; \
done
<snip>
----8<--------------------------------------------------------------
"dh_installmo" or "dh_installlocale" could simplify the installation
of the *.mo files and have additionaly better error handling.
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: