2015-08-12 06:50:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Transka executable.
|
2016-04-06 10:17:28 +02:00
|
|
|
TRANSKA=./transka
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
# Get credentials.
|
|
|
|
read -p "Username: " USERNAME
|
|
|
|
read -p "Password: " PASSWORD
|
|
|
|
|
|
|
|
# Setup parameters.
|
2016-06-22 21:42:42 +02:00
|
|
|
RESOURCE=../../../localization/rssguard-en.ts
|
|
|
|
CODES="cs da de en_GB fr he id it ja lt nl pt sv"
|
2016-04-06 10:17:28 +02:00
|
|
|
TRANSLATION='../../../localization/rssguard-$CODE.ts'
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
declare PARAMS
|
|
|
|
|
2016-04-06 10:17:28 +02:00
|
|
|
PARAMS+="-u "$USERNAME" -p "$PASSWORD" -ps "rssguard" -rs "rssguard" -ur "$RESOURCE" "
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
for CODE in $CODES; do
|
2016-04-06 10:17:28 +02:00
|
|
|
PARAMS+="-dt "$CODE" "$(eval echo $TRANSLATION)" "
|
2015-08-12 06:50:58 +02:00
|
|
|
done
|
|
|
|
|
2016-04-06 10:17:28 +02:00
|
|
|
cd ./transka
|
|
|
|
|
2015-08-12 06:50:58 +02:00
|
|
|
$TRANSKA $PARAMS
|