From 1f818ff715d6ac0b8cd4ce869113bed4c658d837 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 1 Aug 2015 21:34:28 +1200 Subject: Update various script files --- setup/package.sh | 2 ++ tools/hex.sh | 2 ++ tools/minify.sh | 2 ++ tools/test.sh | 1 + tools/translate.py | 4 ++++ 5 files changed, 11 insertions(+) diff --git a/setup/package.sh b/setup/package.sh index 6b91dd316..8dc9ff1c5 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -1,5 +1,7 @@ #!/bin/sh +cd $(dirname $0) + if [ $# -eq 0 ]; then echo "Version number is not provided" exit 0 diff --git a/tools/hex.sh b/tools/hex.sh index bfc60c0a9..2a7b55901 100755 --- a/tools/hex.sh +++ b/tools/hex.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # # This test data assumes device "352964051908664" exists. # diff --git a/tools/minify.sh b/tools/minify.sh index 14177ec63..4d402d50e 100755 --- a/tools/minify.sh +++ b/tools/minify.sh @@ -1,3 +1,5 @@ +#!/bin/sh + cd $(dirname $0)/../web SDK="../../ext-6.0.0" diff --git a/tools/test.sh b/tools/test.sh index 5cebc744b..de654e283 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -1,3 +1,4 @@ +#!/bin/sh # # This test data assumes three devices exist: diff --git a/tools/translate.py b/tools/translate.py index 69c55979b..8087e3161 100755 --- a/tools/translate.py +++ b/tools/translate.py @@ -3,6 +3,10 @@ import re import os +abspath = os.path.abspath(__file__) +dname = os.path.dirname(abspath) +os.chdir(dname) + path = '../web/l10n/' files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')] -- cgit v1.2.3