Commit 359cd11e by Zack Weinberg Committed by Zack Weinberg

Makefile.in (.po.pox): Look both in srcdir and builddir for $(PACKAGE).pot.

	* Makefile.in (.po.pox): Look both in srcdir and builddir
	for $(PACKAGE).pot.
	(po/$(PACKAGE).pot): Don't move-if-change the new potfile over
	to the source directory.
	* po/exgettext: Deposit new potfile in po subdir.

From-SVN: r46884
parent 8fbea508
2001-11-08 Zack Weinberg <zack@codesourcery.com>
* Makefile.in (.po.pox): Look both in srcdir and builddir
for $(PACKAGE).pot.
(po/$(PACKAGE).pot): Don't move-if-change the new potfile over
to the source directory.
2001-11-09 Ben Elliston <bje@redhat.com> 2001-11-09 Ben Elliston <bje@redhat.com>
Michael Meissner <meissner@redhat.com> Michael Meissner <meissner@redhat.com>
Andrew MacLeod <amacleod@redhat.com> Andrew MacLeod <amacleod@redhat.com>
......
...@@ -3379,9 +3379,13 @@ update-po: $(CATALOGS:.gmo=.pox) ...@@ -3379,9 +3379,13 @@ update-po: $(CATALOGS:.gmo=.pox)
# The new .po has to be gone over by hand, so we deposit it into # The new .po has to be gone over by hand, so we deposit it into
# build/po with a different extension. # build/po with a different extension.
# If build/po/$(PACKAGE).pot exists, use it (it was just created),
# else use the one in srcdir.
.po.pox: .po.pox:
test -d po || mkdir po test -d po || mkdir po
$(MSGMERGE) $< $(srcdir)/po/$(PACKAGE).pot -o $@ $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
then echo po/$(PACKAGE).pot; \
else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
# This rule has to look for .gmo modules in both srcdir and # This rule has to look for .gmo modules in both srcdir and
# the cwd, and has to check that we actually have a catalog # the cwd, and has to check that we actually have a catalog
...@@ -3408,11 +3412,10 @@ install-po: ...@@ -3408,11 +3412,10 @@ install-po:
# relatively harmless since the .po files do not directly depend on it. # relatively harmless since the .po files do not directly depend on it.
# Note that exgettext has an awk script embedded in it which requires a # Note that exgettext has an awk script embedded in it which requires a
# fairly modern (POSIX-compliant) awk. # fairly modern (POSIX-compliant) awk.
# The .pot file is left in the build directory.
$(PACKAGE).pot: po/$(PACKAGE).pot $(PACKAGE).pot: po/$(PACKAGE).pot
po/$(PACKAGE).pot: force po/$(PACKAGE).pot: force
test -d po || mkdir po test -d po || mkdir po
$(MAKE) po-generated $(MAKE) po-generated
AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \ AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
$(XGETTEXT) $(PACKAGE) $(srcdir) $(XGETTEXT) $(PACKAGE) $(srcdir)
$(SHELL) $(srcdir)/move-if-change $(PACKAGE).pot \
$(srcdir)/po/$(PACKAGE).pot
2001-11-08 Zack Weinberg <zack@codesourcery.com>
* exgettext: Deposit new potfile in po subdir.
2001-10-31 Zack Weinberg <zack@codesourcery.com> 2001-10-31 Zack Weinberg <zack@codesourcery.com>
* EXCLUDES: New file. * EXCLUDES: New file.
......
...@@ -153,4 +153,4 @@ END { ...@@ -153,4 +153,4 @@ END {
echo "running xgettext..." >&2 echo "running xgettext..." >&2
$xgettext --default-domain=$package --directory=$srcdir \ $xgettext --default-domain=$package --directory=$srcdir \
--add-comments `cat $kopt` --files-from=$posr \ --add-comments `cat $kopt` --files-from=$posr \
-o $package.pot -o po/$package.pot
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment