cylan | 9af1469 | 2020-02-21 18:11:35 +0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | OUTFILE="$1" | ||||
cylan | 910a684 | 2020-02-28 11:46:05 +0000 | [diff] [blame] | 3 | BUILD_NUMBER_FROM_FILE=${OUT_DIR}/build_number.txt |
4 | if test -f "$BUILD_NUMBER_FROM_FILE"; then | ||||
5 | cp ${BUILD_NUMBER_FROM_FILE} ${OUTFILE} | ||||
cylan | 9af1469 | 2020-02-21 18:11:35 +0800 | [diff] [blame] | 6 | else |
7 | DATETIME=$(TZ='UTC' date +'%Y.%m.%d') | ||||
8 | echo ${DATETIME}_local_build > ${OUTFILE} | ||||
9 | fi |