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 | |
parent | 97bfb89c0e0049d7ce86144a7c8f6dea860ab921 (diff) | |
download | scintilla-mirror-56f4cf0c0d32c5b9025b2f88c0c55f3432e96b1f.tar.gz |
Regenerate version numbers in cocoa/Scintilla project.
-rw-r--r-- | cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj | 4 | ||||
-rw-r--r-- | scripts/LexGen.py | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj b/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj index e8224e995..6f40da09e 100644 --- a/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj +++ b/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj @@ -640,7 +640,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 4.3.3; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -701,7 +701,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 4.3.3; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; 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(): |