Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

add version flag#179

Open
romainmenke wants to merge 2 commits into
google:masterfrom
romainmenke:feature/version-flag
Open

add version flag#179
romainmenke wants to merge 2 commits into
google:masterfrom
romainmenke:feature/version-flag

Conversation

@romainmenke

@romainmenke romainmenke commented Apr 6, 2017

Copy link
Copy Markdown

Added a version flag to the cli.

Currently prints : Guetzli 1.0.1

#130

@gtuk

gtuk commented Apr 6, 2017

Copy link
Copy Markdown

@romainmenke Maybe another/better solution is to create a header file dynamicly on the built process to read the version and maybe add the commit hash from another file, like other/popular tools do it, sothat its not required to edit the guetzli.cc on every version change

@romainmenke

Copy link
Copy Markdown
Author

@gtuk c++ is not my strong suit, thought I would get the ball rolling by adding the flag to the cli already. Do you have a reference for the method you describe?

@gtuk

gtuk commented Apr 6, 2017

Copy link
Copy Markdown

@romainmenke i had something like this http://stackoverflow.com/a/1843783 or this http://m.linuxjournal.com/content/add-auto-incrementing-build-number-your-build-process in mind. Maybe its a good first reference. Let me know if i can help you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants