1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 23:56:05 +02:00

Added multi-line custom build command

This commit is contained in:
Brian Fiete 2020-06-22 08:49:23 -07:00
parent c4544f67d3
commit c6f1f358a9
8 changed files with 110 additions and 17 deletions

View file

@ -130,7 +130,7 @@ namespace IDE
bool isCommand = false;
for (let c in origCustomCmd.RawChars)
{
if ((c == '\"') || (c == '$'))
if ((c == '\"') || (c == '$') || (c == '\n'))
break;
if (c == '(')
isCommand = true;
@ -146,6 +146,9 @@ namespace IDE
{
customCmd.Append("%exec ");
gApp.ResolveConfigString(gApp.mPlatformName, workspaceOptions, project, options, origCustomCmd, "custom command", customCmd);
// For multi-line execs
customCmd.Replace('\n', '\v');
}
if (customCmd.IsWhiteSpace)