mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
20 lines
411 B
Bash
20 lines
411 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# Generates list of all plugins translations for qmake .pro
|
||
|
|
||
|
PLUGINS=`ls -d ../src/plugins/*/translations`
|
||
|
|
||
|
for dir in $PLUGINS
|
||
|
do
|
||
|
echo -e "$dir\n"
|
||
|
echo "TRANSLATIONS += \\"
|
||
|
|
||
|
for translation in $dir/*.ts
|
||
|
do
|
||
|
[[ "$translation" == *empty.ts ]] && continue
|
||
|
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\"
|
||
|
done
|
||
|
|
||
|
echo -e "\n\n"
|
||
|
done
|