#!/bin/bash

. build_version.properties

year=`date "+%Y"`
month=`date "+%m"`
day=`date "+%d"`
hour=`date "+%H"`
minute=`date "+%M"`
hid=`expr $hour \* 60`
mid=`expr $hid + $minute`
id=`expr $mid / 15`
day_num=${year:0-2:2}$month$day
buildId=`expr $day_num \* 100 + $id`
echo "buildId=$buildId" > ./build_id.properties
