Obtain TZ_BUILD_DATE in the same manner from OBS and QuickBuild
[platform/upstream/meta-generic.git] / scripts / generic-base.post
index 885a8ec..d3a1bd6 100644 (file)
@@ -12,7 +12,8 @@ rm -rf /home
 ln -snf opt/usr/home /home
 
 build_ts=$(date -u +%s)
-build_date=$(date -u --date @$build_ts +%Y%m%d_%H%M%S)
+build_date_local=$(date -u --date @$build_ts +%Y%m%d_%H%M%S)
+build_date=$(echo @BUILD_DATE@ | sed -r -e "s/@BUILD_DATE[@]/$build_date_local/g")
 build_time=$(date -u --date @$build_ts +%H:%M:%S)
 
 sed -ri \