Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
PREBUILD_COMMAND =
-PREBUILD_COMMAND = sh copy_libs.sh
+PREBUILD_COMMAND = sh copy_libs.sh;sh update_version.sh
POSTBUILD_COMMAND =
POSTBUILD_DESC =
--- /dev/null
+echo "===== Update tizen-manifest.xml version ====="
+VER_SPEC=$(grep "Version" packaging/espp-service.spec | cut -f2 -d : | sed 's/ //g')
+VER_XML=$(grep -oP '(?<= version=").*?(?=">)' tizen-manifest.xml)
+if [ "${VER_SPEC}" != "${VER_XML}" ]; then
+ echo "update tizen-manifest.xml version: ${VER_XML} => ${VER_SPEC}"
+ sed -i "s/\( version=\"\)[^\"]*\(\">\)/\1${VER_SPEC}\2/" tizen-manifest.xml
+fi
+echo "============================================="