Let's try in in python translate script directly, to keep support ci process.

Reverted build.sh
This commit is contained in:
GeminiServer
2020-03-19 18:17:20 +01:00
parent 4aabf770cd
commit a5ec2bcfa0
2 changed files with 35 additions and 30 deletions

View File

@@ -8,7 +8,6 @@ AVAILABLE_LANGUAGES=()
BUILD_LANGUAGES=()
AVAILABLE_MODELS=("TS100" "TS80")
BUILD_MODELS=()
BUILD_VERSION=()
usage ()
{
@@ -23,14 +22,6 @@ INFO : By default, without parameters, the build is for all platforms and all la
exit 1
}
buildVersion ()
{
GIT_HASH="$(git describe --always)"
VERSION="$(grep '#define BUILD_VERSION' 'version.h' | awk '{print $3}' | sed 's/"//g')"
BUILD_VERSION=$VERSION'.'$GIT_HASH
echo "Building version: $BUILD_VERSION"
}
checkLastCommand ()
{
if [ $? -eq 0 ]
@@ -90,10 +81,6 @@ echo " by Ralim"
echo " "
echo "*********************************************"
#Get and show build version
buildVersion
echo "*********************************************"
# Calculate available languages
for f in "$TRANSLATION_DIR"/translation_*.json
do
@@ -143,7 +130,7 @@ echo "*********************************************"
if [ ${#BUILD_LANGUAGES[@]} -gt 0 ] && [ ${#BUILD_MODELS[@]} -gt 0 ]
then
echo "Generating Translation.cpp"
python3 "$TRANSLATION_DIR/$TRANSLATION_SCRIPT" "$BUILD_VERSION" "$TRANSLATION_DIR"
python3 "$TRANSLATION_DIR/$TRANSLATION_SCRIPT" "$TRANSLATION_DIR"
checkLastCommand
echo "Cleaning previous builds"