Hi Dirk,
Have a look at genVersionHeader.pl which is installed by Base since 3.15.0.1.
used here
https://github.com/epics-base/epics-base/blob/4c192e7bba7d3ff13e3a076d0082d55e4d807fac/modules/database/src/ioc/Makefile#L48
and by the example template
https://github.com/epics-base/epics-base/blob/d77a96d23d962f996f12e29255aa29beed64c1b1/modules/database/src/template/top/exampleApp/src/Makefile#L35
On 6/30/20 7:26 AM, Zimoch Dirk (PSI) via Core-talk wrote:
> Hi folks,
>
> I have a technical git related question. For StreamDevice, I used to update a version header file manually, but I always
> forgot to update the numbers when tagging a release. How can I do this automatically? Git has hooks, but none for tag as
> it seems (which would be also too late to be included in the tagged commit).
>
> The internet says: "No problem, simply generate the header (e.g. from 'git describe') when building your code." No
> problem indeed as long as I have the git repo. But those users that download zip files from github instead of cloning
> the repo complain now, as 'git describe' does not work for them, of course.
>
> Is there a way to generate the version header (or any other file that contains the related tag) on github when pushing
> the release, so it is included when downloading a release zip file?
>
> Dirk
>
- References:
- version headers Zimoch Dirk (PSI) via Core-talk
- Navigate by Date:
- Prev:
Re: version headers J. Lewis Muir via Core-talk
- Next:
Re: Problems with dbLinkIsConstant Johnson, Andrew N. via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: version headers J. Lewis Muir via Core-talk
- Next:
Re: version headers Michael Davidsaver via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|