Sign in
android
/
platform
/
tools
/
acloud
/
2fed9b6a58a4cd65d791daac28607d22c0745857
/
.
/
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