mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 18:32:47 +00:00
add script to find pots; rename localize to extractpot
This commit is contained in:
parent
7086b19de1
commit
fc4a1a759a
2 changed files with 27 additions and 0 deletions
27
findpots.sh
Executable file
27
findpots.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/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"
|
||||
|
||||
echo > pots.txt
|
||||
for p in ${packs[@]};do
|
||||
echo "Finding POTs in $p..."
|
||||
find "$p" -name Messages.sh -exec grep -o 'podir/.*.pot' {} + | sed 's|podir/||g' >> pots.txt
|
||||
done
|
||||
|
||||
echo "All done"
|
Loading…
Add table
Reference in a new issue