Subject: Re: grep.pot missing



Tony Abou-Assaleh wrote:
I am having difficulties with 'po/Makefile.in.in' when running
'make dist'. Two problems to be exact:

1) make doesn't know how to make 'grep.pot'
2) make doesn't know how to make 'stamp-cat-id'

I can see that there are rules to handle each of the above situations
in the generated Makefile, but for some reason they're not working, and I
don't know enough about make to fix them.

Here is the output of my "make" after I have deleted "grep.pot". Maybe you can see the problem by examining the corresponding output of your "make". Maybe it can't find "xgettext", in which case you should install the GNU "gettext" package.

~/src/grep> make
make all-recursive
make[1]: Entering directory `/home/julianfoad/src/grep'
Making all in intl
make[2]: Entering directory `/home/julianfoad/src/grep/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/julianfoad/src/grep/intl'
Making all in po
make[2]: Entering directory `/home/julianfoad/src/grep/po'
PATH=../src:$PATH /usr/bin/xgettext --default-domain=grep --directory=.. \
--add-comments --keyword=_ --keyword=N_ \
--files-from=./POTFILES.in \
&& test ! -f grep.po \
|| ( rm -f ./grep.pot \
&& mv grep.po ./grep.pot )
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed ./grep.pot \
| sed -e "s/@PACKAGE NAME@/grep/" > cat-id-tbl.tmp
sed: Couldn't open file ../intl/po2tbl.sed: No such file or directory
if cmp -s cat-id-tbl.tmp ./cat-id-tbl.c; then \
rm cat-id-tbl.tmp; \
else \
echo cat-id-tbl.c changed; \
rm -f ./cat-id-tbl.c; \
mv cat-id-tbl.tmp ./cat-id-tbl.c; \
fi
cd . && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
make[2]: Leaving directory `/home/julianfoad/src/grep/po'
Making all in lib
make[2]: Entering directory `/home/julianfoad/sr...

c/grep/lib'
Making all in posix
[...]

Note that something seems to be wrong here - it can't find "../intl/po2tbl.sed" - but it does generate the two files you mentioned. Claudio Fontana has a new build system ready; maybe it will take care of this.


My temporary solution is to remove dependency on stamp-cat-id and to copy
the old grep.pot from the cvs.

That'll do for a nightly test release if you can't get it working fully, if people aren't working on translations (which nobody is, as far as I know).

The script, the hack in the shape of a patch, and the nightly CVS releases
are available at:

http://www.dal-acm.ca/~taa/grep/

Great! Thanks on behalf of those who need this. You might want to announce this in a new thread.

- Julian







Privacy