5514
by Christian Dywan
Add potfiles unit test and update POTFILES.in |
1 |
#! /usr/bin/env sh
|
2 |
# Copyright 2012 Christian Dywan <christian@twotoasts.de>
|
|
3 |
#
|
|
4 |
# This script is free software; you can redistribute it and/or
|
|
5 |
# modify it under the terms of the GNU Lesser General Public
|
|
6 |
# License as published by the Free Software Foundation; either
|
|
7 |
# version 2.1 of the License, or (at your option) any later version.
|
|
8 |
echo Checking POTFILES.in for completeness |
|
9 |
test -n "$SRCDIR" && cd $SRCDIR |
|
10 |
test -z "$BLDDIR" && BLDDIR=_build |
|
6519.2.1
by Christian Dywan
Skip folders starting with _ from license and potfiles checks |
11 |
for i in $(find . -regextype posix-egrep \! -regex "./($BLDDIR|_.+|debian|tests)/.+" -a -regex './[^.]+.+[.](vala|c)'); do |
5514
by Christian Dywan
Add potfiles unit test and update POTFILES.in |
12 |
grep -q $(basename $i) po/POTFILES.in || FILES="$FILES$i\n" |
13 |
done
|
|
14 |
test -n "$FILES" && echo "$FILES...FAILED" |
|
15 |
test -z "$FILES" && echo "...OK" |