From 678385a887261e83dbf77c1690db628a7554f871 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 21 Oct 2020 13:19:21 +0200 Subject: [PATCH] move scripts to new `scripts` folder --- {tools => scripts}/add-language.sh | 2 +- {tools => scripts}/check-translations.sh | 0 {tools => scripts}/clean-core.sh | 0 {tools => scripts}/grep-string.sh | 2 +- {tools => scripts}/tx-pull-source.sh | 2 +- scripts/tx-pull-translations.sh | 2 ++ {tools => scripts}/tx-push-source.sh | 2 +- {tools => scripts}/tx-update-changed-sources.sh | 4 ++-- {tools => scripts}/update-core.sh | 0 {tools => scripts}/upload-release.sh | 2 +- tools/tx-pull-translations.sh | 2 -- 11 files changed, 9 insertions(+), 9 deletions(-) rename {tools => scripts}/add-language.sh (91%) rename {tools => scripts}/check-translations.sh (100%) rename {tools => scripts}/clean-core.sh (100%) rename {tools => scripts}/grep-string.sh (93%) rename {tools => scripts}/tx-pull-source.sh (73%) create mode 100755 scripts/tx-pull-translations.sh rename {tools => scripts}/tx-push-source.sh (76%) rename {tools => scripts}/tx-update-changed-sources.sh (85%) rename {tools => scripts}/update-core.sh (100%) rename {tools => scripts}/upload-release.sh (95%) delete mode 100755 tools/tx-pull-translations.sh diff --git a/tools/add-language.sh b/scripts/add-language.sh similarity index 91% rename from tools/add-language.sh rename to scripts/add-language.sh index 4fc6fffda..c44b4fb77 100755 --- a/tools/add-language.sh +++ b/scripts/add-language.sh @@ -20,5 +20,5 @@ touch -t 201901010000 res/values-$LANG/strings.xml echo "res/values-$LANG/strings.xml added:" echo "- add the name to res/values/arrays.xml" echo "- if needed, language mappings can be added to .tx/config" -echo "- pull translations using ./tools/tx-pull-translations.sh" +echo "- pull translations using ./scripts/tx-pull-translations.sh" echo " (on problems, 'tx -d pull' gives verbose output)" diff --git a/tools/check-translations.sh b/scripts/check-translations.sh similarity index 100% rename from tools/check-translations.sh rename to scripts/check-translations.sh diff --git a/tools/clean-core.sh b/scripts/clean-core.sh similarity index 100% rename from tools/clean-core.sh rename to scripts/clean-core.sh diff --git a/tools/grep-string.sh b/scripts/grep-string.sh similarity index 93% rename from tools/grep-string.sh rename to scripts/grep-string.sh index 1640c66bb..030361763 100755 --- a/tools/grep-string.sh +++ b/scripts/grep-string.sh @@ -3,7 +3,7 @@ TEXT=$1 if [ -z "$TEXT" ]; then echo "this script searches for the string key given as the first parameter." echo "search is done in this repo and in ../deltachat-ios and in ../deltachat-desktop." - echo "usage: ./tools/grep-string.sh " + echo "usage: ./scripts/grep-string.sh " exit fi diff --git a/tools/tx-pull-source.sh b/scripts/tx-pull-source.sh similarity index 73% rename from tools/tx-pull-source.sh rename to scripts/tx-pull-source.sh index 29ae3a188..6de0aa370 100755 --- a/tools/tx-pull-source.sh +++ b/scripts/tx-pull-source.sh @@ -1,4 +1,4 @@ tx pull -l en mv res/values-en/strings.xml res/values/strings.xml rmdir res/values-en -./tools/check-translations.sh +./scrips/check-translations.sh diff --git a/scripts/tx-pull-translations.sh b/scripts/tx-pull-translations.sh new file mode 100755 index 000000000..f2d1b0214 --- /dev/null +++ b/scripts/tx-pull-translations.sh @@ -0,0 +1,2 @@ +tx pull -f +./scripts/check-translations.sh diff --git a/tools/tx-push-source.sh b/scripts/tx-push-source.sh similarity index 76% rename from tools/tx-push-source.sh rename to scripts/tx-push-source.sh index f70759892..6c6e5c81a 100755 --- a/tools/tx-push-source.sh +++ b/scripts/tx-push-source.sh @@ -1,3 +1,3 @@ read -p "Push res/values/strings.xml to transifex? Press ENTER to continue, CTRL-C to abort." tx push -s -./tools/check-translations.sh +./scripts/check-translations.sh diff --git a/tools/tx-update-changed-sources.sh b/scripts/tx-update-changed-sources.sh similarity index 85% rename from tools/tx-update-changed-sources.sh rename to scripts/tx-update-changed-sources.sh index c8979f75d..d11a6e785 100755 --- a/tools/tx-update-changed-sources.sh +++ b/scripts/tx-update-changed-sources.sh @@ -5,9 +5,9 @@ echo "This is done by pulling the translations" echo "and immediately pushing them again together with the source." echo "************************************************************************************" echo "Pushing translations is POTENTIALLY HARMFUL so this script should be used with care." -echo "In most cases, just use ./tools/tx-push-translations.sh which is safer." +echo "In most cases, just use ./scrips/tx-push-translations.sh which is safer." echo "************************************************************************************" read -p "Press ENTER to continue, CTRL-C to abort." tx pull -f tx push -s -t -./tools/check-translations.sh +./scrips/check-translations.sh diff --git a/tools/update-core.sh b/scripts/update-core.sh similarity index 100% rename from tools/update-core.sh rename to scripts/update-core.sh diff --git a/tools/upload-release.sh b/scripts/upload-release.sh similarity index 95% rename from tools/upload-release.sh rename to scripts/upload-release.sh index fe1a6a6e5..139460f69 100755 --- a/tools/upload-release.sh +++ b/scripts/upload-release.sh @@ -5,7 +5,7 @@ if [ -z "$VERSION" ]; then echo "this script uploads apk and symbols to get.delta.chat" echo "the script does not upload things to gplay or other stores." echo "" - echo "usage: ./tools/upload-release.sh " + echo "usage: ./scrips/upload-release.sh " exit fi if [[ ${VERSION:0:1} == "v" ]]; then diff --git a/tools/tx-pull-translations.sh b/tools/tx-pull-translations.sh deleted file mode 100755 index 0367a535b..000000000 --- a/tools/tx-pull-translations.sh +++ /dev/null @@ -1,2 +0,0 @@ -tx pull -f -./tools/check-translations.sh