From 180473f988392d346e65d500349cfd6bc580f066 Mon Sep 17 00:00:00 2001 From: AnHeuermann Date: Tue, 24 Nov 2020 17:08:59 +0100 Subject: [PATCH] sh script for OMSICpp uses dots in name - workaround to get OMSICpp running on Linux with modelanmes containing dots --- OMCompiler/Compiler/Template/CodegenFMU.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OMCompiler/Compiler/Template/CodegenFMU.tpl b/OMCompiler/Compiler/Template/CodegenFMU.tpl index 8d641448cfa..e491cc26651 100644 --- a/OMCompiler/Compiler/Template/CodegenFMU.tpl +++ b/OMCompiler/Compiler/Template/CodegenFMU.tpl @@ -1373,7 +1373,7 @@ template fmuSourceMakefile(SimCode simCode, String FMUVersion) "Generates the contents of the makefile for the simulation case. Copy libexpat & correct linux fmu" ::= match simCode - case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simulationSettingsOpt = sopt) then + case SIMCODE(modelInfo=modelInfo as MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simulationSettingsOpt = sopt) then let includedir = '<%fileNamePrefix%>.fmutmp/sources/' let mkdir = match makefileParams.platform case "win32" case "win64" then '"mkdir.exe"' else 'mkdir' << @@ -1389,7 +1389,7 @@ template fmuSourceMakefile(SimCode simCode, String FMUVersion) match Config.simCodeTarget() case "omsicpp" then << - <%\t%>chmod +x <%fileNamePrefix%>.sh + <%\t%>chmod +x <%dotPath(modelInfo.name)%>.sh >> end match %>