mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 10:22:46 +00:00
32 lines
560 B
Bash
Executable file
32 lines
560 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cwd="$(pwd)"
|
|
if ! type -p find ;then
|
|
echo "find is not in your PATH"
|
|
exit 1
|
|
elif ! type -p grep ;then
|
|
echo "grep is not in your PATH"
|
|
exit 1
|
|
elif ! type -p sed ;then
|
|
echo "sed 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
|
|
regex="${regex/ -a/}"
|
|
echo $regex
|
|
|
|
# do not remove for now!
|
|
find "kde-l10n" $regex -name '*.po' -exec echo {} +
|
|
|
|
echo "All done"
|