[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken build
From: |
Bruce Dubbs |
Subject: |
Re: Broken build |
Date: |
Wed, 17 Mar 2010 19:55:53 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 |
Vladimir 'φ-coder/phcoder' Serbinenko wrote:
Carles Pina i Estany wrote:
Hi,
On Mar/17/2010, Bruce Dubbs wrote:
With the addition of the internationalization code, building GRUB in
a separate directory fails.
I'll take a look into it "soon" (next days or next week)
Probably it's an easy thing, if someone checks it before please report
:-)
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@
-f $< --keyword=_ --keyword=N_
to
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@
-f po/POTFILES --keyword=_ --keyword=N_
Feel free to test & commit
I don't think so. When generated, the makefile has:
$(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ -f
$< --keyword=_ --keyword=N_
which when instantiated by make is:
../po/grub.pot: po/POTFILES po/POTFILES-shell
cd .. && /usr/bin/xgettext -ctranslate --from-code=utf-8 \
-o ../po/grub.pot -f po/POTFILES --keyword=_ --keyword=N_
/usr/bin/xgettext: cannot create output file "../po/grub.pot": No such
file or directory
If I change this to:
po/grub.pot: $(srcdir)/po/POTFILES $(srcdir)/po/POTFILES-shell
mkdir -p po
$(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ \
-f $< --keyword=_ --keyword=N
I get the error:
/usr/bin/xgettext: error while opening "commands/acpi.c" for reading:
No such file or directory
We need something like:
po/grub.pot: $(srcdir)/po/POTFILES $(srcdir)/po/POTFILES-shell
mkdir -p po
DIR=$PWD
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 \
-o $(DIR)/$@ -f po/POTFILES --keyword=_ --keyword=N
The use of $< is wrong here because of the cd command.
-- Bruce