Skip to content

Commit 52b029c

Browse files
committed
- New procedure to update MSL 3.2.1: Update the svn:externals revision and run make omlibrary-diff to create the patches. Update the copy in build/lib/omlibrary unless you want to commit the patch upstream to modelica.org (only possible if you have an account there)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13340 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3b5d535 commit 52b029c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile.common

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,14 @@ build/lib/omlibrary/stamp: libraries/README
163163
rm -rf build/lib/omlibrary
164164
(cd libraries/ && find . -type d -not -path "*svn*" -exec install -m755 -d ../build/lib/omlibrary/{} \;)
165165
(cd libraries/ && find . -type f -not -path "*svn*" -exec install -m644 {} ../build/lib/omlibrary/{} \;)
166+
rm -f build/lib/omlibrary/*.txt build/lib/omlibrary/*.patch build/lib/omlibrary/README
167+
patch -d "build/lib/omlibrary/" -p1 < "libraries/Modelica 3.2.1.patch"
166168
touch $@
167169

170+
# Run this command to update the omlibrary patch. Add more libraries as needed
171+
omlibrary-diff:
172+
diff -u -x .svn -r "libraries/Modelica 3.2.1" "build/lib/omlibrary/Modelica 3.2.1" > "libraries/Modelica 3.2.1.patch" || echo "*** Modelica 3.2.1 has patch"
173+
168174
distclean: clean
169175
(cd Compiler && $(MAKE) -f $(defaultMakefileTarget) reallyclean)
170176
(cd Compiler/omc_release && $(MAKE) -f $(defaultMakefileTarget) reallyclean)

0 commit comments

Comments
 (0)