replace @BUILD_ID@ and @BUILD_DATE@ in /etc/tizen-build.conf 38/27938/2 accepted/tizen/common/20140923.145851 accepted/tizen/ivi/20140924.082310 submit/tizen_common/20140923.144456 submit/tizen_ivi/20140924.000000 submit/tizen_ivi/20140924.061652
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 23 Sep 2014 09:26:51 +0000 (11:26 +0200)
committerStéphane Desneux (sdx) <stephane.desneux@open.eurogiciel.org>
Tue, 23 Sep 2014 14:43:42 +0000 (07:43 -0700)
tizen-release now ships /etc/tizen-build.conf with build information
This information must be completed at image creation time with
the snapshot ID and the image build date.

Change-Id: I7e5055dace50286f760e462ecdec7f4d2393ac73
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
scripts/buildname.nochroot

index b248084..330adc5 100644 (file)
@@ -3,4 +3,9 @@ if [ -n "$IMG_NAME" ]; then
        echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
        echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/os-release
        echo "$IMG_NAME @BUILD_ID@" >>$INSTALL_ROOT/etc/tizen-snapshot
+
+       sed -ri \
+               -e 's|@BUILD_ID[@]|@BUILD_ID@|g' \
+               -e "s|@BUILD_DATE[@]|$(date +%Y%m%d_%H%M%S)|g" \
+               $INSTALL_ROOT/etc/tizen-build.conf
 fi