diff --git a/src/version_autogen.h b/src/version_autogen.h index 5713683..316e455 100644 --- a/src/version_autogen.h +++ b/src/version_autogen.h @@ -5,7 +5,7 @@ #ifndef VERSION_AUTOGEN_H #define VERSION_AUTOGEN_H -#define BUILD_NUMBER 230 -#define COMMIT_HASH "645222332ebd341a19835353dffa7324d691f6cd" +#define BUILD_NUMBER 231 +#define COMMIT_HASH "cd40a0cffdbd8bb642c80c6fc06b530099fea062" #endif // VERSION_AUTOGEN_H diff --git a/update-version.sh b/update-version.sh index e9c9769..c345345 100755 --- a/update-version.sh +++ b/update-version.sh @@ -1,6 +1,6 @@ #!/bin/sh -commitNum=$(git log --oneline | wc -l | tr -d ' ') +commitNum=$(git rev-list HEAD --count) commitHash=$(git rev-parse --verify HEAD) echo "// This file is auto-generated" > src/version_autogen.h @@ -13,4 +13,4 @@ echo "" >> src/version_autogen.h echo "#define BUILD_NUMBER $commitNum" >> src/version_autogen.h echo "#define COMMIT_HASH \"$commitHash\"" >> src/version_autogen.h echo "" >> src/version_autogen.h -echo "#endif // VERSION_AUTOGEN_H" >> src/version_autogen.h \ No newline at end of file +echo "#endif // VERSION_AUTOGEN_H" >> src/version_autogen.h