[Github-comments] [geany/geany] RFC: Include Scintilla version in debug info (Discussion #3108)
Robert Di Pardo
notifications at xxxxx
Sun Jan 23 00:23:30 UTC 2022
> hope its going to be single digits forevermore
Perhaps not that long, but the foreseeable future would be a safe bet.
> So how are those defines generated?
With Neil's weapon of choice, naturally:
```python
def UpdateVersionNumbers(sci, pathSciTE, lexVersion, scintillaVersion):
pathHeader = pathSciTE / "src" / "SciTE.h"
UpdateLineInFile(pathHeader,
'#define VERSION_SCITE',
'#define VERSION_SCITE "' + sci.versionDotted + '"')
UpdateLineInFile(pathHeader,
"#define VERSION_WORDS",
"#define VERSION_WORDS " + sci.versionCommad)
UpdateLineInFile(pathHeader,
'#define COPYRIGHT_DATES',
'#define COPYRIGHT_DATES "December 1998-' + sci.myModified + '"')
UpdateLineInFile(pathHeader,
'#define COPYRIGHT_YEARS',
'#define COPYRIGHT_YEARS "1998-' + sci.yearModified + '"')
UpdateLineInFile(pathHeader,
'#define VERSION_LEXILLA',
'#define VERSION_LEXILLA "' + lexVersion + '"')
UpdateLineInFile(pathHeader,
'#define VERSION_SCINTILLA',
'#define VERSION_SCINTILLA "' + scintillaVersion + '"')
````
<https://sourceforge.net/p/scintilla/scite/ci/default/tree/scripts/RegenerateSource.py#l94>
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/3108#discussioncomment-2025554
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/repo-discussions/3108/comments/2025554 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220122/4f7f32ed/attachment.htm>
More information about the Github-comments
mailing list