2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-06-22 15:43:01 -07:00
|
|
|
# Let's regenerate 'svnversion.h'
|
2020-06-19 10:32:57 -07:00
|
|
|
# TODO: handle std err - for example, in case svn needs upgrade
|
|
|
|
|
2022-01-30 21:16:52 -08:00
|
|
|
#
|
|
|
|
# 2022: is it time to rename svn_version.h into something else?
|
|
|
|
# we should probably remove VCS_VERSION and keep only GIT_HASH
|
|
|
|
#
|
|
|
|
|
2020-06-22 15:43:01 -07:00
|
|
|
GIT_HASH=$(git rev-parse HEAD)
|
2020-06-19 10:32:57 -07:00
|
|
|
echo "Git hash=$GIT_HASH"
|
|
|
|
java -jar ../java_tools/version2header.jar 10000 https://github.com/rusefi/rusefi $GIT_HASH
|