-
Notifications
You must be signed in to change notification settings - Fork 128
Show commit and version numbers #451
Conversation
|
Oh no, libvirt-dev doesn't have static library, so revert to dynamicallly built binary |
08b4d85 to
0111778
Compare
Makefile.am
Outdated
| endif | ||
|
|
||
| COMMIT=`git describe --dirty --always --tags 2> /dev/null || true` | ||
| VERSION=`cat ./VERSION` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ./VERSION exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I added a "VERSION" file in this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gao-feng Rebased.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WeiZhang555 I guess you don't need VERSION file, var VERSION already exists,
https://github.com/hyperhq/runv/blob/master/configure.ac#L5
https://github.com/hyperhq/runv/blob/master/configure.ac#L108
0111778 to
c8c1b83
Compare
Print git commit hash id when run `runv -v`, this will be helpful for debug. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
c8c1b83 to
8627454
Compare
|
@gao-feng You're right, update now. |
|
LGTM, thanks! |
Show commit and version numbers
Print git commit hash id when run
runv -v, this will be helpful fordebug.
Signed-off-by: Zhang Wei zhangwei555@huawei.com
Examples:
Means version: 0.7.0, latest tag is v0.7.0, we are 145 commits forward from that tag, current git commit is 23cbab6,
dirtymeans we have uncommited changes in repo when building the binary.