Mod aaa-12 更新版本生成脚本

RCA:
SOL:
修改人:huangxin
检视人:huangxin
This commit is contained in:
黄昕 2019-08-19 17:11:42 +08:00
parent 9389279436
commit c4343cb336
1 changed files with 3 additions and 3 deletions

View File

@ -7,15 +7,15 @@ VERSION_FILE=./Common/compile.h
(
echo /\* This file is auto generated,for sGATE version info \*/
echo /\* Used readelf to get this information form driver of application \*/
echo /\* \"readelf --debug-dump=macro \<filename\>\" \*/
echo /\* \"readelf --debug-dump=macro \<filename\>\" \*/
echo \#define sGATE_COMPILE_DATE \"`date +%F`\"
echo \#define sGATE_COMPILE_TIME \"`date +%T`\"
echo \#define sGATE_COMPILE_MAJOR \"`date +%Y%m%d`\"
echo \#define sGATE_COMPILE_SUB \"`date +%H%M%S`\"
echo \#define sGATE_COMPILE_BY \"`whoami`\"
echo \#define sGATE_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\"
echo \#define sGATE_GIT_TAGS \"`git describe --tags --always --dirty="-dev"`\"
echo \#define sGATE_GIT_VERS \"`git rev-parse HEAD`\"
) > $VERSION_FILE