Coder Social home page Coder Social logo

Comments (15)

markh794 avatar markh794 commented on July 20, 2024 1

Sounds like a good thing to add.. Let me work on it.

from mhvtl.

markh794 avatar markh794 commented on July 20, 2024 1

Is this the type of format you're interested in ?
$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2, commit date: 2024-05-15T10:27:28+10:00

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024 1

I think I figured out how to download it so that vtlcmd -V shows the fuller version information. I just need to run "git clone https://github.com/markh794/mhvtl.git" and build from the source tree created from that.

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

I think this might not be so easy to get the commit number since that is added by github, but maybe the date could be easier to show.

from mhvtl.

markh794 avatar markh794 commented on July 20, 2024

In the above example - is 'date created' - the git commit date, or the compile date of the binary itself ?

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

It is the git commit date.

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

Yeah, that should work.

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

I guess you could shorten to something like this:

$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2 (2024-05-15T10:27:28+10:00)

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

Or maybe even:

$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2 2024-05-15T10:27:28+10:00

from mhvtl.

gonzoleeman avatar gonzoleeman commented on July 20, 2024

from mhvtl.

markh794 avatar markh794 commented on July 20, 2024

I'm targeting the additional git version stuff for non RPM builds only. Let's see how it works out :)

from mhvtl.

markh794 avatar markh794 commented on July 20, 2024

Commit d6da2cb added this info. But only if built from git source. RPM based builds should (still) only report the RPM build version - e.g. 1.7.1

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

Thank you very much for making these changes! I'll try it out soon and let you know what I think.

from mhvtl.

rohr22 avatar rohr22 commented on July 20, 2024

Hi, Mark. I tried out the latest code and vtlcmd -V appears to have the same output as before. When I did the make, I saw stuff like this:

make[1]: Entering directory '/opt/vtl.source/commit_1582/mhvtl-master/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION="1.7.1" -DMHVTL_GITDATE="" -DMHVTL_GITHASH=\"\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH="/opt/vtl" -DMHVTL_CONFIG_PATH="/etc/mhvtl" -DSYSTEMD_SERVICE_DIR="/lib/systemd/system" -c -fpic log.c

The MHVTL_GITHASH value is "". I downloaded the latest mhvtl code (commit 1582) by clicking on the "Code" link at https://github.com/markh794/mhvtl and then clicking on "Download ZIP" from the HTTPS tab. What is the correct way to download the code so that MHVTL_GITHASH gets set properly? I looked at how it is set and config.mk has:

GITHASH ?= $(if $(shell test -d $(TOPDIR)/.git && echo 1),commit:\ $(shell git show -s --format=%h))

I don't have a .git directory under the top directory. Instead I have a .github directory.

Thank you,
Peter

from mhvtl.

markh794 avatar markh794 commented on July 20, 2024

Hi, Mark. I tried out the latest code and vtlcmd -V appears to have the same output as before. When I did the make, I saw stuff like this:

make[1]: Entering directory '/opt/vtl.source/commit_1582/mhvtl-master/usr' cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION="1.7.1" -DMHVTL_GITDATE="" -DMHVTL_GITHASH=\"\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH="/opt/vtl" -DMHVTL_CONFIG_PATH="/etc/mhvtl" -DSYSTEMD_SERVICE_DIR="/lib/systemd/system" -c -fpic log.c

The MHVTL_GITHASH value is "". I downloaded the latest mhvtl code (commit 1582) by clicking on the "Code" link at https://github.com/markh794/mhvtl and then clicking on "Download ZIP" from the HTTPS tab. What is the correct way to download the code so that MHVTL_GITHASH gets set properly? I looked at how it is set and config.mk has:

GITHASH ?= $(if $(shell test -d $(TOPDIR)/.git && echo 1),commit:\ $(shell git show -s --format=%h))

I don't have a .git directory under the top directory. Instead I have a .github directory.

Thank you, Peter

Let me try that method and see if I can include check for .github dir :)

from mhvtl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.