From b26276c7ec6472b435e15a04f5c5d74443d9754b Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Jul 03 2019 06:25:19 +0000 Subject: Fix extractor of OpenToonz version --- diff --git a/docker-builder-data/build/script/packet/opentoonz-master.sh b/docker-builder-data/build/script/packet/opentoonz-master.sh index 500a3c7..07ae132 100644 --- a/docker-builder-data/build/script/packet/opentoonz-master.sh +++ b/docker-builder-data/build/script/packet/opentoonz-master.sh @@ -14,10 +14,10 @@ if [ "$PLATFORM" = "linux" ]; then fi pkhook_version() { - cat "$PK_DIRNAME/toonz/sources/toonz/main.cpp" \ - | grep "const.char.\*applicationFullName.=.\"OpenToonz." \ - | cut -d \" -f 2 \ - | cut -d " " -f 2 \ + local LOCAL_FILENAME="$PK_DIRNAME/toonz/sources/include/tversion.h" + LANG=C LC_NUMERIC=C printf "%0.1f.%g\\n" \ + `cat "$LOCAL_FILENAME" | grep applicationVersion -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ + `cat "$LOCAL_FILENAME" | grep applicationRevision -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ || return 1 }