diff options
| author | koem <koem@petoria.de> | 2013-07-25 08:50:14 +0200 |
|---|---|---|
| committer | koem <koem@petoria.de> | 2013-07-29 16:41:18 +0200 |
| commit | c4529fea894a3f2dc28c3d13f4cbfcd7e6466bf4 (patch) | |
| tree | ab4114e60d62229e9edc8f419ad1474579451e12 /crowdin/update | |
| parent | bc584a347dc1057f0c2a151196a021463b48ab74 (diff) | |
| download | cgeo-c4529fea894a3f2dc28c3d13f4cbfcd7e6466bf4.zip cgeo-c4529fea894a3f2dc28c3d13f4cbfcd7e6466bf4.tar.gz cgeo-c4529fea894a3f2dc28c3d13f4cbfcd7e6466bf4.tar.bz2 | |
Scripts for crowdin integration
Diffstat (limited to 'crowdin/update')
| -rwxr-xr-x | crowdin/update | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/crowdin/update b/crowdin/update new file mode 100755 index 0000000..560ca8a --- /dev/null +++ b/crowdin/update @@ -0,0 +1,28 @@ +#/bin/sh + +# +# +# This script updates +# main/res/values/strings.xml +# and +# cgeo-calendar/res/values/strings.xml +# in crowdin by uploading the files from master to crowdin. +# +# + +# see: http://crowdin.net/page/api/update-file + +# update_file uploads the file in parameter 1 to the crowdin file name in parameter 2 +update_file() { + crowdin_surf -F "files[$2]=@$1" \ + "http://api.crowdin.net/api/project/cgeo/update-file?key=${CROWDIN_APIKEY}" +} + +. "`dirname $0`/globals" + +_do git checkout master || die "git checkout master failed." +_do git pull upstream master || die "git pull upstream master failed." + +update_file main/res/values/strings.xml /cgeo/strings.xml +update_file cgeo-calendar/res/values/strings.xml /cgeo-calendar/strings.xml + |
