[Xfce4-commits] <midori:master> Add potfiles unit test and update POTFILES.in

Christian Dywan noreply at xfce.org
Sun Nov 25 17:46:01 CET 2012


Updating branch refs/heads/master
         to 72f7a178425dca55db9546feba5a03a5e9e64ede (commit)
       from 2156fbbaee183591bcb41ee810e73c67f3ba3c98 (commit)

commit 72f7a178425dca55db9546feba5a03a5e9e64ede
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Nov 25 17:43:57 2012 +0100

    Add potfiles unit test and update POTFILES.in

 po/POTFILES.in                    |   17 +++++++++++++++++
 tests/license.sh                  |    2 +-
 tests/{license.sh => potfiles.sh} |   10 ++++++----
 3 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9f4b2d9..57a2bfa 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -61,3 +61,20 @@ extensions/tab-panel.c
 extensions/tabs-minimized.c
 extensions/toolbar-editor.c
 extensions/web-cache.c
+katze/katze-net.c
+katze/midori-hsts.vala
+katze/katze-scrolled.c
+katze/katze-separatoraction.c
+katze/gtk3-compat.c
+katze/katze-http-cookies-sqlite.c
+katze/katze-http-cookies.c
+midori/socket.c
+midori/midori-panedaction.vala
+midori/midori-privatedata.c
+midori/midori-dialog.vala
+midori/midori-completion.vala
+midori/midori-viewable.vala
+midori/midori-extensions-column.vala
+midori/midori-viewcompletion.vala
+midori/midori-history.c
+midori/midori-bookmarks.c
diff --git a/tests/license.sh b/tests/license.sh
index 8a73761..70e4c13 100755
--- a/tests/license.sh
+++ b/tests/license.sh
@@ -9,5 +9,5 @@ echo Running 'licensecheck'
 test -z $(which licensecheck) && echo ...SKIPPED: not installed && return 0
 test -n "$SRCDIR" && cd $SRCDIR
 test -z "$BLDDIR" && BLDDIR=_build
-find . \! -path './.waf*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
+find . \! -path './.*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
 echo ...OK
diff --git a/tests/license.sh b/tests/potfiles.sh
old mode 100755
new mode 100644
similarity index 56%
copy from tests/license.sh
copy to tests/potfiles.sh
index 8a73761..655dd29
--- a/tests/license.sh
+++ b/tests/potfiles.sh
@@ -5,9 +5,11 @@
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
 # version 2.1 of the License, or (at your option) any later version.
-echo Running 'licensecheck'
-test -z $(which licensecheck) && echo ...SKIPPED: not installed && return 0
+echo Checking POTFILES.in for completeness
 test -n "$SRCDIR" && cd $SRCDIR
 test -z "$BLDDIR" && BLDDIR=_build
-find . \! -path './.waf*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
-echo ...OK
+for i in $(find . -regextype posix-egrep \! -regex "./($BLDDIR|debian|tests)/.+" -a -regex './[^.]+.+[.](vala|c)'); do
+    grep -q $(basename $i) po/POTFILES.in || FILES="$FILES$i\n"
+done
+test -n "$FILES" && echo "$FILES...FAILED"
+test -z "$FILES" && echo "...OK"


More information about the Xfce4-commits mailing list