Skip to content

Commit

Permalink
update git version generate by describe
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Tsai committed Jun 21, 2024
1 parent 4db7f48 commit 910fb64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
* WHETHER THEY ARE BUILT BY OTHERS OR DURING DEVELOPMENT OR FOR THE
* OFFICIAL PARTCLONE RELEASES.
*/
#define git_version "1fc4ad9"
#define git_version "0.3.29-6-g4db7f48-dirty"

5 changes: 2 additions & 3 deletions toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ then
scriptdir=`dirname "$0"`
file="$scriptdir/src/version.h"
GIT_REPOSITORY=`git remote -v | grep partclone`
GIT_REVISION=`git log -1 | grep ^commit | sed 's/commit //'`
#GIT_REVISION_UPSTREAM=`git log master -1 | grep commit | sed 's/commit //'`
GIT_REVISION=`git describe --abbrev=7 --dirty --always --tags`
git_ver="none"

if [ "${GIT_REPOSITORY}" = "" ];
Expand All @@ -195,7 +194,7 @@ cat > ${file}.tmp << EOF
* WHETHER THEY ARE BUILT BY OTHERS OR DURING DEVELOPMENT OR FOR THE
* OFFICIAL PARTCLONE RELEASES.
*/
#define git_version "${git_ver:0:7}"
#define git_version "${git_ver}"
EOF
# Do not modify the version file if the content did not change
Expand Down

0 comments on commit 910fb64

Please sign in to comment.