katana/cleanpo.sh
2014-12-09 17:58:50 +00:00

25 lines
396 B
Bash
Executable file

#!/bin/bash
set -e
cwd="$(pwd)"
if ! type -p find ;then
echo "find is not in your PATH"
exit 1
fi
packs=("kde-l10n")
source "$(dirname $0)/fetch.sh"
echo "Cleaning up translations $p..."
regex=""
for i in $(cat pots.txt);do
regex="$regex -a ! -name ${i//.pot/.po}"
done
# echo $regex
# do not remove for now!
find "kde-l10n" -name '*.po' $regex -exec echo {} +
echo "All done"