put hash in version (#2607)

pull/2609/head
Willem Melching 4 years ago committed by GitHub
parent 33faf6b447
commit 6c49c6a9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      release/build_devel.sh

@ -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"

Loading…
Cancel
Save