Commit 00ad505b authored by Tim Blechmann's avatar Tim Blechmann Committed by Brad King

BundleUtilities: Allow Info.plist files which use CR line endings

Convert \r to our internal end-of-line character just as we do \n.
Signed-off-by: Tim Blechmann's avatarTim Blechmann <tim@klingt.org>
parent 76acc128
...@@ -237,6 +237,7 @@ function(get_bundle_main_executable bundle result_var) ...@@ -237,6 +237,7 @@ function(get_bundle_main_executable bundle result_var)
file(READ "${bundle}/Contents/Info.plist" info_plist) file(READ "${bundle}/Contents/Info.plist" info_plist)
string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}") string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}")
string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}") string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
string(REGEX REPLACE "\r" "${eol_char};" info_plist "${info_plist}")
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that # Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
# is the name of the main executable. # is the name of the main executable.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment