• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2OUTFILE="$1"
3BUILD_NUMBER_FROM_FILE=${OUT_DIR}/build_number.txt
4if test -f "$BUILD_NUMBER_FROM_FILE"; then
5  cp ${BUILD_NUMBER_FROM_FILE} ${OUTFILE}
6else
7  DATETIME=$(TZ='UTC' date +'%Y.%m.%d')
8  echo ${DATETIME}_local_build > ${OUTFILE}
9fi
10