Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 490 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 490 Bytes

Recording the Git hash at build time

In Recipe 6, Recording the Git hash at configure time, we recorded the state of the code repository (Git hash) at configure time. In this recipe, we wish to go a step further and demonstrate how to record the Git hash (or, generally, perform other actions) at build time, to make sure that these actions are run every time we build the code, since we may configure only once but build several times.