mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 10:22:46 +00:00

this was not the case with find applet from busybox 1.22.1 but with 1.23.0 it adds the prefixes by default. make sure they do not get added as it is not desired by using the appropariate argument
27 lines
551 B
Bash
Executable file
27 lines
551 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=("kdelibs" "kde-baseapps" "kde-workspace" "kde-extraapps")
|
|
|
|
source "$(dirname $0)/fetch.sh"
|
|
|
|
echo -n > pots.txt
|
|
for p in ${packs[@]};do
|
|
echo "Finding POTs in $p..."
|
|
find "$p" -name Messages.sh -exec grep -h -o 'podir/.*.pot' {} + | sed 's|podir/||g' >> pots.txt
|
|
done
|
|
|
|
echo "All done"
|