mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 02:43:47 +08:00
put hash in version (#2607)
old-commit-hash: 6c49c6a9f17cc2ee11607417bb3c17b8b9cdea3c
This commit is contained in:
@@ -44,7 +44,7 @@ git clean -xdf
|
||||
git checkout -- selfdrive/common/version.h
|
||||
|
||||
VERSION=$(cat selfdrive/common/version.h | awk -F\" '{print $2}')
|
||||
echo "#define COMMA_VERSION \"$VERSION-release\"" > selfdrive/common/version.h
|
||||
echo "#define COMMA_VERSION \"$VERSION-$(git --git-dir=$SOURCE_DIR/.git rev-parse --short HEAD)-$(date '+%Y-%m-%dT%H:%M:%S')\"" > selfdrive/common/version.h
|
||||
|
||||
# do the files copy
|
||||
echo "[-] copying files T=$SECONDS"
|
||||
|
||||
Reference in New Issue
Block a user