diff options
author | Neil <nyamatongwe@gmail.com> | 2020-05-23 20:47:01 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-05-23 20:47:01 +1000 |
commit | 56f4cf0c0d32c5b9025b2f88c0c55f3432e96b1f (patch) | |
tree | 053bf057c0d3267f6d47370ea703bce6e25bc15e /scripts | |
parent | 97bfb89c0e0049d7ce86144a7c8f6dea860ab921 (diff) | |
download | scintilla-mirror-56f4cf0c0d32c5b9025b2f88c0c55f3432e96b1f.tar.gz |
Regenerate version numbers in cocoa/Scintilla project.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/LexGen.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/LexGen.py b/scripts/LexGen.py index 0aaabbc9f..59a302564 100644 --- a/scripts/LexGen.py +++ b/scripts/LexGen.py @@ -7,6 +7,7 @@ # Requires Python 3.6 or later # Files are regenerated in place with templates stored in comments. # The format of generation comments is documented in FileGenerator.py. +# Also updates version numbers and modification dates. from FileGenerator import Regenerate, UpdateLineInFile, \ ReplaceREInFile, UpdateLineInPlistFile, ReadFileAsList, UpdateFileFromLines, \ @@ -50,10 +51,19 @@ def UpdateVersionNumbers(sci, root): UpdateLineInFile(root / "doc/ScintillaHistory.html", ' Released ', ' Released ' + sci.dmyModified + '.') - UpdateLineInPlistFile(root / "cocoa/ScintillaFramework/Info.plist", + + cocoa = root / "cocoa" + + UpdateLineInPlistFile(cocoa / "ScintillaFramework/Info.plist", "CFBundleVersion", sci.versionDotted) - UpdateLineInPlistFile(root / "cocoa/ScintillaFramework/Info.plist", + UpdateLineInPlistFile(cocoa / "ScintillaFramework/Info.plist", + "CFBundleShortVersionString", sci.versionDotted) + + UpdateLineInPlistFile(cocoa / "Scintilla" / "Scintilla" / "Info.plist", "CFBundleShortVersionString", sci.versionDotted) + ReplaceREInFile(cocoa / "Scintilla"/ "Scintilla.xcodeproj" / "project.pbxproj", + "CURRENT_PROJECT_VERSION = [0-9.]+;", + f'CURRENT_PROJECT_VERSION = {sci.versionDotted};') # Last 24 digits of UUID, used for item IDs in Xcode def uid24(): |