build info: add build id, type, variant, and release inforation 07/61707/5 accepted/tizen/common/20160325.134943 accepted/tizen/ivi/20160323.141055 accepted/tizen/mobile/20160323.135818 accepted/tizen/tv/20160323.140023 accepted/tizen/wearable/20160323.135813 submit/tizen/20160323.103430
authorTaeyoung Kim <ty317.kim@samsung.com>
Thu, 10 Mar 2016 03:33:37 +0000 (12:33 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 21 Mar 2016 02:02:42 +0000 (11:02 +0900)
- Examples
  = Build ID: "tizen-mobile_20160308.8_mobile-wayland-armv7l-tm1"
  = Build Type: "eng" or "user"
  = Build Variant: It can be set according to the product type
  = Build release: "20160308.8"

Change-Id: I29e14b461dfe6b18b562922a3d8c03ded750b181
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
script/make_info_file.sh

index 44ea27f..abb335c 100644 (file)
@@ -4,11 +4,22 @@
 
 . /etc/tizen-build.conf
 
+TYPE=$(echo $TZ_BUILD_RELEASE_TYPE | tr '[:upper:]' '[:lower:]')
+
+RELEASE=$(echo $TZ_BUILD_ID | sed 's/[^0-9.]//g')
+
+BUILDID=$(sed -n '/BUILD_ID=/p' /etc/tizen-release)
+BUILDID=$(echo $BUILDID | sed 's/BUILD_ID=//g')
+
 cat <<EOF > /etc/info.ini
 [Version]
 Model=$TZ_BUILD_RELEASE_NAME;
 Build=$TZ_BUILD_ID;
+Release=$RELEASE;
 [Build]
+Type=$TYPE;
 Date=$TZ_BUILD_DATE;
 Time=$TZ_BUILD_TIME;
+Variant=$TZ_BUILD_VARIANT;
+ID=$BUILDID;
 EOF