[PR #764] [MERGED] [IMPROVEMENT][FIX] Get commit hash and compilation date when built using CMake. #1579

Closed
opened 2026-01-29 17:17:19 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/764
Author: @saurabhshri
Created: 8/12/2017
Status: Merged
Merged: 8/20/2017
Merged by: @cfsmp3

Base: masterHead: commit_hash


📝 Commits (1)

  • 467a6ce Get commit hash and compilation date when built using cmake.

📊 Changes

2 files changed (+33 additions, -5 deletions)

View changed files

📝 src/CCExtractorConfig.h.in (+9 -3)
📝 src/CMakeLists.txt (+24 -2)

📄 Description

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Make available information such as Compilation Date and Git Commit Hash in the program.

Before :

ccextractor --version
CCExtractor 0.85, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
CCExtractor detailed version info
	Version: 0.85
	Git commit: Unknown
	Compilation date: Unknown
	File SHA256: 52ca7853b4e37a17e6bae41984610b1d38ca6281d6b99ac020668ffc6a2f7391

After :

ccextractor --version
CCExtractor 0.85, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
CCExtractor detailed version info
	Version: 0.85
	Git commit: ce0fc1b423ef2d4a83953b80bc32b5ccfd776f00
	Compilation date: 2017-08-12
	File SHA256: 52ca7853b4e37a17e6bae41984610b1d38ca6281d6b99ac020668ffc6a2f7391

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/764 **Author:** [@saurabhshri](https://github.com/saurabhshri) **Created:** 8/12/2017 **Status:** ✅ Merged **Merged:** 8/20/2017 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `commit_hash` --- ### 📝 Commits (1) - [`467a6ce`](https://github.com/CCExtractor/ccextractor/commit/467a6ce74e35142c72392a0c09dd7b98ef74bd87) Get commit hash and compilation date when built using cmake. ### 📊 Changes **2 files changed** (+33 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/CCExtractorConfig.h.in` (+9 -3) 📝 `src/CMakeLists.txt` (+24 -2) </details> ### 📄 Description **In raising this pull request, I confirm the following (please check boxes):** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that another pull request for this purpose does not exist. - [x] I have considered, and confirmed that this submission will be valuable to others. - [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [x] I give this submission freely, and claim no ownership to its content. **My familiarity with the project is as follows (check one):** - [ ] I have never used CCExtractor. - [ ] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [x] I am an active contributor to CCExtractor. --- Make available information such as Compilation Date and Git Commit Hash in the program. Before : ``` ccextractor --version CCExtractor 0.85, Carlos Fernandez Sanz, Volker Quetschke. Teletext portions taken from Petr Kutalek's telxcc -------------------------------------------------------------------------- CCExtractor detailed version info Version: 0.85 Git commit: Unknown Compilation date: Unknown File SHA256: 52ca7853b4e37a17e6bae41984610b1d38ca6281d6b99ac020668ffc6a2f7391 ``` After : ``` ccextractor --version CCExtractor 0.85, Carlos Fernandez Sanz, Volker Quetschke. Teletext portions taken from Petr Kutalek's telxcc -------------------------------------------------------------------------- CCExtractor detailed version info Version: 0.85 Git commit: ce0fc1b423ef2d4a83953b80bc32b5ccfd776f00 Compilation date: 2017-08-12 File SHA256: 52ca7853b4e37a17e6bae41984610b1d38ca6281d6b99ac020668ffc6a2f7391 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:17:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1579