Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
simulators
server
Commits
1a0560f2
Commit
1a0560f2
authored
Jun 02, 2019
by
hengwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script for re-compiling fmu files
parent
3dd20068
Pipeline
#146423
canceled with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
docs/scripts/recompile_fmu.sh
docs/scripts/recompile_fmu.sh
+30
-0
No files found.
docs/scripts/recompile_fmu.sh
0 → 100755
View file @
1a0560f2
#!/usr/bin/env bash
# This script re-compile all *.fmu files in the current directory using
# current available c++ compiler. This makes the fmu files compatible with
# the host OS.
# For example if you have .fmu files exported from ModelicaEditor running
# in Windows but you need linux version. To make these .fmu files compatible
# with linux, you should:
# 1. import and re-export the Windows version .fmu files using linux ModelicaEditor
# 2. copy this script in the same directory where the re-exported .fmu files are located
# 3. run this script with ./recompile_fmu.sh
# 4. all .fmu files should be re-compiled and compatible with linux
tmp_dir
=
./unzip_dir
function
compile
()
{
filename
=
"
$1
"
unzip
$filename
-d
$tmp_dir
cd
${
tmp_dir
}
/sources
&&
./configure
&&
make
cd
../..
zip
-r
$filename
$tmp_dir
rm
-rf
$tmp_dir
echo
"
$filename
"
}
for
f
in
./
*
.fmu
;
do
compile
"
$f
"
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment