2014-12-08 02:40:48 +00:00
|
|
|
#!/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=("kdelibs" "kde-baseapps" "kde-workspace" "kde-extraapps")
|
|
|
|
|
|
|
|
source "$(dirname $0)/fetch.sh"
|
|
|
|
|
2014-12-09 17:58:50 +00:00
|
|
|
echo -n > pots.txt
|
2014-12-08 02:40:48 +00:00
|
|
|
for p in ${packs[@]};do
|
|
|
|
echo "Finding POTs in $p..."
|
2015-01-01 04:09:23 +00:00
|
|
|
find "$p" -name Messages.sh -exec grep -h -o 'podir/.*.pot' {} + | sed 's|podir/||g' >> pots.txt
|
2014-12-08 02:40:48 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "All done"
|