summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian.dywan@canonical.com>2013-12-12 19:53:23 +0100
committerChristian Dywan <christian.dywan@canonical.com>2013-12-12 19:53:23 +0100
commitf2e8e6307f2063409ac15459f22ce88d15c2029c (patch)
tree73e0ee9534b99e5feac4d5849fc57b99f8a8d1d6
parentfa521a7da856bb4f09e3688701a6785b789df8f0 (diff)
downloadmidori-f2e8e6307f2063409ac15459f22ce88d15c2029c.tar.gz
Skip folders starting with _ from license and potfiles checks
-rwxr-xr-xtests/license.sh2
-rwxr-xr-xtests/potfiles.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/license.sh b/tests/license.sh
index 70e4c13d..728209c7 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 './.*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
+find . \! -path './.*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./_*/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
echo ...OK
diff --git a/tests/potfiles.sh b/tests/potfiles.sh
index 655dd29e..e6330c66 100755
--- a/tests/potfiles.sh
+++ b/tests/potfiles.sh
@@ -8,7 +8,7 @@
echo Checking POTFILES.in for completeness
test -n "$SRCDIR" && cd $SRCDIR
test -z "$BLDDIR" && BLDDIR=_build
-for i in $(find . -regextype posix-egrep \! -regex "./($BLDDIR|debian|tests)/.+" -a -regex './[^.]+.+[.](vala|c)'); do
+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"