[gtksourceview/wip/gsv-next: 8/9] Change how to update sub *.pot



commit 37dffc665d0f62d4db5f31983bef5b908f076c2d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 27 08:25:16 2016 +0200

    Change how to update sub *.pot
    
    I prefer a script. That way I'm sure the sub *.pot is re-generated (when
    we launch the script). With the Makefile rule it said that the targets
    were up-to-date.

 data/glade/Makefile.am            |    6 ++----
 data/glade/update-pot.sh          |    3 +++
 data/language-specs/Makefile.am   |    6 ++----
 data/language-specs/update-pot.sh |    3 +++
 data/styles/Makefile.am           |    6 ++----
 data/styles/update-pot.sh         |    3 +++
 6 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/data/glade/Makefile.am b/data/glade/Makefile.am
index 6913764..78da2d8 100644
--- a/data/glade/Makefile.am
+++ b/data/glade/Makefile.am
@@ -14,9 +14,7 @@ validate: $(catalog_DATA)
 EXTRA_DIST =                   \
        gtksourceview.xml       \
        glade.its               \
-       glade.pot
-
-$(srcdir)/glade.pot: $(catalog_DATA) glade.its
-       $(ITSTOOL) -i glade.its -o $@ $(catalog_DATA)
+       glade.pot               \
+       update-pot.sh
 
 -include $(top_srcdir)/git.mk
diff --git a/data/glade/update-pot.sh b/data/glade/update-pot.sh
new file mode 100755
index 0000000..ca30049
--- /dev/null
+++ b/data/glade/update-pot.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+itstool -i glade.its -o glade.pot gtksourceview.xml
diff --git a/data/language-specs/Makefile.am b/data/language-specs/Makefile.am
index 0d4553c..810bf98 100644
--- a/data/language-specs/Makefile.am
+++ b/data/language-specs/Makefile.am
@@ -129,9 +129,7 @@ EXTRA_DIST =                        \
        $(languages_DATA)       \
        check-language.sh       \
        language-specs.its      \
-       language-specs.pot
-
-$(srcdir)/language-specs.pot: $(LANGUAGES) language-specs.its
-       $(ITSTOOL) -i language-specs.its -o $@ $(LANGUAGES)
+       language-specs.pot      \
+       update-pot.sh
 
 -include $(top_srcdir)/git.mk
diff --git a/data/language-specs/update-pot.sh b/data/language-specs/update-pot.sh
new file mode 100755
index 0000000..4474619
--- /dev/null
+++ b/data/language-specs/update-pot.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+itstool -i language-specs.its -o language-specs.pot *.lang
diff --git a/data/styles/Makefile.am b/data/styles/Makefile.am
index 709bb1d..e68a0da 100644
--- a/data/styles/Makefile.am
+++ b/data/styles/Makefile.am
@@ -16,9 +16,7 @@ EXTRA_DIST =          \
        $(styles_DATA)  \
        check-style.sh  \
        styles.its      \
-       styles.pot
-
-$(srcdir)/styles.pot: $(STYLES) styles.its
-       $(ITSTOOL) -i styles.its -o $@ $(STYLES)
+       styles.pot      \
+       update-pot.sh
 
 -include $(top_srcdir)/git.mk
diff --git a/data/styles/update-pot.sh b/data/styles/update-pot.sh
new file mode 100755
index 0000000..61c6c99
--- /dev/null
+++ b/data/styles/update-pot.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+itstool -i styles.its -o styles.pot *.xml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]