[PR #363] [MERGED] Add --version command #1204

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

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/363
Author: @canihavesomecoffee
Created: 5/22/2016
Status: Merged
Merged: 5/22/2016
Merged by: @cfsmp3

Base: masterHead: master


📝 Commits (6)

  • 6bb86ef Add VS extension to gitignore
  • b5731a2 Add compile info header
  • f694c95 Add hashing library and update makefiles
  • e5b21a3 Adds --version parameter
  • a0787e7 Add windows pre-build event
  • ff3be07 Add linux/mac build scripts

📊 Changes

15 files changed (+1777 additions, -25 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 linux/Makefile (+15 -7)
📝 linux/build (+4 -2)
📝 linux/builddebug (+4 -2)
linux/pre-build.sh (+34 -0)
📝 mac/build.command (+4 -2)
mac/pre-build.sh (+34 -0)
src/lib_ccx/compile_info.h (+5 -0)
📝 src/lib_ccx/params.c (+45 -0)
src/lib_hash/README (+277 -0)
src/lib_hash/sha2.c (+1064 -0)
src/lib_hash/sha2.h (+193 -0)
📝 windows/ccextractor.vcxproj (+11 -3)
📝 windows/ccextractor.vcxproj.filters (+39 -9)
windows/pre-build.bat (+47 -0)

📄 Description

This PR adds the necessary functionality for a new --version option, as requested in #355.

  • Adds a library for calculating SHA256 over the live running executable
  • Adds a header file with the Git commit & build date
  • Adds pre-build(.bat/.sh) script that creates the header file when called. This uses the current date and either one of git rev-parse HEAD, .git/HEAD or .git/refs/master depending on availability. Defaults to "Unknown" if no .git directory is present.
  • Updates the build scripts (and VS project) to include a call to the pre-build script before compilation starts

Closes #355.


🔄 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/363 **Author:** [@canihavesomecoffee](https://github.com/canihavesomecoffee) **Created:** 5/22/2016 **Status:** ✅ Merged **Merged:** 5/22/2016 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (6) - [`6bb86ef`](https://github.com/CCExtractor/ccextractor/commit/6bb86efa97ad019a9ea305ad858a65cc7f8e762a) Add VS extension to gitignore - [`b5731a2`](https://github.com/CCExtractor/ccextractor/commit/b5731a279a46fbc0b432ea4542d37fffdce52a33) Add compile info header - [`f694c95`](https://github.com/CCExtractor/ccextractor/commit/f694c95510d40feedc47494a5a9e328c05fd7ef3) Add hashing library and update makefiles - [`e5b21a3`](https://github.com/CCExtractor/ccextractor/commit/e5b21a3a91f79242a159a0a3ff9d8ac2dead59b1) Adds --version parameter - [`a0787e7`](https://github.com/CCExtractor/ccextractor/commit/a0787e740efb6aac79d4ab553d31d0131e798b76) Add windows pre-build event - [`ff3be07`](https://github.com/CCExtractor/ccextractor/commit/ff3be07df51b93f697a188e0aada75c3579c16b0) Add linux/mac build scripts ### 📊 Changes **15 files changed** (+1777 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `linux/Makefile` (+15 -7) 📝 `linux/build` (+4 -2) 📝 `linux/builddebug` (+4 -2) ➕ `linux/pre-build.sh` (+34 -0) 📝 `mac/build.command` (+4 -2) ➕ `mac/pre-build.sh` (+34 -0) ➕ `src/lib_ccx/compile_info.h` (+5 -0) 📝 `src/lib_ccx/params.c` (+45 -0) ➕ `src/lib_hash/README` (+277 -0) ➕ `src/lib_hash/sha2.c` (+1064 -0) ➕ `src/lib_hash/sha2.h` (+193 -0) 📝 `windows/ccextractor.vcxproj` (+11 -3) 📝 `windows/ccextractor.vcxproj.filters` (+39 -9) ➕ `windows/pre-build.bat` (+47 -0) </details> ### 📄 Description This PR adds the necessary functionality for a new --version option, as requested in #355. - Adds a library for calculating SHA256 over the live running executable - Adds a header file with the Git commit & build date - Adds pre-build(.bat/.sh) script that creates the header file when called. This uses the current date and either one of `git rev-parse HEAD`, `.git/HEAD` or `.git/refs/master` depending on availability. Defaults to "Unknown" if no .git directory is present. - Updates the build scripts (and VS project) to include a call to the pre-build script before compilation starts Closes #355. --- <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:00:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1204