Resent-From: debian-i18n@lists.debian.org
From: Jens Seidel <jensseidel@users.sf.net>
Date: 23 September 2009 9:17:41 PM
To: debian-i18n@lists.debian.org
Subject: gettext incompatible with automake's distcheck target?
Hi,
I tried to use in an automake based project gettext but I always get
errors starting "make distcheck". The problem seems to be that a
readonly
source directory is used during this step and make update-po is
started in
po/ which tries to update the POT file in the source directory. This
fails:
make[4]: Entering directory `/home/jens/.../myProject/_build/po'
/usr/bin/xgettext --default-domain=myProject --directory=../.. \
--add-comments=TRANSLATORS: --keyword=_ --keyword=N_ \
--files-from=../../po/POTFILES.in \
&& test ! -f myProject.po \
|| ( rm -f ../../po/myProject.pot \
&& mv myProject.po ../../po/myProject.pot )
rm: cannot remove `../../po/myProject.pot': Permission denied
make[4]: *** [rhost.pot-update] Error 1
I really cannot believe that I'm the first user of automake/gettext
who
noticed this. How to solve it?
Jens
--
To UNSUBSCRIBE, email to debian-i18n-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org