diff options
author | Parménides GV <parmegv@sdf.org> | 2015-06-04 19:20:15 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-06-04 19:20:15 +0200 |
commit | 27594eeae6f40a402bc3110f06d57975168e74e3 (patch) | |
tree | cdabf6571e6f4ff07205fd6921d8095539a1fcdc /app/misc/fetchtranslations.sh | |
parent | 8dc4f58d96892fbfd83094fb85b1d17656035290 (diff) |
ics-openvpn as a submodule! beautiful
ics-openvpn is now officially on GitHub, and they track openssl and
openvpn as submodules, so it's easier to update everything. Just a git
submodule update --recursive.
I've also set up soft links to native modules from ics-openvpn in app,
so that we don't copy files in Gradle (which was causing problems with
the submodules .git* files, not being copied). That makes the repo
cleaner.
Diffstat (limited to 'app/misc/fetchtranslations.sh')
-rwxr-xr-x | app/misc/fetchtranslations.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/app/misc/fetchtranslations.sh b/app/misc/fetchtranslations.sh deleted file mode 100755 index 356748d6..00000000 --- a/app/misc/fetchtranslations.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/zsh -set -o shwordsplit - -if [ "$ICSCROWDAPIKEY" != "" ] -then - echo "Generating new translation archives" - fetch -q -1 -o - "http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY" -fi - -echo "Fetch translation archive" -fetch -q http://crowdin.net/download/project/ics-openvpn.zip - - -# Chinese language require zh-CN and zh-TW - -typeset -A langhash -langhash=(zh-CN zh-rCN zh-TW zh-rTW id-ID in ca-ES ca cs-CZ cs et-EE et ja-JP ja ko-KR ko sv-SE sv uk-UA uk) - -langtoinclude="de es fr hu it no nl pl pt ro ru tr" - -for lang in $langtoinclude ${(k)langhash} -do - if (( ${+langhash[$lang]} )); then - alang=$lang - rlang=${langhash[$lang]} - else - alang=$lang-${lang:u} - rlang=$lang - fi - - mkdir -p src/main/res/values-$rlang/ - echo "$alang -> $rlang" - tar -xv -C src/main/res/values-$rlang/ --strip-components 2 -f ics-openvpn.zip res/values-$alang/ -done - -rm ics-openvpn.zip |