2013-10-24 03:45:02 +00:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
# Copyright 2012 Christian Dywan <christian@twotoasts.de>
|
|
|
|
#
|
|
|
|
# This script is free software; you can redistribute it and/or
|
|
|
|
# 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 Checking POTFILES.in for completeness
|
|
|
|
test -n "$SRCDIR" && cd $SRCDIR
|
|
|
|
test -z "$BLDDIR" && BLDDIR=_build
|
2015-09-12 00:47:06 +00:00
|
|
|
for i in $(find . -regextype posix-egrep \! -regex "./($BLDDIR|_.+|debian|tests)/.+" -a -regex './[^.]+.+[.](vala|c)'); do
|
2013-10-24 03:45:02 +00:00
|
|
|
grep -q $(basename $i) po/POTFILES.in || FILES="$FILES$i\n"
|
|
|
|
done
|
|
|
|
test -n "$FILES" && echo "$FILES...FAILED"
|
|
|
|
test -z "$FILES" && echo "...OK"
|