Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
tools
/
acloud
/
ab409f93626e227ad836604481a88cbcb30329bd
/
.
/
gen_version.sh
blob: 2f49dcdcd6d1201266c9c776e90d12e7b40c521e [
file
] [
log
] [
blame
]
#!/bin/bash
OUTFILE
=
"$1"
BUILD_NUMBER_FROM_FILE
=
$
{
OUT_DIR
}/
build_number
.
txt
if
test
-
f
"$BUILD_NUMBER_FROM_FILE"
;
then
cp $
{
BUILD_NUMBER_FROM_FILE
}
$
{
OUTFILE
}
else
DATETIME
=
$
(
TZ
=
'UTC'
date
+
'%Y.%m.%d'
)
echo $
{
DATETIME
}
_local_build
>
$
{
OUTFILE
}
fi