blob: 2f49dcdcd6d1201266c9c776e90d12e7b40c521e [file] [log] [blame]
cylan9af14692020-02-21 18:11:35 +08001#!/bin/bash
2OUTFILE="$1"
cylan910a6842020-02-28 11:46:05 +00003BUILD_NUMBER_FROM_FILE=${OUT_DIR}/build_number.txt
4if test -f "$BUILD_NUMBER_FROM_FILE"; then
5 cp ${BUILD_NUMBER_FROM_FILE} ${OUTFILE}
cylan9af14692020-02-21 18:11:35 +08006else
7 DATETIME=$(TZ='UTC' date +'%Y.%m.%d')
8 echo ${DATETIME}_local_build > ${OUTFILE}
9fi