# Create a file containing all the php files to be processed.
find .. -iname '*.php' >> gettextfiles

# Remove bibledit.pot in case there are some strings in it which are no longer in use.
rm bibledit.pot

# Recreate bibledit.pot so that xgettext does not complain.
touch bibledit.pot

# Create the .pot file and join it with an existing one.
xgettext --files-from=gettextfiles --default-domain=bibledit --join-existing --force-po --copyright-holder="Teus Benschop" -o bibledit.pot --from-code=UTF-8 --no-location

# Clean working files.
rm gettextfiles


