Skip to content

Commit

Permalink
- New procedure to update MSL 3.2.1: Update the svn:externals revisio…
Browse files Browse the repository at this point in the history
…n 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
  • Loading branch information
sjoelund committed Oct 12, 2012
1 parent 3b5d535 commit 52b029c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@ build/lib/omlibrary/stamp: libraries/README
rm -rf build/lib/omlibrary
(cd libraries/ && find . -type d -not -path "*svn*" -exec install -m755 -d ../build/lib/omlibrary/{} \;)
(cd libraries/ && find . -type f -not -path "*svn*" -exec install -m644 {} ../build/lib/omlibrary/{} \;)
rm -f build/lib/omlibrary/*.txt build/lib/omlibrary/*.patch build/lib/omlibrary/README
patch -d "build/lib/omlibrary/" -p1 < "libraries/Modelica 3.2.1.patch"
touch $@

# Run this command to update the omlibrary patch. Add more libraries as needed
omlibrary-diff:
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"

distclean: clean
(cd Compiler && $(MAKE) -f $(defaultMakefileTarget) reallyclean)
(cd Compiler/omc_release && $(MAKE) -f $(defaultMakefileTarget) reallyclean)
Expand Down

0 comments on commit 52b029c

Please sign in to comment.