Repo created
This commit is contained in:
parent
324070df30
commit
2d33a757bf
644 changed files with 99721 additions and 2 deletions
9
scripts/copy-compiled.sh
Executable file
9
scripts/copy-compiled.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
SOURCE_DIR=~/tmp/davx5
|
||||
BASE_DIR=`dirname $0`/../app
|
||||
MAPPING_DIR=$BASE_DIR/build/outputs/mapping
|
||||
TARGET_DIR=$BASE_DIR/target
|
||||
|
||||
rsync -arvt $SOURCE_DIR/ $TARGET_DIR/
|
||||
rsync -arvt $MAPPING_DIR/ $TARGET_DIR/latest-mapping/
|
||||
5
scripts/fetch-db.sh
Executable file
5
scripts/fetch-db.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd ~/tmp
|
||||
adb pull /data/data/com.android.providers.contacts/databases/contacts2.db
|
||||
adb pull /data/data/com.android.providers.calendar/databases/calendar.db
|
||||
adb pull /data/data/org.dmfs.tasks/databases/tasks.db
|
||||
17
scripts/fetch-translations.sh
Executable file
17
scripts/fetch-translations.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
export TX_TOKEN=`awk '/token *=/ { print $3; }' <$HOME/.transifexrc`
|
||||
|
||||
cd `pwd $0`/..
|
||||
|
||||
tx pull -a -f --use-git-timestamps
|
||||
if find app/src -type d -name 'values-*_*' -exec false '{}' +
|
||||
then
|
||||
echo "No values-XX_RR directory found, good"
|
||||
else
|
||||
echo "Found values-XX_RR directory, update .tx/config mappings to values-XX-rRR!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -H "Authorization: Bearer $TX_TOKEN" 'https://rest.api.transifex.com/team_memberships?filter\[organization\]=o:bitfireAT&filter\[team\]=o:bitfireAT:t:davx5-team' \
|
||||
| scripts/rewrite-translators.rb >app/src/main/assets/translators.json
|
||||
13
scripts/gen-contacts.rb
Executable file
13
scripts/gen-contacts.rb
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
File.open("contacts.vcf", "w") do |f|
|
||||
for i in 1..600 do
|
||||
f.puts "BEGIN:VCARD"
|
||||
f.puts "VERSION:3.0"
|
||||
f.puts "FN:Kontakt Nr. #{i}"
|
||||
f.puts "N:Kontakt Nr. #{i}"
|
||||
f.puts "EMAIL:#{i}@google-god.com"
|
||||
f.puts "PHONE:#{i}#{i}#{i}"
|
||||
f.puts "END:VCARD"
|
||||
end
|
||||
end
|
||||
24
scripts/rewrite-translators.rb
Executable file
24
scripts/rewrite-translators.rb
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
require 'json'
|
||||
|
||||
contributors = {}
|
||||
|
||||
transifex = JSON.parse(STDIN.read, :symbolize_names => true)
|
||||
for t in transifex[:data]
|
||||
raise unless t[:type] == 'team_memberships'
|
||||
#next unless t[:attributes][:role] == 'translator'
|
||||
|
||||
rel = t[:relationships]
|
||||
lang = rel[:language][:data][:id].delete_prefix('l:')
|
||||
user = rel[:user][:data][:id].delete_prefix('u:')
|
||||
|
||||
next if user == 'bitfire'
|
||||
|
||||
contributors[lang] = [] if contributors[lang].nil?
|
||||
contributors[lang] << user
|
||||
end
|
||||
|
||||
contributors.transform_values! { |u| u.sort }
|
||||
|
||||
puts contributors.sort.to_h.to_json
|
||||
Loading…
Add table
Add a link
Reference in a new issue