Title: [92854] trunk/Source/WebKit/gtk/po
Revision
92854
Author
[email protected]
Date
2011-08-11 08:57:00 -0700 (Thu, 11 Aug 2011)

Log Message

[GTK] create pot files in builddir, not (read only) srcdir
https://bugs.webkit.org/show_bug.cgi?id=66059

Reviewed by Gustavo Noronha Silva.

* GNUmakefile.am: write and read pot files from the build dir.

Modified Paths

Diff

Modified: trunk/Source/WebKit/gtk/po/ChangeLog (92853 => 92854)


--- trunk/Source/WebKit/gtk/po/ChangeLog	2011-08-11 15:53:27 UTC (rev 92853)
+++ trunk/Source/WebKit/gtk/po/ChangeLog	2011-08-11 15:57:00 UTC (rev 92854)
@@ -1,3 +1,12 @@
+2011-08-11  Xan Lopez  <[email protected]>
+
+        [GTK] create pot files in builddir, not (read only) srcdir
+        https://bugs.webkit.org/show_bug.cgi?id=66059
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * GNUmakefile.am: write and read pot files from the build dir.
+
 2011-07-11  Yuri Chornoivan  <[email protected]>
 
         Ukrainian translation for WebKitGTK+

Modified: trunk/Source/WebKit/gtk/po/GNUmakefile.am (92853 => 92854)


--- trunk/Source/WebKit/gtk/po/GNUmakefile.am	2011-08-11 15:53:27 UTC (rev 92853)
+++ trunk/Source/WebKit/gtk/po/GNUmakefile.am	2011-08-11 15:57:00 UTC (rev 92854)
@@ -48,10 +48,10 @@
 # if updating the $(CATALOGS) would always touch them; however, the rule for
 # $(POFILES) has been designed to not touch files that don't need to be
 # changed.
-stamp-po: $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot $(MOFILES)
-	test ! -f $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot || \
+stamp-po: $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot $(MOFILES)
+	test ! -f $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot || \
 	  test -z "$(MOFILES)" || $(MAKE) $(MOFILES)
-	@test ! -f $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot || { \
+	@test ! -f $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot || { \
 	  echo "touch stamp-po" && \
 	  echo timestamp > stamp-poT && \
 	  mv stamp-poT stamp-po; \
@@ -73,7 +73,7 @@
 	      --files-from=$(srcdir)/Source/WebKit/gtk/po/POTFILES \
 	      --copyright-holder='$(COPYRIGHT_HOLDER)' \
 	      --msgid-bugs-address="$$msgid_bugs_address" \
-	      --keyword=_ --keyword=N_ -o $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot \
+	      --keyword=_ --keyword=N_ -o $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot \
 	    ;; \
 	  *) \
 	    $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(srcdir) \
@@ -83,19 +83,19 @@
 	      --package-name="$${package_gnu}@PACKAGE@" \
 	      --package-version='@VERSION@' \
 	      --msgid-bugs-address="$$msgid_bugs_address" \
-	      --keyword=_ --keyword=N_ -o $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot \
+	      --keyword=_ --keyword=N_ -o $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot \
 	    ;; \
 	esac
 
 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
 # every "make" invocation, only create it when it is missing.
 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
-$(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot:
+$(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot:
 	$(MAKE) $(DOMAIN).pot-update
 
 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
 # Note that a PO file is not touched if it doesn't need to be changed.
-update-po-files: $(srcdir)/Source/WebKit/gtk/po/$(DOMAIN).pot
+update-po-files: $(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot
 	@for pofile in $(POFILES); do \
 	  lang=`echo $$pofile | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
 	  if test -f "$(srcdir)/Source/WebKit/gtk/po/$${lang}.po"; then \
@@ -123,10 +123,12 @@
 	$(top_builddir)/stamp-po
 
 MAINTAINERCLEANFILES += \
-	$(MOFILES)
+	$(MOFILES) \
+	$(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot
 
 DISTCLEANFILES += \
-	$(MOFILES)
+	$(MOFILES) \
+	$(top_builddir)/Source/WebKit/gtk/po/$(DOMAIN).pot
 
 po-install-data-local: all
 	$(mkdir_p) $(DESTDIR)$(datadir)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to