Blame tests/potfiles.sh

Ryan Niebur 50549d
#! /usr/bin/env sh
Ryan Niebur 50549d
# Copyright 2012 Christian Dywan <christian@twotoasts.de>
Ryan Niebur 50549d
#
Ryan Niebur 50549d
# This script is free software; you can redistribute it and/or
Ryan Niebur 50549d
# modify it under the terms of the GNU Lesser General Public
Ryan Niebur 50549d
# License as published by the Free Software Foundation; either
Ryan Niebur 50549d
# version 2.1 of the License, or (at your option) any later version.
Ryan Niebur 50549d
echo Checking POTFILES.in for completeness
Ryan Niebur 50549d
test -n "$SRCDIR" && cd $SRCDIR
Ryan Niebur 50549d
test -z "$BLDDIR" && BLDDIR=_build
ccd28b
for i in $(find . -regextype posix-egrep \! -regex "./($BLDDIR|_.+|debian|tests)/.+" -a -regex './[^.]+.+[.](vala|c)'); do
Ryan Niebur 50549d
    grep -q $(basename $i) po/POTFILES.in || FILES="$FILES$i\n"
Ryan Niebur 50549d
done
Ryan Niebur 50549d
test -n "$FILES" && echo "$FILES...FAILED"
Ryan Niebur 50549d
test -z "$FILES" && echo "...OK"