├── .rpmmacros ├── macports-all-depends.sh ├── templates ├── macports │ ├── Makefile.in │ ├── configure.in │ ├── Portfile.in │ └── Portfile.omlib.in ├── debian │ ├── changelog │ ├── Makefile │ ├── copyright.gpl3+ │ ├── copyright.lgpl3+ │ ├── rules │ ├── control │ ├── copyright.bsd3 │ ├── copyright.modelica1.1 │ ├── copyright.buildings │ ├── copyright.mpl2 │ └── copyright.modelica2 └── rpm │ └── omlib.spec ├── diff-library.sh ├── debian-name.sh ├── .gitignore ├── README.md ├── get-name.sh ├── addMissingWithin.sh ├── check-debian.sh ├── check-latest.sh ├── svn-logoneline.sh ├── check-uses.sh ├── test-valid.sh ├── get-version.sh ├── macports-build.sh ├── checkout-svn.sh ├── checkout-git.sh ├── .CI └── Jenkinsfile ├── debian-build.sh ├── rpm-build.sh ├── Makefile ├── update-library.sh ├── update-library.py ├── svn2cl.xsl ├── repos.json └── Makefile.libs /.rpmmacros: -------------------------------------------------------------------------------- 1 | %_binaries_in_noarch_packages_terminate_build 0 2 | -------------------------------------------------------------------------------- /macports-all-depends.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | find *.ok -print0 | sed "s/[.]ok//g" | xargs -0 -n 1 sh -c 'echo -n "port:`../debian-name.sh $1` " ' sh 4 | -------------------------------------------------------------------------------- /templates/macports/Makefile.in: -------------------------------------------------------------------------------- 1 | all: 2 | install: 3 | mkdir -p ${DESTDIR}@prefix@/lib/omlibrary/ 4 | cp -a libraries/* ${DESTDIR}@prefix@/lib/omlibrary/ 5 | -------------------------------------------------------------------------------- /templates/macports/configure.in: -------------------------------------------------------------------------------- 1 | AC_INIT([OpenModelica],[dev],[https://trac.openmodelica.org/OpenModelica],[openmodelica],[https://openmodelica.org]) 2 | AC_OUTPUT(Makefile) 3 | -------------------------------------------------------------------------------- /templates/debian/changelog: -------------------------------------------------------------------------------- 1 | @DEBNAME@ (@DEBREV@-1) unstable; urgency=low 2 | 3 | * Automatic subversion build 4 | -- OpenModelica Build System @TIME@ 5 | -------------------------------------------------------------------------------- /templates/debian/Makefile: -------------------------------------------------------------------------------- 1 | PREFIX=/usr 2 | 3 | build: 4 | install: 5 | mkdir -p "$(DESTDIR)$(PREFIX)/lib/omlibrary/" 6 | cp -rp "@NAME@@EXT@" "$(DESTDIR)$(PREFIX)/lib/omlibrary/" 7 | -------------------------------------------------------------------------------- /diff-library.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find build "$1" -name "*.rej" -exec rm -f {} ";" 3 | find build "$1" -name "*.orig" -exec rm -f {} ";" 4 | diff --text -u -x .svn -r "$1" "build/$2" > "$3" 5 | true 6 | -------------------------------------------------------------------------------- /debian-name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LIB=$1 4 | shift 5 | VERSION=`echo $* | tr -- '[:upper:]_ ' '[:lower:]--'` 6 | echo "omlib-`echo $LIB | tr '[:upper:]_' '[:lower:]-'``test -z "$VERSION" || echo "-"`$VERSION" 7 | -------------------------------------------------------------------------------- /templates/debian/copyright.gpl3+: -------------------------------------------------------------------------------- 1 | Files: * 2 | License: GPL-3.0+ 3 | On Debian systems, the complete text of the GNU General 4 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 5 | -------------------------------------------------------------------------------- /templates/debian/copyright.lgpl3+: -------------------------------------------------------------------------------- 1 | Files: * 2 | License: LGPL-3+ 3 | On Debian systems, the complete text of the GNU Lesser General 4 | Public License version 3 can be found in `/usr/share/common-licenses/LGPL-3'. 5 | -------------------------------------------------------------------------------- /templates/rpm/omlib.spec: -------------------------------------------------------------------------------- 1 | Name: omlib-all 2 | Version: VERSION 3 | Release: 1 4 | Summary: A collection of Modelica libraries 5 | License: BSD 6 | Requires: REQUIRES 7 | 8 | %description 9 | A collection of Modelica libraries 10 | 11 | %files 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | debian-build 3 | Makefile.numjobs 4 | config.done 5 | nightly-library-files 6 | nightly-library-sources 7 | .remote 8 | svn 9 | git 10 | /macports 11 | macports-build 12 | get-version.*.mos 13 | get-name*.mos 14 | get-name*.name 15 | -------------------------------------------------------------------------------- /templates/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | %: 7 | dh $@ 8 | 9 | # TODO: When all distros support it 10 | #override_dh_builddeb: 11 | # dh_builddeb -- -Zxz 12 | -------------------------------------------------------------------------------- /templates/debian/control: -------------------------------------------------------------------------------- 1 | Source: @DEBNAME@ 2 | Section: math 3 | Priority: optional 4 | Maintainer: OpenModelica Build System 5 | Build-Depends: debhelper (>= 8.0.0) 6 | Standards-Version: 3.9.3 7 | Homepage: https://openmodelica.org 8 | 9 | Package: @DEBNAME@ 10 | Architecture: all 11 | Depends: @DEPENDS@${misc:Depends} 12 | @BREAKS@ 13 | @PROVIDES@ 14 | Recommends: omc 15 | Description: @NAME@ is a Modelica library 16 | @NAME@ is a Modelica library 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OMLibraries 2 | 3 | A collection of Modelica libraries for use with OpenModelica. 4 | The libraries are tested to parse correctly and are then updated in the database. 5 | 6 | ## Dependencies 7 | ```bash 8 | sudo apt-get install git subversion devscripts 9 | sudo apt-get install python-requests python-simplejson python-parallel python-joblib 10 | sudo apt-get install libxml-xpath-perl 11 | sudo apt-get install omc 12 | ``` 13 | 14 | ### Add a new library 15 | 1. Put your library somewere public in git (or svn). 16 | 2. Edit repos.json and add the URL to your library and the commit hash (revision number for svn). 17 | 3. Commit your change. 18 | 4. Make sure you run the Hudson Job: OpenModelica_UPDATE_LIBRARIES to update the Makefiles 19 | 20 | -------------------------------------------------------------------------------- /get-name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test $# -ne 4; then 4 | echo "Usage: $0 /path/to/omc package.mo encoding standard" 5 | exit 1 6 | fi 7 | OMC=$1 8 | FILE=$2 9 | ENCODING=$3 10 | STD=$4 11 | MOS="get-name.$$.mos" 12 | NAME="get-name.$$.name" 13 | rm -f $MOS $NAME 14 | cat > $MOS < /dev/null 2>&1 23 | PACKAGE=`test -f "$NAME" && cat "$NAME"` 24 | #rm -f $MOS $NAME 25 | if test -z "$PACKAGE"; then 26 | exit 1 27 | fi 28 | echo $PACKAGE 29 | -------------------------------------------------------------------------------- /addMissingWithin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # You need to be placed in the directory just above the library 3 | # $ ls 4 | # Modelica 1.6 5 | # $ addMissingWithin.sh 6 | # Will then fix all mo-files visible from here (i.e. all in Modelica 1.6) 7 | 8 | if test "$1" = "--remove-old-within"; then 9 | find . -name "*.mo" -exec sed -i "/^within.*; *$/d" {} ";" 10 | fi 11 | 12 | for f in `find . -name "*.mo"`; do 13 | WITHIN=`dirname $f | sed "s,./,within ," | tr / .| sed 's/$/;/'` 14 | if test "package.mo" = "`basename $f`"; then 15 | WITHIN=`echo $WITHIN | sed 's/[. ][^.]*;/;/'` 16 | fi 17 | if grep -q "^within" "$f"; then 18 | echo "Skipping $f; already has within" 19 | else 20 | echo $WITHIN | cat - $f > tmp.mo 21 | mv tmp.mo $f 22 | echo "Fixed $f" 23 | fi 24 | done 25 | -------------------------------------------------------------------------------- /check-debian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | FILES=nightly-library-files 4 | SOURCES=nightly-library-sources 5 | rm -f "$FILES" "$SOURCES" 6 | for f in build/*.last_change; do 7 | if test -f "`echo $f | sed s/last_change/nopackage/`"; then 8 | continue 9 | fi 10 | LIB=`echo $f | sed s/.last_change// | sed s,build/,,` 11 | NAME=`./debian-name.sh $LIB` 12 | REV=`cat "$f" | tr '-' '~'` 13 | SRC=`echo ${NAME}_$REV-1.dsc` 14 | DEB=`echo ${NAME}_$REV-1_all.deb` 15 | if grep -q "$DEB" ".remote/nightly-library-files" && grep -q "$SRC" ".remote/nightly-library-sources"; then 16 | true 17 | elif ! (test -f "debian-build/$DEB" && test -f "debian-build/$SRC"); then 18 | echo "Error: Could not find $DEB and $SRC" 19 | exit 1 20 | fi 21 | echo $DEB >> "$FILES" 22 | echo $SRC >> "$SOURCES" 23 | done 24 | echo "Created $FILES and $SOURCES" 25 | -------------------------------------------------------------------------------- /templates/macports/Portfile.in: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | PortSystem 1.0 4 | 5 | name openmodelicalibraries 6 | version @REV@ 7 | categories lang math 8 | platforms darwin 9 | maintainers martin.sjolund@liu.se 10 | description Modelica libraries for OpenModelica 11 | long_description A collection of Modelica libraries for OpenModelica. 12 | homepage http://openmodelica.org/ 13 | license Varies with each library in the collection 14 | 15 | master_sites http://build.openmodelica.org/libraries/ 16 | distfiles 17 | worksrcdir 18 | 19 | checksums 20 | 21 | use_configure no 22 | build.cmd true 23 | destroot.cmd mkdir -p ${destroot}${prefix}/share/doc/omlibrary && echo "OpenModelica library collection" > ${destroot}${prefix}/share/doc/omlibrary/README 24 | depends_run @DEPENDS@ 25 | -------------------------------------------------------------------------------- /check-latest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SVNOPTS="--non-interactive --username anonymous" 4 | ROOT=`svn info $SVNOPTS --xml "$1" | xpath -q -e '/info/entry/repository/root/text()'` 5 | URL=`svn info $SVNOPTS --xml "$1" | xpath -q -e '/info/entry/url/text()'` 6 | # The following is not used because it only checks the revision of the checked out version - we want the repository revision... 7 | # `svn info $SVNOPTS --xml "$1" | xpath -q -e '/info/entry/commit/@revision' | grep -o "[0-9]*"` 8 | CURREV=`cat "$1.rev"` 9 | 10 | #if svn info $SVNOPTS --xml "$ROOT" >& /dev/null; then 11 | # URL=$ROOT 12 | #fi 13 | 14 | REMOTEREV=`svn info $SVNOPTS --xml "$URL" | xpath -q -e '/info/entry/commit/@revision' | grep -o "[0-9]*"` 15 | if test "$CURREV" -lt "$REMOTEREV"; then 16 | echo $1 uses $CURREV but $REMOTEREV is available. Changed paths include `svn log -qv -r$CURREV:$REMOTEREV $URL | egrep -o "(/(tags|branches)/[^/]*/|/trunk/)" | sed "s, (from /,/," | sort -u` 17 | fi 18 | -------------------------------------------------------------------------------- /svn-logoneline.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/awk -f 2 | # https://gist.github.com/plexus/1485222 3 | 4 | # Convert the "svn log" output into a one liner format, which is easier to grep 5 | # or use in scripts. Pipe "svn log" into this script 6 | 7 | # When we get a line that starts with a revision number, put the data in variables 8 | /^r[0-9]+/ { 9 | rev=$1 10 | user=$3 11 | date=$5 12 | time=$6 13 | lines=13 14 | } 15 | 16 | # Anything that isn't a revision line, a separator line or an empty line 17 | # will be part of the commit message. Concatenate these into the comment variable 18 | ! (/^r[0-9+]/ || /^-+$/ || /^$/) { 19 | comment = comment $0 20 | } 21 | 22 | # With every separator line, output what we stored before and reset the comment variable 23 | # To skip the first line we also check if we've already stored a revision 24 | /^-+$/ && rev { 25 | # print rev " | " user " | " date " | " time " | " comment 26 | print rev " " comment 27 | comment = "" 28 | } 29 | -------------------------------------------------------------------------------- /templates/macports/Portfile.omlib.in: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | PortSystem 1.0 4 | 5 | name @NAME@ 6 | version @REV@ 7 | categories lang math 8 | platforms darwin 9 | maintainers martin.sjolund@liu.se 10 | description A Modelica library 11 | long_description A Modelica library 12 | homepage @URL@ 13 | license @LICENSE@ 14 | 15 | master_sites https://build.openmodelica.org/apt/pool/libraries/ 16 | distfiles ${name}_${version}.orig.tar.gz 17 | worksrcdir ${name}_${version} 18 | 19 | checksums md5 @MD5@ \ 20 | sha1 @SHA1@ \ 21 | rmd160 @RMD160@ 22 | 23 | build.cmd true 24 | destroot.cmd mkdir -p ${destroot}${prefix}/lib/omlibrary/ && cp 25 | destroot.pre_args -a 26 | destroot.post_args "@SOURCE@" ${destroot}${prefix}/lib/omlibrary/ 27 | use_configure no 28 | 29 | depends_run @DEPENDS@ 30 | -------------------------------------------------------------------------------- /check-uses.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test $# -ne 2 || ! test -f "$2"; then 4 | echo "Usage: $0 build/dir path/file.uses" 5 | exit 1 6 | fi 7 | 8 | # Check that all used libraries exist and create a nice debified depends list 9 | BUILD="$1" 10 | DEPS=`echo $2 | sed s/uses/depends/` 11 | rm -f "$DEPS" 12 | for l in `cat "$2" | sed "s/ /%20/g"`; do 13 | LIB=`echo $l | sed "s/%20/ /g"` 14 | if echo "$LIB" | grep -q "^deb:"; then # Raw package name 15 | echo "$LIB" | sed "s/^deb://" >> $DEPS 16 | elif test -f "$BUILD/$LIB.license"; then 17 | ./debian-name.sh `echo "$LIB"` >> $DEPS 18 | elif test -f "$BUILD/$LIB.provided"; then 19 | ./debian-name.sh `cat "$BUILD/$LIB.provided"` >> $DEPS 20 | else 21 | echo "Could not find library $LIB, used by $2" 22 | exit 1 23 | fi 24 | done 25 | 26 | # Remove self-reference 27 | LIB=`echo $DEPS | grep -o "[^/]*$" | sed s/.depends//` 28 | THIS_NAME=`./debian-name.sh $LIB` 29 | test ! -f "$DEPS" || sed -i "/$THIS_NAME/d" "$DEPS" 30 | -------------------------------------------------------------------------------- /test-valid.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test $# -ne 3 || ! test -f "$3"; then 4 | echo "Usage: $0 omc build/dir path/file.mo" 5 | exit 1 6 | fi 7 | 8 | OMC=$1 9 | BUILD=$2 10 | FILE=$3 11 | rm -f $$.parse.log 12 | # Verify that all libraries parse 13 | cat > test-valid.$$.mos < /dev/null 28 | rm test-valid.$$.mos 29 | echo $FILE turned to $LIB 30 | # find "`echo $2 | sed s,/package.mo,,`" -type f -print0 | sort -z | xargs -0 cat | sha1sum > "$BUILD/$LIB.hash" 31 | touch "$BUILD/$LIB.ok" 32 | test ! -f $$.parse.log || (cat $$.parse.log ; rm -f $$.parse.log ; exit 1) 33 | -------------------------------------------------------------------------------- /get-version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Gets the version of the library and its uses-annotations 3 | 4 | if test $# -ne 6 -a $# -ne 7; then 5 | echo "Wrong number of arguments: $#, expected 6 or 7" >&2 6 | exit 1 7 | fi 8 | OMC="$1" 9 | BUILD="$2" 10 | FILE="$3" 11 | LIB="$4" 12 | ENCODING="$5" 13 | STD="$6" 14 | VER="$7" 15 | MOS="get-version.$$.mos" 16 | VER="get-version.$$.ver" 17 | rm -f $MOS $VER 18 | cat > $MOS < "" then (" " + version) else "") + ".uses",str);getErrorString(); 26 | EOF 27 | "$OMC" "+n=1" "+std=$STD" $MOS >&2 28 | if test -z "$7"; then 29 | VERSION=`test -f "$VER" && cat "$VER"` 30 | rm -f $MOS $VER 31 | if test -z "$VERSION"; then 32 | exit 1 33 | fi 34 | echo "$VERSION" 35 | else 36 | echo I did run "$MOS" for "$FILE" 37 | fi 38 | -------------------------------------------------------------------------------- /macports-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./build-common.sh 4 | DEPENDS=`for f in $DEPENDS; do test ! -z "$f" || echo -n "port:$f "; done` 5 | 6 | mkdir -p macports-build 7 | cd macports-build 8 | 9 | PORTFILE=../macports/lang/$DEBNAME/Portfile 10 | 11 | if test -f "$PORTFILE" && grep -q "^version *$DEBREV"; then 12 | echo Up-to-date: $FULLNAME 13 | exit 0 14 | fi 15 | 16 | SOURCETARBALL=$FULLNAME.orig.tar.gz 17 | if test ! -f $FULLNAME.orig.tar.gz; then 18 | wget -nv "https://build.openmodelica.org/apt/pool/libraries/$SOURCETARBALL" || exit 1 19 | fi 20 | 21 | MD5=`openssl md5 $SOURCETARBALL | cut -d \ -f 2` 22 | SHA1=`openssl sha1 $SOURCETARBALL | cut -d \ -f 2` 23 | RMD160=`openssl rmd160 $SOURCETARBALL | cut -d \ -f 2` 24 | 25 | mkdir -p `dirname "$PORTFILE"` 26 | SOURCE_ESCAPED=`echo $NAME$EXT | tr " " "*"` 27 | 28 | cat ../templates/macports/Portfile.omlib.in \ 29 | | sed "s,@URL@,$ORIGURL," \ 30 | | sed "s,@MD5@,$MD5," \ 31 | | sed "s,@SHA1@,$SHA1," \ 32 | | sed "s,@RMD160@,$RMD160," \ 33 | | sed "s,@LICENSE@,$LICENSE," \ 34 | | sed "s,@REV@,$DEBREV," \ 35 | | sed "s,@NAME@,$DEBNAME," \ 36 | | sed "s,@SOURCE@,$SOURCE_ESCAPED," \ 37 | | sed "s,@DEPENDS@,$DEPENDS," \ 38 | > $PORTFILE 39 | -------------------------------------------------------------------------------- /checkout-svn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test "$#" -ne 3; then 4 | echo "Usage: $0 DESTINATION URL HASH" 5 | exit 1 6 | fi 7 | DEST=$1 8 | URL=$2 9 | REVISION=$3 10 | 11 | if test -d "$DEST"; then 12 | (svn cleanup "$DEST" && svn revert -R "$DEST") || rm -r "$DEST" 13 | fi 14 | 15 | if ! test -d "$DEST"; then 16 | svn co $SVNOPTS "-r$REVISION" "$URL" "$DEST" --trust-server-cert --non-interactive || exit 1 17 | echo "$REVISION" > "$DEST.rev" 18 | elif test -d "$DEST" && ! test "$URL" = "`svn info "$DEST" | grep ^URL: | sed "s/URL: //"`"; then 19 | echo "Not same URL... $URL and `svn info "$DEST" | grep ^URL: | sed "s/URL: //"`" 20 | rm -rf "$DEST" 21 | svn co $SVNOPTS "-r$REVISION" "$URL" "$DEST" --trust-server-cert --non-interactive || exit 1 22 | echo "$REVISION" > "$DEST.rev" 23 | else 24 | if test `svn info $SVNOPTS --xml "$DEST" | xpath -q -e '/info/entry/commit/@revision' | grep -o "[0-9]*"` = "$REVISION"; then 25 | echo "$DEST is up to date" 26 | elif ! svn up $SVNOPTS "-r$REVISION" "$DEST" --trust-server-cert --non-interactive; then 27 | echo "Failed to update $DEST" 28 | test -d "$DEST" && rm -r "$DEST" 29 | exit 1 30 | else 31 | # svn-clean is a nice extra; not needed 32 | svn-clean "$DEST" 2> /dev/null 33 | fi 34 | echo "$REVISION" > "$DEST.rev" 35 | fi 36 | -------------------------------------------------------------------------------- /templates/debian/copyright.bsd3: -------------------------------------------------------------------------------- 1 | Files: * 2 | License: BSD-3-Clause 3 | Copyright 4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 5 | 6 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 7 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 8 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 9 | 10 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 11 | -------------------------------------------------------------------------------- /checkout-git.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test "$#" -ne 4; then 4 | echo "Usage: $0 DESTINATION URL GITBRANCH HASH" 5 | exit 1 6 | fi 7 | DEST=$1 8 | URL=$2 9 | GITBRANCH=$3 10 | REVISION=$4 11 | 12 | GIT_VERSION=`git --version | grep -o "[0-9.]*"` 13 | GIT_MAJOR=`echo $GIT_VERSION | cut -d. -f1` 14 | GIT_MINOR=`echo $GIT_VERSION | cut -d. -f2` 15 | 16 | if test "$GIT_MAJOR" -gt 1 || (test "$GIT_MAJOR" = 1 && test "$GIT_MINOR" -gt 7); then 17 | SINGLE_BRANCH="--single-branch" 18 | else 19 | SINGLE_BRANCH="" 20 | fi 21 | 22 | if test -d "$DEST"; then 23 | # Clean out any old mess 24 | (cd "$DEST" && git reset --hard) 25 | (cd "$DEST" && git clean -f) 26 | (cd "$DEST" && git checkout -q "$REVISION" || git fetch --tags -fq "$URL" "$GITBRANCH" || (sleep 10 && git fetch --tags -fq "$URL" "$GITBRANCH") || (sleep 20 && git fetch --tags -fq "$URL" "$GITBRANCH")) || rm -rf "$DEST" 27 | fi 28 | if ! test -d "$DEST"; then 29 | echo "[$DEST] does not exist: cloning [$URL]" 30 | (git clone --branch "$GITBRANCH" $SINGLE_BRANCH "$URL" "$DEST" || (sleep 10 && git clone --branch "$GITBRANCH" $SINGLE_BRANCH "$URL" "$DEST") || (sleep 30 && git clone --branch "$GITBRANCH" $SINGLE_BRANCH "$URL" "$DEST")) || exit 1 31 | # In case of CRLF properties, etc 32 | (cd "$DEST" && git reset --hard) 33 | (cd "$DEST" && git clean -fdx) 34 | fi 35 | 36 | if ! (cd "$DEST" && git checkout -f "$REVISION" ); then 37 | echo "Failed: $0 $*" 38 | exit 1 39 | fi 40 | 41 | (cd "$DEST" && git reset --hard) 42 | (cd "$DEST" && git clean -fdx) 43 | 44 | echo "$REVISION" > "$DEST.rev" 45 | -------------------------------------------------------------------------------- /templates/debian/copyright.modelica1.1: -------------------------------------------------------------------------------- 1 | Modelica License (Version 1.1 of June 30, 2000) 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification are permitted, provided that the following conditions are met: 5 | * The author and copyright notices in the source files, these license 6 | conditions and the disclaimer below are (a) retained and (b) reproduced in 7 | the documentation provided with the distribution. 8 | * Modifications of the original source files are allowed, provided that a 9 | prominent notice is inserted in each changed file and the accompanying 10 | documentation, stating how and when the file was modified, and provided 11 | that the conditions under (1) are met. 12 | * It is not allowed to charge a fee for the original version or a modified 13 | version of the software, besides a reasonable fee for distribution and 14 | support. Distribution in aggregate with other (possibly commercial) 15 | programs as part of a larger (possibly commercial) software distribution 16 | is permitted, provided that it is not advertised as a product of your own. 17 | 18 | Disclaimer 19 | The software (sources, binaries, etc.) in their original or in a modified 20 | form are provided "as is" and the copyright holders assume no responsibility 21 | for its contents what so ever. Any express or implied warranties, including, 22 | but not limited to, the implied warranties of merchantability and fitness 23 | for a particular purpose are disclaimed. In no event shall the copyright 24 | holders, or any party who modify and/or redistribute the package, be liable 25 | for any direct, indirect, incidental, special, exemplary, or consequential 26 | damages, arising in any way out of the use of this software, even if 27 | advised of the possibility of such damage. 28 | -------------------------------------------------------------------------------- /.CI/Jenkinsfile: -------------------------------------------------------------------------------- 1 | pipeline { 2 | agent none 3 | options { 4 | newContainerPerStage() 5 | } 6 | environment { 7 | LC_ALL = 'C.UTF-8' 8 | } 9 | stages { 10 | stage('Make commit') { 11 | agent { 12 | label 'linux' 13 | } 14 | steps { 15 | script { 16 | def buildNumber = env.BUILD_NUMBER as int 17 | if (buildNumber > 1) milestone(buildNumber - 1) 18 | milestone(buildNumber) 19 | } 20 | sh 'git clean -fdx' 21 | sh '(test -d OpenModelica && cd OpenModelica && git pull) || git clone --depth 1 https://github.com/OpenModelica/OpenModelica.git' 22 | sh 'cd OpenModelica && git reset --hard origin/master && git clean -fdx' 23 | sh 'cd OpenModelica && git submodule init' 24 | sh 'cd OpenModelica && git submodule update libraries' 25 | sh "cd OpenModelica/libraries && git remote -v | grep OMLibraries" 26 | sh "cd OpenModelica/libraries && git fetch && git reset --hard \"${env.GIT_COMMIT}\" && git clean -fdx" 27 | sh 'cd OpenModelica && echo Updated libraries > commit.log' 28 | sh 'cd OpenModelica && git submodule summary >> commit.log' 29 | sh 'git config --global user.email openmodelica@ida.liu.se' 30 | sh 'git config --global user.name hudson' 31 | sh ''' 32 | cd OpenModelica 33 | REPO=libraries 34 | HASH=`git ls-tree origin/master $REPO | cut -d" " -f3 | cut -f1` 35 | (cd libraries && git shortlog -sne "$HASH..HEAD") > author-log 36 | if test 1 = "`cut -f2 author-log | uniq | wc -l`"; then 37 | COMMITTER_EMAIL=`cut -f2 author-log | uniq` 38 | git commit -a -F commit.log --author="$COMMITTER_EMAIL" 39 | else 40 | git commit -a -F commit.log 41 | fi 42 | ''' 43 | sshagent (credentials: ['Hudson-SSH-Key']) { 44 | sh "echo GIT_BRANCH: ${env.GIT_BRANCH}" 45 | sh 'ssh-keyscan github.com >> ~/.ssh/known_hosts' 46 | sh "test ! \"master\" = \"${env.GIT_BRANCH}\" || (cd OpenModelica && git push --force git@github.com:OpenModelica/OpenModelica.git HEAD:omlib-staging)" 47 | } 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /debian-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test $# -ne 1 || ! test -f "$1"; then 4 | echo "Error: *** Usage: $0 path/file.mo" 5 | exit 1 6 | fi 7 | 8 | mkdir -p debian-build 9 | 10 | . ./build-common.sh 11 | DEPENDS=`for f in $DEPENDS; do echo -n $f,; done` 12 | 13 | if grep -q "$FULLNAME-1_all.deb" .remote/nightly-library-files; then 14 | echo "$FULLNAME-1_all.deb already built - skipping" 15 | exit 0 16 | elif test -f "build/$NAME.nopackage"; then 17 | CONTENT=`cat "build/$NAME.nopackage"` 18 | echo "$FULLNAME $CONTENT - skipping" 19 | exit 0 20 | fi 21 | echo "Build debian package for $LIB of version $VERSION" 22 | echo "Debian package will be named $DEBNAME with revision $DEBREV" 23 | echo "$DEBNAME has dependencies $DEPENDS" 24 | rm -rf "$DIR" "$DIR.*" "$DIR-*" 25 | mkdir -p "$DIR" 26 | if ! cp -r "build/$NAME$EXT" "$DIR/"; then 27 | echo "Error: *** Failed to copy build/$NAME$EXT to $DIR/" 28 | exit 1 29 | fi 30 | sed "s/@EXT@/$EXT/" "templates/debian/Makefile" | sed "s/@NAME@/$NAME/" > "$DIR/Makefile" 31 | if ! (cd "debian-build" && tar czf "$FULLNAME.orig.tar.gz" "$FULLNAME"); then 32 | echo "Error: *** Failed to create original tarball $FULLNAME.orig.tar.gz" 33 | exit 1 34 | fi 35 | #(cd "$DIR" && dh_make -p "$FULLNAME" --createorig --packageclass=i) || exit 1 36 | mkdir -p "$DEBIAN" 37 | echo "$DEBNAME has license $LICENSE" 38 | cp "templates/debian/copyright.$LICENSE" "$DEBIAN/copyright" 39 | cp "templates/debian/rules" "$DEBIAN/rules" 40 | echo 8 > "$DEBIAN/compat" 41 | sed "s/@DEBNAME@/$DEBNAME/" "templates/debian/control" | sed "s/@NAME@/$NAME/" | sed s"/@DEPENDS@/$DEPENDS/" | sed "$BREAKCMD" | sed "$PROVIDESCMD" > "$DEBIAN/control" 42 | echo "$DEBNAME ($DEBREV-1) unstable; urgency=low" > "$DEBIAN/changelog" 43 | echo " * Automatic subversion build" >> "$DEBIAN/changelog" 44 | test -f "build/$NAME.changes" && cat "build/$NAME.changes" >> "$DEBIAN/changelog" 45 | echo " -- OpenModelica Build System `date -R`" >> "$DEBIAN/changelog" 46 | mkdir -p "$DEBIAN/source" 47 | echo "3.0 (quilt)" > "$DEBIAN/source/format" 48 | # TODO: Change to xz when all distros support it 49 | if ! (cd "$DIR" && debuild -us -uc -S); then 50 | echo "Error: *** Failed to build source package $FULLNAME" 51 | exit 1 52 | fi 53 | if ! (cd "$DIR" && dpkg-buildpackage -us -uc); then 54 | echo "Error: *** Failed to build package $FULLNAME" 55 | exit 1 56 | fi 57 | -------------------------------------------------------------------------------- /rpm-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test $# -ne 1; then 4 | echo "Error: *** Usage: $0 path/file.mo, got $@" 5 | exit 1 6 | fi 7 | 8 | mkdir -p debian-build 9 | 10 | DEPENDS=`for f in $DEPENDS; do echo -n $f,; done` 11 | 12 | if ! echo $1 | grep -q "^.*_.*-1_all[.]deb"; then 13 | if ! echo $1 | grep -q '^[0-9]\{8\}_[0-9]\{6\}$'; then 14 | echo "Couldn't extract the version..." 15 | exit 1 16 | fi 17 | COLLECTION=1 18 | VERSION="$1" 19 | RPMVERSION="$VERSION" 20 | FULLRPMNAME="omlib-all-$RPMVERSION-1.noarch.rpm" 21 | DIRECTORY=omlib-all 22 | else 23 | DIRECTORY=`echo $1 | sed 's/^\(.*\)_\(.*\)-1_all[.]deb$/\1-\2/'` 24 | VERSION=`echo $1 | sed 's/^.*_\(.*\)-1_all[.]deb$/\1/'` 25 | RPMVERSION=`echo $VERSION | tr '-' '_'` 26 | FULLRPMNAME=`echo $1 | sed "s/^\(.*\)_\(.*\)\(-1_all[.]deb\)$/\1-$RPMVERSION-1.noarch.rpm/"` 27 | fi 28 | 29 | if rsync `cat .remote/rpmpool`/"$FULLRPMNAME" rpm-build/ >/dev/null 2>&1; then 30 | echo "$FULLRPMNAME-1.noarch.rpm already built" 31 | exit 0 32 | elif test -f "build/$NAME.nopackage"; then 33 | CONTENT=`cat "build/$NAME.nopackage"` 34 | echo "$FULLNAME $CONTENT - skipping" 35 | exit 0 36 | fi 37 | 38 | cp .rpmmacros ~/.rpmmacros || exit 1 39 | cd rpm-build || exit 1 40 | 41 | if test "$COLLECTION" = 1; then 42 | REQUIRES=`cat ../.remote/nightly-library-files | cut -d_ -f1` 43 | sed -e "s/VERSION/$VERSION/" -e "s/REQUIRES/`echo $REQUIRES`/" ../templates/rpm/omlib.spec > tmp.spec || exit 1 44 | mkdir -p omlib-all 45 | else 46 | echo "Build RPM package $FULLRPMNAME using alien" 47 | rsync `cat ../.remote/pool`/$1 ./ || exit 1 48 | sudo alien -g -k --to-rpm $1 || exit 1 49 | REQUIRES="`dpkg -I $1 | grep "^ *Depends:" | cut -d: -f2`" 50 | if test ! -z "$REQUIRES"; then 51 | REQUIRES="Requires: $REQUIRES" 52 | fi 53 | PROVIDES="`dpkg -I $1 | grep "^ *Provides:" | cut -d: -f2`" 54 | if test ! -z "$PROVIDES"; then 55 | PROVIDES="Provides: $PROVIDES" 56 | fi 57 | sed -e 's#%dir "/"##' -e 's#%dir "/usr/"##' -e 's#%dir "/usr/lib/"##' -e 's#%dir "/usr/share/"##' -e 's#%dir "/usr/share/doc/"##' -e "s#Group: Converted/math#$REQUIRES#" -e "s#Distribution: Debian#$PROVIDES#" "`pwd`/$DIRECTORY/"*.spec > tmp.spec || exit 1 58 | fi 59 | sudo rpmbuild --buildroot="`pwd`/$DIRECTORY/" --define "_rpmdir ../" --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" -bb --target noarch tmp.spec 60 | mv ../"$FULLRPMNAME" . || exit 1 61 | if ! test -f "$FULLRPMNAME"; then 62 | echo "Alien didn't produce $FULLRPMNAME" 63 | exit 1 64 | fi 65 | -------------------------------------------------------------------------------- /templates/debian/copyright.buildings: -------------------------------------------------------------------------------- 1 | http://simulationresearch.lbl.gov/modelica/releases/latest/help/Buildings_UsersGuide.html#Buildings.UsersGuide.License 2 | 3 | Note. This is the standard Modelica License 2, except for the following changes: the parenthetical in paragraph 7., paragraph 5., and the addition of paragraph 15.d). 4 | 5 | Files: bin/* 6 | Copyright: 2012 The Regents of the University of California, Department of Energy contract-operators of the Lawrence Berkeley National Laboratory 7 | License: BSD-3-Clause 8 | 9 | Files: Buildings/* 10 | Copyright: 2012 The Regents of the University of California, Department of Energy contract-operators of the Lawrence Berkeley National Laboratory 11 | License: Modelica2-Buildings 12 | 13 | File: Districts/* 14 | Copyright: 2012 The Regents of the University of California, Department of Energy contract-operators of the Lawrence Berkeley National Laboratory 15 | License: Modelica2-Buildings 16 | 17 | License: BSD-3-Clause 18 | Redistribution and use in source and binary forms, with or without 19 | modification, are permitted provided that the following conditions 20 | are met: 21 | 1. Redistributions of source code must retain the above copyright 22 | notice, this list of conditions and the following disclaimer. 23 | 2. Redistributions in binary form must reproduce the above copyright 24 | notice, this list of conditions and the following disclaimer in the 25 | documentation and/or other materials provided with the distribution. 26 | 3. Neither the name of the University nor the names of its contributors 27 | may be used to endorse or promote products derived from this software 28 | without specific prior written permission. 29 | . 30 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 31 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 32 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 33 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR 34 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 35 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 36 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 37 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 38 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 39 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 40 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 | 42 | License: Modelica2-Buildings 43 | http://simulationresearch.lbl.gov/modelica/releases/latest/help/Buildings_UsersGuide.html#Buildings.UsersGuide.License 44 | Note. This is the standard Modelica License 2, except for the following changes: the parenthetical in paragraph 7., paragraph 5., and the addition of paragraph 15.d). 45 | The Modelica License 2 can be fetched from https://modelica.org/licenses/ModelicaLicense2 46 | §5 [reserved] 47 | §7 (including, but not limited to, University of California, Lawrence Berkeley National Laboratory, U.S. Dept. of Energy, UC, LBNL, LBL, and DOE) 48 | §15.d You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the features, functionality or performance of the source code ("Enhancements") to anyone; however, if you choose to make your Enhancements available either publicly, or directly to Lawrence Berkeley National Laboratory, without imposing a separate written license agreement for such Enhancements, then you hereby grant the following license: a non-exclusive, royalty-free perpetual license to install, use, modify, prepare derivative works, incorporate into other computer software, distribute, and sublicense such enhancements or derivative works thereof, in binary and source code form. 49 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | BUILD_DIR=build/ 2 | OMC=omc 3 | SVN_DIRS="MSL 3.2.1" "MSL 3.1" "MSL 2.2.2" "MSL 1.6" "Biochem" "NewTables" "Modelica_EmbeddedSystems" "ADGenKinetics" "BondGraph" "Buildings" "IndustrialControlSystems" "LinearMPC" "OpenHydraulics" "RealTimeCoordinationLibrary" "PowerFlow" "EEnStorage" "InstantaneousSymmetricalComponents" 4 | host_short=no 5 | RPATH_QMAKE= 6 | CMAKE_RPATH = CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(RPATH_QMAKE)" cmake 7 | 8 | default: core 9 | .PHONY: macports Modelica\ 3.2.1.patch Modelica\ 1.6.patch Modelica\ trunk.patch Complex\ trunk.patch ModelicaTest\ trunk.patch ModelicaServices\ trunk.patch 10 | 11 | include Makefile.libs 12 | 13 | core: $(CORE_TARGET) 14 | $(CORE_TARGET): 15 | rm -rf $(BUILD_DIR) build 16 | mkdir -p $(BUILD_DIR) 17 | $(MAKE) $(CORE_LIBS) 18 | touch $@ 19 | 20 | all: $(ALL_TARGET) 21 | $(ALL_TARGET): 22 | rm -rf $(BUILD_DIR) build 23 | mkdir -p $(BUILD_DIR) 24 | $(MAKE) $(ALL_LIBS) 25 | touch $@ 26 | 27 | python-update: Makefile.numjobs config.done 28 | rm -rf $(BUILD_DIR) build 29 | rm -f *.uses 30 | # Tags are fetched by check-update 31 | $(MAKE) all-work 32 | @# Could run uses and test at the same time, but this way we get nicer error-messages and a faster error if the uses fail (they are a lot faster than test) 33 | $(MAKE) uses 34 | all-work: config.done Makefile.numjobs 35 | mkdir -p $(BUILD_DIR) svn 36 | ./update-library.py -n `cat Makefile.numjobs` --build-dir $(BUILD_DIR) --omc $(OMC) 37 | config.done: Makefile 38 | which rm > /dev/null 39 | which svn > /dev/null 40 | which git > /dev/null 41 | $(OMC) +version > /dev/null 42 | which xargs > /dev/null 43 | #which xsltproc > /dev/null 44 | which xpath > /dev/null 45 | touch config.done 46 | Makefile.numjobs: 47 | @echo 7 > $@ 48 | @echo "*** Setting number of jobs to 5. 1 makes things too slow and 5 threads. Set $@ if you want to change it ***" 49 | 50 | test: config.done Makefile.numjobs 51 | rm -f error.log test-valid.*.mos 52 | find $(BUILD_DIR)/*.mo $(BUILD_DIR)/*/package.mo -print0 | xargs -0 -n 1 -P `cat Makefile.numjobs` sh -c './test-valid.sh "$(OMC)" "$(BUILD_DIR)" "$$1"' sh 53 | test ! -f error.log || cat error.log 54 | test ! -f error.log 55 | rm -f error.log test-valid.*.mos 56 | uses: config.done Makefile.numjobs 57 | find $(BUILD_DIR)/*.uses -print0 | xargs -0 -n 1 -P `cat Makefile.numjobs` sh -c './check-uses.sh "$(BUILD_DIR)" "$$1"' sh 58 | clean: 59 | rm -f *.rev *.uses test-valid.*.mos config.done 60 | rm -rf build debian-build $(SVN_DIRS) 61 | 62 | check-latest: config.done Makefile.numjobs 63 | @echo "Looking for more recent versions of packages" 64 | rm -rf build .customBuild 65 | mkdir -p build 66 | ./update-library.py -n `cat Makefile.numjobs` --check-latest 67 | rm -rf .customBuild 68 | add-missing: config.done Makefile.numjobs 69 | @echo "Adding missing github repositories using trunk / latest revision" 70 | ./update-library.py -n `cat Makefile.numjobs` --add-missing 71 | 72 | MACPORTSTARBALL=macports-build/openmodelicalibraries_$(GITREVISION).tar.xz 73 | dist-tarball: 74 | test "$(BUILD_DIR)" = "build/" 75 | $(MAKE) GITREVISION=`git show -s --format="%ad" --date="iso" | tr -d -- - | cut "-d " -f1-2 | tr -d : | tr " " -` dist-tarball-internal 76 | dist-tarball-internal: 77 | test ! -z $(GITREVISION) 78 | $(MAKE) all 79 | rm -f build/*.uses build/*.ok build/*.license build/*.depends build/*.last_change build/*.breaks build/*.std build/*.provides build/*.provided 80 | rm -rf openmodelicalibraries_$(GITREVISION)/ 81 | mkdir -p openmodelicalibraries_$(GITREVISION)/ 82 | mv build openmodelicalibraries_$(GITREVISION)/libraries 83 | cp templates/macports/Makefile.in templates/macports/configure.in openmodelicalibraries_$(GITREVISION)/ 84 | mkdir -p macports-build 85 | tar cJf $(MACPORTSTARBALL) openmodelicalibraries_$(GITREVISION) 86 | # sed -e "s/@REV@/$(GITREVISION)/" \ 87 | # -e "s/@MD5@/`openssl md5 $(MACPORTSTARBALL) | cut -d \ -f 2`/" \ 88 | # -e "s/@SHA1@/`openssl sha1 $(MACPORTSTARBALL) | cut -d \ -f 2`/" \ 89 | # -e "s/@RMD160@/`openssl rmd160 $(MACPORTSTARBALL) | cut -d \ -f 2`/" templates/macports/Portfile.in > macports-build/Portfile 90 | 91 | macports: 92 | $(MAKE) GITREVISION=`git show -s --format="%ad" --date="iso" | tr -d -- - | cut "-d " -f1-2 | tr -d : | tr " " -` macports-internal 93 | macports-internal: 94 | test -f .remote/macports 95 | rsync --delete -a rsync://build.openmodelica.org/macports macports 96 | find $(BUILD_DIR)/*.ok -print0 | xargs -0 -n 1 -P `cat Makefile.numjobs` sh -c './macports-build.sh "$$1"' sh 97 | rm -rf macports/lang/omlib-all/ 98 | mkdir -p macports/lang/openmodelicalibraries/ 99 | ( cd build ; sed s/@REV@/$(GITREVISION)/ ../templates/macports/Portfile.in | sed "s/@DEPENDS@/`../macports-all-depends.sh`/" > ../macports/lang/openmodelicalibraries/Portfile ) 100 | .remote/macports 101 | 102 | # .remote/control-files: Directory where the list of packages should be stored. Used by a shell-script + apt-ftparchive 103 | # .remote/pool: Directory where the deb-packages and sources should be stored 104 | debian: config.done Makefile.numjobs .remote/control-files .remote/pool 105 | rm -rf debian-build 106 | mkdir -p debian-build 107 | scp "`cat .remote/control-files`/nightly-library-files" .remote/nightly-library-files 108 | scp "`cat .remote/control-files`/nightly-library-sources" .remote/nightly-library-sources 109 | find $(BUILD_DIR)/*.ok -print0 | xargs -0 -n 1 -P `cat Makefile.numjobs` sh -c './debian-build.sh "$$1"' sh 110 | ./check-debian.sh 111 | diff -u .remote/nightly-library-files nightly-library-files || true 112 | diff -u .remote/nightly-library-sources nightly-library-sources || true 113 | rpm: config.done .remote/rpmpool .remote/pool 114 | rm -rf rpm-build 115 | mkdir -p rpm-build 116 | @# Can't run rpm-build in parallel because alien can't be run in parallel 117 | cat .remote/nightly-library-files | xargs -n 1 sh -c './rpm-build.sh "$$1"' sh 118 | ./rpm-build.sh $(TIMESTAMP) 119 | upload: config.done .remote/control-files .remote/pool 120 | diff -u .remote/nightly-library-files nightly-library-files || (! stat -t debian-build/*.deb >/dev/null 2>&1) || rsync --ignore-existing debian-build/*.deb debian-build/*.tar.gz debian-build/*.tar.xz debian-build/*.dsc "`cat .remote/pool`" 121 | scp nightly-library-files nightly-library-sources "`cat .remote/control-files`" 122 | scp "`cat .remote/control-files`/nightly-library-files" .remote/nightly-library-files 123 | scp "`cat .remote/control-files`/nightly-library-sources" .remote/nightly-library-sources 124 | ./check-debian.sh 125 | upload-rpm: .remote/rpmpool 126 | (! stat -t rpm-build/*.rpm >/dev/null 2>&1) || rsync --ignore-existing rpm-build/*.rpm "`cat .remote/rpmpool`" 127 | 128 | Modelica\ 3.2.1.patch: 129 | -diff -u -x .svn -x .git -x Library -r git/Modelica/Modelica build/Modelica\ 3.2.1 > "$@.tmp" 130 | sed -i /^Only.in/d "$@.tmp" 131 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 132 | mv "$@.tmp" "$@" 133 | Modelica\ 1.6.patch: 134 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/Modelica 1.6" "build/Modelica 1.6" > "$@.tmp" 135 | sed -i /^Only.in/d "$@.tmp" 136 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 137 | mv "$@.tmp" "$@" 138 | Modelica\ trunk.patch: 139 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/Modelica" "build/Modelica trunk" > "$@.tmp" 140 | sed -i /^Only.in/d "$@.tmp" 141 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 142 | mv "$@.tmp" "$@" 143 | ModelicaTest\ trunk.patch: 144 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/ModelicaTest" "build/ModelicaTest trunk" > "$@.tmp" 145 | sed -i /^Only.in/d "$@.tmp" 146 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 147 | mv "$@.tmp" "$@" 148 | ModelicaServices\ trunk.patch: 149 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/ModelicaServices" "build/ModelicaServices trunk" > "$@.tmp" 150 | sed -i /^Only.in/d "$@.tmp" 151 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 152 | mv "$@.tmp" "$@" 153 | Complex\ trunk.patch: 154 | -diff -u "git/Modelica/Complex.mo" "build/Complex trunk.mo" > "$@.tmp" 155 | sed -i /^Only.in/d "$@.tmp" 156 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 157 | mv "$@.tmp" "$@" 158 | Modelica\ 3.2.2.patch: 159 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/Modelica" "build/Modelica 3.2.2" > "$@.tmp" 160 | sed -i /^Only.in/d "$@.tmp" 161 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 162 | mv "$@.tmp" "$@" 163 | ModelicaServices\ 3.2.2.patch: 164 | -diff -u -w -x .svn -x .git -x Library -r "git/Modelica/ModelicaServices" "build/ModelicaServices 3.2.2" > "$@.tmp" 165 | sed -i /^Only.in/d "$@.tmp" 166 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 167 | mv "$@.tmp" "$@" 168 | Modelica\ 3.2.3.patch: 169 | -diff -u -x .svn -x .git -x Library -r "git/Modelica/Modelica" "build/Modelica 3.2.3" > "$@.tmp" 170 | sed -i /^Only.in/d "$@.tmp" 171 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 172 | mv "$@.tmp" "$@" 173 | ModelicaServices\ 3.2.3.patch: 174 | -diff -u -w -x .svn -x .git -x Library -r "git/Modelica/ModelicaServices" "build/ModelicaServices 3.2.3" > "$@.tmp" 175 | sed -i /^Only.in/d "$@.tmp" 176 | sed -i 's/^\([+-][+-][+-]\) "\([^"]*\)"/\1 \2/' "$@.tmp" 177 | mv "$@.tmp" "$@" 178 | -------------------------------------------------------------------------------- /update-library.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | BUILD=build/ 3 | 4 | ENCODING=UTF-8 5 | STD=3.3 6 | LICENSE=modelica2 7 | SVNOPTS="--non-interactive --username anonymous" 8 | OMC=omc 9 | OMC_PARAMS="+n=1" 10 | GITBRANCH=release 11 | while echo $1 | grep -q "^--"; do 12 | OPT="$1" 13 | shift 14 | case $OPT in 15 | --omc) 16 | OMC="$1" 17 | shift 18 | ;; 19 | --build-dir) 20 | BUILD="$1" 21 | shift 22 | ;; 23 | --encoding) 24 | ENCODING="$1" 25 | shift 26 | ;; 27 | --std) 28 | STD="$1" 29 | shift 30 | ;; 31 | --license) 32 | LICENSE="$1" 33 | shift 34 | ;; 35 | --breaks) 36 | BREAKS="$1" 37 | shift 38 | ;; 39 | --patchlevel) 40 | PATCHLEVEL="$1" 41 | shift 42 | ;; 43 | --gitbranch) 44 | GITBRANCH="$1" 45 | shift 46 | ;; 47 | --gittag) 48 | GITBRANCH="$1" 49 | shift 50 | ;; 51 | --no-package) 52 | # $1 will be a comment 53 | NOPACKAGE="$1" 54 | shift 55 | ;; 56 | --no-dependencies) 57 | NO_DEPENDENCY="$1" 58 | shift 59 | ;; 60 | --remove-files) 61 | # Files that should be stripped from the package. Usually redundant binaries. 62 | REMOVE_FILES="$1" 63 | shift 64 | ;; 65 | --patch-files) 66 | # Used by update-library.py 67 | shift 68 | ;; 69 | --generate-patch-mos) 70 | # Used by update-library.py 71 | shift 72 | ;; 73 | --automatic-updates) 74 | # Skip this; used in the python script 75 | shift 76 | ;; 77 | --intertrac) 78 | # Skip this; used in the python script 79 | shift 80 | ;; 81 | *) 82 | echo "Unknown option $OPT" 83 | exit 1 84 | ;; 85 | esac 86 | 87 | done 88 | 89 | if test $# -lt 5 || !(test "$1" = SVN || test "$1" = GIT); then 90 | echo "Usage: $0 [flags] [SVN|GIT] URL REVISION DEST [LIBRARIES]" 91 | echo " --encoding=[UTF-8]" 92 | echo " --std=[3.3]" 93 | exit 1 94 | fi 95 | TYPE="$1" 96 | URL="$2" 97 | REVISION="$3" 98 | DEST="$4" 99 | shift;shift;shift;shift 100 | 101 | CMD_REPLAY="$DEST.cmd" 102 | echo "# Building $DEST" >> "$CMD_REPLAY" 103 | 104 | if test "$TYPE" = SVN; then 105 | 106 | ./checkout-svn.sh "$DEST" "$URL" "$REVISION" || exit 1 107 | echo "./checkout-svn.sh '$DEST' '$URL' '$REVISION'" >> "$CMD_REPLAY" 108 | 109 | elif test "$TYPE" = GIT; then 110 | 111 | ./checkout-git.sh "$DEST" "$URL" "$GITBRANCH" "$REVISION" || exit 1 112 | echo "./checkout-git.sh '$DEST' '$URL' '$GITBRANCH' '$REVISION'" >> "$CMD_REPLAY" 113 | 114 | else 115 | echo "Unknown repository type: $TYPE" >&2 116 | exit 1 117 | fi 118 | 119 | mkdir -p "$BUILD" 120 | if test "$*" = "all"; then 121 | shift 122 | CURWD=`pwd` 123 | cd "$DEST" 124 | for f in *.mo */package.mo; do 125 | if test "$f" != "package.mo"; then 126 | LIBS="$LIBS `echo $f | grep -v "[*]" | sed "s/ /%20/g" | sed "s,/package.mo,," | sed "s,.mo$,,"`" 127 | fi 128 | done 129 | cd "$CURWD" 130 | elif test "$*" = "none"; then 131 | shift 132 | fi 133 | echo $LIBS 134 | for f in $LIBS "$@"; do 135 | if test "$f" = "self"; then 136 | LIB=`./get-name.sh "$OMC" "$DEST/package.mo" "$ENCODING" "$STD"` 137 | VER="" 138 | if test -z "$LIB"; then 139 | echo "*** Error: Failed to read package name from $DEST/package.mo" 140 | exit 1 141 | fi 142 | else 143 | LIB=`echo $f | sed "s/%20/ /g" | cut -d" " -f1` 144 | VER=`echo $f | sed "s/%20/ /g" | grep " " | cut -d" " -f2-` 145 | echo Copy library [$LIB] version [$VER] from `pwd` 146 | fi 147 | if test "$f" = "self"; then 148 | SOURCE="$DEST" 149 | MOFILE="$DEST/package.mo" 150 | EXT="" 151 | elif [ ! -z "$VER" ] && [ -d "$DEST/$LIB $VER" ]; then 152 | SOURCE="$DEST/$LIB $VER" 153 | EXT="" 154 | elif [ ! -z "$VER" ] && [ -f "$DEST/$LIB $VER.mo" ]; then 155 | SOURCE="$DEST/$LIB $VER.mo" 156 | EXT=".mo" 157 | elif test -d "$DEST/$LIB"; then 158 | SOURCE="$DEST/$LIB" 159 | MOFILE="$DEST/$LIB/package.mo" 160 | EXT="" 161 | elif test -f "$DEST/$LIB.mo"; then 162 | SOURCE="$DEST/$LIB.mo" 163 | MOFILE="$SOURCE" 164 | EXT=".mo" 165 | else 166 | echo "Did not find library $DEST/$LIB :(" 167 | exit 1 168 | fi 169 | if test -z "$VER"; then 170 | VER=`./get-version.sh "$OMC" "$BUILD" "$MOFILE" "$LIB" "$ENCODING" "$STD"` 171 | echo "Got version $VER for $LIB" 172 | if test -z "$VER"; then 173 | NAME="$LIB" 174 | else 175 | NAME="$LIB $VER" 176 | fi 177 | elif test "$VER" = "none"; then 178 | NAME="$LIB" 179 | else 180 | NAME="$LIB $VER" 181 | fi 182 | 183 | if test -z "$EXT"; then 184 | echo "test ! -d '$BUILD/$NAME'" >> "$CMD_REPLAY" 185 | if test -d "$BUILD/$NAME"; then 186 | echo "$BUILD/$NAME already exists; bailing out (multiple repositories could try creating the same library)" 187 | exit 1 188 | fi 189 | else 190 | echo "test ! -f '$BUILD/$NAME$EXT'" >> "$CMD_REPLAY" 191 | if test -f "$BUILD/$NAME$EXT"; then 192 | echo "$BUILD/$NAME$EXT already exists; bailing out (multiple repositories could try creating the same library)" 193 | exit 1 194 | fi 195 | fi 196 | rm -rf "$BUILD/$NAME" "$BUILD/$NAME.mo" 197 | # Link recursive... Fast, efficient 198 | echo Copy: cp -a "$SOURCE" "$BUILD/$NAME$EXT" 199 | cp -a "$SOURCE" "$BUILD/$NAME$EXT" 200 | echo "cp -a '$SOURCE' \"\$(BUILD_DIR)/$NAME$EXT\"" >> "$CMD_REPLAY" 201 | for FILES in $REMOVE_FILES; do 202 | echo Removing files: [$BUILD/$NAME$EXT/$FILES] 203 | # Need to check if the file exists, because OSX fails on /path/to/file/Dir 204 | if test -e "$BUILD/$NAME$EXT/$FILES"; then 205 | rm -rf "$BUILD/$NAME$EXT/$FILES" 206 | echo "rm -rf \"\$(BUILD_DIR)/$NAME$EXT/$FILES\"" >> "$CMD_REPLAY" 207 | fi 208 | done 209 | if test -f "$NAME.patch"; then 210 | echo "patch -l -d \"\$(BUILD_DIR)/\" -f -p1 < '$NAME.patch'" >> "$CMD_REPLAY" 211 | if ! patch -l -d "$BUILD/" -f -p1 < "$NAME.patch"; then 212 | echo "Failed to apply $NAME.patch" 213 | exit 1 214 | fi 215 | echo "Applied $NAME.patch" 216 | PATCHREV=`git rev-list HEAD --count "$NAME.patch" 2>/dev/null` 217 | if test -z "$PATCHREV"; then 218 | echo "Not a git repository. We need it to give patch revisions." 219 | exit 1 220 | fi 221 | PATCHREV=`echo -om$PATCHREV` 222 | else 223 | PATCHREV="" 224 | fi 225 | 226 | if echo "$NO_DEPENDENCY" | grep -q "^$LIB\$"; then 227 | # Avoid cyclic dependencies 228 | echo > "$BUILD/$NAME.uses" 229 | echo "echo > \"\$(BUILD_DIR)/$NAME.uses\"" >> "$CMD_REPLAY" 230 | else 231 | # Do this a second time after patching for updated uses-annotations... Yes, a bit weird 232 | if test -d "$BUILD/$NAME$EXT"; then 233 | VVER=`./get-version.sh "$OMC" "$BUILD" "$BUILD/$NAME$EXT/package.mo" "$LIB" "$ENCODING" "$STD"` 234 | else 235 | VVER=`./get-version.sh "$OMC" "$BUILD" "$BUILD/$NAME$EXT" "$LIB" "$ENCODING" "$STD"` 236 | fi 237 | 238 | # adrpo: sometimes the version in package.mo is WRONG! check that here 239 | if test -z "$VVER"; then 240 | NNAME="$LIB" 241 | else 242 | NNAME="$LIB $VVER" 243 | fi 244 | # adrpo: see if the $NAME != $NNAME 245 | if test "$NAME" != "$NNAME"; then 246 | mv "$BUILD/$NNAME.uses" "$BUILD/$NAME.uses" 247 | fi 248 | 249 | 250 | test -f "$BUILD/$NAME.uses" || touch "$BUILD/$NAME.uses" 251 | bash bad-uses.sh "$BUILD/$NAME.uses" 252 | HAS_USES_LINE=0 253 | while read line 254 | do 255 | echo "echo '$line' >> \"\$(BUILD_DIR)/$NAME.uses\"" >> "$CMD_REPLAY" 256 | HAS_USES_LINE=1 257 | done < "$BUILD/$NAME.uses" 258 | if test "$HAS_USES_LINE" = 0; then 259 | echo "echo '' > \"\$(BUILD_DIR)/$NAME.uses\"" >> "$CMD_REPLAY" 260 | fi 261 | fi 262 | # Add custom patch levels 263 | if echo "$PATCHLEVEL" | grep -q ":"; then 264 | PATCHLEVELTHIS=`echo "$PATCHLEVEL" | grep -o "$LIB:[A-Za-z0-9_-]*" | cut -d: -f2` 265 | else 266 | PATCHLEVELTHIS="$PATCHLEVEL" 267 | fi 268 | if test ! -z "$PATCHLEVELTHIS"; then 269 | PATCHREV="$PATCHLEVELTHIS" 270 | fi 271 | echo $LICENSE > "$BUILD/$NAME.license" 272 | echo "echo '$LICENSE' > \"\$(BUILD_DIR)/$NAME.license\"" >> "$CMD_REPLAY" 273 | if test "$TYPE" = SVN; then 274 | CHANGED=`svn info $SVNOPTS --xml "$SOURCE" | xpath -q -e '/info/entry/commit/@revision' | grep -o "[0-9]*"` 275 | echo $CHANGED$PATCHREV > "$BUILD/$NAME.last_change" 276 | echo "echo '$CHANGED$PATCHREV' > \"\$(BUILD_DIR)/$NAME.last_change\"" >> "$CMD_REPLAY" 277 | # Skipping changelog. Was only used for debian packages, but it is not that useful and quite slow 278 | # svn log --xml --verbose "$SOURCE" | sed "s,.*,1970-01-01," | sed "s,\(.*\),none\1," | xsltproc svn2cl.xsl - > "$BUILD/$NAME.changes" 279 | else 280 | # CHANGED=`cd "$DEST" && git show -s --format="%ad" --date="iso" "$REVISION" | tr -d -- - | cut "-d " -f1-2 | tr -d : | tr " " -` 281 | if test ! -z "$VER"; then 282 | CHANGED=`cd "$DEST" && git describe --abbrev=7 --match "v$VER*" 2>/dev/null || git describe --abbrev=7 --tags --match "v$VER*" 2>/dev/null` 283 | fi 284 | if test -z "$CHANGED"; then 285 | CHANGED=`cd "$DEST" && git show -s --format="%ad" --date="iso" "$REVISION" | tr -d -- - | cut "-d " -f1-2` 286 | if test -z "$VER" || echo $VER | sed s,^v,, | grep -q [^0-9.]; then 287 | CHANGED="$CHANGED~git~$GITBRANCH" 288 | else 289 | CHANGED="$VER-$CHANGED~git~$GITBRANCH" 290 | fi 291 | fi 292 | CHANGED=`echo $CHANGED | tr -d : | tr " /_" "---" | sed s,^v,,` 293 | CHANGED="$CHANGED$PATCHREV" 294 | echo "$CHANGED" > "$BUILD/$NAME.last_change" 295 | echo "echo '$CHANGED' > \"\$(BUILD_DIR)/$NAME.last_change\"" >> "$CMD_REPLAY" 296 | cat "$BUILD/$NAME.last_change" 297 | 298 | # Fix svn $Id:: 299 | if test -d "$BUILD/$NAME$EXT"; then 300 | TOPLEVEL_FILE="$BUILD/$NAME$EXT/package.mo" 301 | TOPLEVEL_FILE_MAKEFILE="\$(BUILD_DIR)/$NAME$EXT/package.mo" 302 | else 303 | TOPLEVEL_FILE="$BUILD/$NAME$EXT" 304 | TOPLEVEL_FILE_MAKEFILE="\$(BUILD_DIR)/$NAME$EXT" 305 | fi 306 | # Skip fixing it. It makes the test suite harder to maintain, for very little gain 307 | if false && grep -q 'revisionId *= *"$Id:: *$"' "$TOPLEVEL_FILE"; then 308 | # sed -i on OSX requires the suffix 309 | REPLACE_CMD="s/revisionId *= *\"$Id:: *\$\"/revisionId = \"$CHANGED\"/" 310 | sed -i= "$REPLACE_CMD" "$TOPLEVEL_FILE" || exit 1 311 | echo "sed -i= '$REPLACE_CMD' \"$TOPLEVEL_FILE_MAKEFILE\"" >> "$CMD_REPLAY" 312 | fi 313 | fi 314 | 315 | if ! test -z "$BREAKS"; then 316 | echo "$BREAKS" > "$BUILD/$NAME.breaks" 317 | echo "echo '$BREAKS' > \"\$(BUILD_DIR)/$NAME.breaks\"" >> "$CMD_REPLAY" 318 | fi 319 | if ! test -z "$NOPACKAGE"; then 320 | echo "$NOPACKAGE" > "$BUILD/$NAME.nopackage" 321 | echo "echo '$NOPACKAGE' > \"\$(BUILD_DIR)/$NAME.nopackage\"" >> "$CMD_REPLAY" 322 | fi 323 | 324 | if test -e "$BUILD/$NAME$EXT/.svn"; then 325 | rm -rf "$BUILD/$NAME$EXT/.svn" 326 | echo "rm -rf \"\$(BUILD_DIR)/$NAME$EXT/.svn\"" >> "$CMD_REPLAY" 327 | elif test -e "$BUILD/$NAME$EXT/.git"; then 328 | rm -rf "$BUILD/$NAME$EXT/.git"* 329 | echo "rm -rf \"\$(BUILD_DIR)/$NAME$EXT/.git\"*" >> "$CMD_REPLAY" 330 | fi 331 | 332 | if ! test "$STD" = "3.3"; then 333 | echo "$STD" > "$BUILD/$NAME.std" 334 | fi 335 | if ! test "$ENCODING" = "UTF-8"; then 336 | echo "$ENCODING" > "$BUILD/$NAME/package.encoding" 337 | echo "echo '$ENCODING' > \"\$(BUILD_DIR)/$NAME/package.encoding\"" >> "$CMD_REPLAY" 338 | fi 339 | echo $URL > "$BUILD/$NAME.url" 340 | if test -d "$BUILD/$NAME$EXT"; then 341 | LIBTOTEST="$BUILD/$NAME$EXT/package.mo" 342 | else 343 | LIBTOTEST="$BUILD/$NAME$EXT" 344 | fi 345 | ./test-valid.sh "$OMC" "$BUILD" "$LIBTOTEST" || exit 1 346 | done 347 | -------------------------------------------------------------------------------- /update-library.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import io 3 | import os 4 | import requests 5 | import sys 6 | import simplejson 7 | import re 8 | from optparse import OptionParser 9 | from collections import defaultdict 10 | import subprocess 11 | import datetime 12 | 13 | _ = lambda *args: args 14 | 15 | def targets(r): 16 | if r.get('targets'): 17 | return ' '.join(['"%s"' % t for t in r['targets']]) 18 | return "all" 19 | def opts(r): 20 | if 'options' not in r: 21 | return "" 22 | opts = r['options'] 23 | return " ".join(['--%s "%s"' % (key,opts[key]) for key in opts.keys()]) 24 | 25 | with open("repos.json") as f: 26 | jsondata = simplejson.load(f) 27 | repos = jsondata['repos'] 28 | 29 | def updateCommand(r, customBuild=None): 30 | buildDir = customBuild or options.build 31 | if r.get('multitarget'): 32 | dest = 'git/'+r['dest'] 33 | commands = ['sh ./update-library.sh --omc "%s" --build-dir "%s" %s %s "%s" %s "%s" %s' % (options.omc,buildDir,opts(multi),"GIT",r['url'],multi['rev'],dest,targets(multi)) for multi in r['multitarget']] 34 | cmd = " && ".join(commands) 35 | else: 36 | dest = ("git" if r['url'].endswith(".git") else "svn")+'/'+r['dest'] 37 | cmd = 'sh ./update-library.sh --omc "%s" --build-dir "%s" %s %s "%s" %s "%s" %s' % (options.omc,buildDir,opts(r),"GIT" if r['url'].endswith(".git") else "SVN",r['url'],r['rev'],dest,targets(r)) 38 | try: 39 | os.remove(dest+'.cmd') 40 | except: 41 | pass 42 | return cmd 43 | def makeFileReplayCommand(r): 44 | return ("git" if r['url'].endswith(".git") else "svn") + "/" + r['dest'] + ".cmd" 45 | 46 | def silentSystemOrException(cmd): 47 | try: 48 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) 49 | except subprocess.CalledProcessError as e: 50 | print("*** Failed %s: %s" % (e.cmd, e.output)) 51 | return True 52 | return False 53 | 54 | 55 | def update(): 56 | open("bad-uses.sh", "w").write("#!/bin/sh\nsed -i %s \"$1\"\n" % " ".join(["-e '/%s/d' " % use for use in jsondata['bad-uses']])) 57 | 58 | from joblib import Parallel, delayed 59 | provides = defaultdict(list) 60 | for p in jsondata['provided'].keys(): 61 | f = open(options.build + "/%s.provided" % p,'w') 62 | pack = jsondata['provided'][p] 63 | f.write(pack) 64 | provides[pack] += [p] 65 | for k in provides.keys(): 66 | f = open(options.build + "/%s.provides" % k,'w') 67 | f.write(','.join([str((subprocess.check_output("sh ./debian-name.sh %s" % item, shell=True)).decode('utf-8')).strip() for item in provides[k]])) 68 | commands = [updateCommand(r) for r in repos] 69 | for cmd in commands: print(cmd) 70 | try: 71 | os.remove('error.log') 72 | except OSError: 73 | pass 74 | cmdFailed = max(Parallel(n_jobs=n_jobs)(delayed(silentSystemOrException)(cmd) for cmd in commands)) 75 | if cmdFailed: 76 | return 1 77 | 78 | commands = ['cd "git/%s" && git fetch "%s" && git fetch --tags "%s"' % (r['dest'],r['url'],r['url']) for r in repos if r['url'].endswith('.git')] 79 | cmdFailed = max(Parallel(n_jobs=n_jobs)(delayed(silentSystemOrException)(cmd) for cmd in commands)) 80 | 81 | if cmdFailed: 82 | return 1 83 | core_lib=[] 84 | other_lib=[] 85 | lines=[] 86 | phony=".PHONY:" 87 | for r in sorted(repos,key=lambda r: r['dest']): 88 | if r.get("core"): 89 | core_lib.append(r['dest']) 90 | else: 91 | other_lib.append(r['dest']) 92 | phony += " %s" % r['dest'] 93 | lines.append("%s:\n" % r['dest']) 94 | for line in open(makeFileReplayCommand(r),"r").readlines(): 95 | lines.append("\t%s" % line) 96 | with open("Makefile.libs","w") as fout: 97 | fout.write(phony) 98 | stamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S") 99 | fout.write("\nCORE_TARGET=$(BUILD_DIR)/%s.core" % stamp) 100 | fout.write("\nALL_TARGET=$(BUILD_DIR)/%s.all" % stamp) 101 | fout.write("\nCORE_LIBS=" + " ".join(core_lib)) 102 | fout.write("\nOTHER_LIBS=" + " ".join(other_lib)) 103 | fout.write("\nALL_LIBS=$(CORE_LIBS) $(OTHER_LIBS)\n") 104 | fout.write("\nTIMESTAMP=%s\n" % stamp) 105 | fout.writelines(lines) 106 | return 0 107 | 108 | def findPrefix(pre,strs): 109 | for s in strs: 110 | if s.startswith(pre): 111 | return True 112 | return False 113 | 114 | def checkGithub(ghs,urls): 115 | res = [] 116 | access_token = "" 117 | for gh in ghs: 118 | r = requests.get(gh+"&"+access_token) 119 | if(r.ok): 120 | for repo in simplejson.loads(r.text or r.content): 121 | if sum(not (re.search("/%s([.]git)?$" % repo['name'], url) is None) for url in urls): 122 | continue 123 | if repo['fork']: 124 | r = requests.get(repo['url']+"?"+access_token) 125 | if not r.ok: 126 | raise Exception("GitHub request failed: "+repo['url']) 127 | repo = simplejson.loads(r.text or r.content) 128 | res.append(repo) 129 | else: 130 | raise Exception("GitHub request failed %s" % gh) 131 | return res 132 | 133 | def checkLatest(repo, args): 134 | if args and repo["dest"] not in args: 135 | return (None,repo) 136 | msg = None 137 | if repo['url'].endswith('git'): 138 | for r in repo['multitarget'] if repo.get('multitarget') else [repo]: 139 | options = r.get('options') or {} 140 | if options.get('gittag'): 141 | continue 142 | branch = options.get('gitbranch') or 'release' 143 | oldrev = r['rev'] 144 | newrev = subprocess.check_output('git ls-remote "%s" | grep \'refs/heads/%s$\' | cut -f1' % (repo['url'],branch), shell=True).strip() 145 | if oldrev == newrev: 146 | continue 147 | repo_no_multi = {'url':repo['url'], 'dest':repo['dest'], 'rev':r['rev'], 'options':options, 'targets':r.get('targets') or []} 148 | r['rev'] = newrev 149 | if "generate-patch-mos" in options: 150 | for f in options["patch-files"]: 151 | if os.path.exists(f+".bak"): 152 | os.unlink(f+".bak") 153 | if os.path.exists(f): 154 | os.rename(f, f+".bak") 155 | updateOK = False 156 | print(updateCommand(repo_no_multi)) 157 | if 0 != os.system(updateCommand(repo_no_multi)): 158 | msg = '%s branch %s has FAILING head - latest is %s' % (repo['url'],branch,newrev) 159 | elif options.get('automatic-updates') == 'no': 160 | msg = '%s branch %s has working head %s. It was pinned to the old revision and will not be updated.' % (repo['url'],branch,newrev) 161 | else: 162 | if "generate-patch-mos" in options: 163 | cmd = "%s %s" % (parser_options.omc,options["generate-patch-mos"]) 164 | print("Running command %s" % cmd) 165 | if 0 == os.system(cmd): 166 | updateOK = True 167 | for f in options["patch-files"]: 168 | if not os.path.exists(f): 169 | updateOK = False 170 | msg = "%s branch %s failed to generate new patch %s for %s." % (repo['url'],branch,f,newrev) 171 | if updateOK == False: 172 | pass 173 | elif 0 != os.system(updateCommand(repo_no_multi, customBuild=".customBuild/%s/%s" % (repo['dest'],r['rev']))): 174 | msg = "%s branch %s failed to run new patches for %s." % (repo['url'],branch,newrev) 175 | updateOK = False 176 | else: 177 | msg = "%s branch %s failed to create new patches for %s." % (repo['url'],branch,newrev) 178 | print(os.getcwd()) 179 | else: 180 | updateOK = True 181 | if updateOK: 182 | msg = '%s branch %s updated to %s.' % (repo['url'],branch,newrev) 183 | 184 | if not updateOK: 185 | r['rev'] = oldrev 186 | if "generate-patch-mos" in options: 187 | for f in options["patch-files"]: 188 | if os.path.exists(f+".bak"): 189 | if updateOK: 190 | os.unlink(f+".bak") 191 | else: 192 | if os.path.exists(f): 193 | os.rename(f, f+".failed") 194 | os.rename(f+".bak",f) 195 | 196 | logmsg = '' 197 | if repo['url'].startswith('https://github.com/') and repo['url'].endswith('.git'): 198 | commiturl = repo['url'][:-4] 199 | cmd = 'cd "git/%s" && git fetch "%s" && git log %s..%s -n 15 --pretty=oneline --abbrev-commit | sed "s,^ *\\([a-z0-9]*\\), * [%s/commit/\\1 \\1],"' % (repo['dest'],repo['url'],oldrev,newrev,commiturl) 200 | logmsg = subprocess.check_output(cmd, shell=True).strip() 201 | else: 202 | logmsg = subprocess.check_output('cd "git/%s" && git log %s..%s -n 15 --pretty=oneline --abbrev-commit | sed "s/^ */ * /"' % (repo['dest'],oldrev,newrev), shell=True).strip() 203 | logmsg = logmsg.decode('utf-8','ignore') 204 | msg = msg + "\n " + logmsg + "\n" 205 | else: 206 | options = repo.get('options') or {} 207 | intertrac = options.get('intertrac') or '' 208 | svncmd = "svn --non-interactive --username anonymous" 209 | # remoteurl = subprocess.check_output('%s info --xml "svn/%s" | xpath -q -e "/info/entry/repository/root/text()"' % (svncmd,repo['dest']), shell=True).strip() 210 | remoteurl = repo['url'] 211 | oldrev = int(repo['rev']) 212 | newrev = int(subprocess.check_output('%s info --xml "%s" | xpath -q -e "/info/entry/commit/@revision" | grep -o "[0-9]*"' % (svncmd,remoteurl), shell=True)) 213 | repo['rev'] = newrev 214 | if oldrev < newrev: 215 | #changesCmd = '%s log -qv -r%s:%s %s | egrep -o "(/(tags|branches)/[^/]*/|/trunk/)" | sed "s, (from /,/," | sort -u' % (svncmd,oldrev,newrev,remoteurl) 216 | #changes = subprocess.check_output(changesCmd, shell=True).strip() 217 | updateLibraryCmd = updateCommand(repo) 218 | if 0 != os.system(updateLibraryCmd): 219 | repo['rev'] = oldrev 220 | msg = "svn/%s uses %d but %d is available. It FAILED to update using %s" % (repo['dest'],oldrev,newrev,updateLibraryCmd) 221 | elif options.get('automatic-updates') == 'no': 222 | repo['rev'] = oldrev 223 | msg = "svn/%s uses %d but %d is available. It was pinned to the old revision and will not be updated." % (repo['dest'],oldrev,newrev) 224 | else: 225 | msg = "svn/%s has been updated to r%d." % (repo['dest'],newrev) 226 | logmsg = subprocess.check_output('svn log "svn/%s" -l15 -r%d:%d | ./svn-logoneline.sh | sed "s/^/ * %s/"' % (repo['dest'],newrev,oldrev+1,intertrac), shell=True).strip() 227 | logmsg = logmsg.decode('utf-8','ignore') 228 | msg = msg + "\n " + logmsg + "\n" 229 | return (msg,repo) 230 | if __name__ == '__main__': 231 | parser = OptionParser() 232 | parser.add_option("-n", type="int", help="number of threads", dest="n_jobs", default=1) 233 | parser.add_option("--check-latest", help="check for latest svn version", action="store_true", dest="check_latest") 234 | parser.add_option("--add-missing", help="add missing github svn repositories", action="store_true", dest="add_missing") 235 | parser.add_option("--build-dir", help="directory to put libraries", dest="build", type="string", default="build/") 236 | parser.add_option("--omc", help="path to the omc executable", dest="omc", type="string", default="omc") 237 | (options, args) = parser.parse_args() 238 | parser_options = options 239 | n_jobs = options.n_jobs 240 | if options.check_latest: 241 | # update() 242 | os.system("rm -r build/") 243 | from joblib import Parallel, delayed 244 | res = Parallel(n_jobs=n_jobs)(delayed(checkLatest)(repo, args) for repo in repos) 245 | # res = [checkLatest(repo) for repo in repos] 246 | (msgs,repos) = zip(*list(res)) 247 | os.system("rm -f test-valid*.mos") 248 | jsondata['repos'] = sorted(repos, key=lambda k: k['dest']) 249 | f = io.open("commit.log","w",encoding='utf-8') 250 | f.write(u"Bump libraries\n\n") 251 | for msg in msgs: 252 | if msg is not None: 253 | print(msg.encode('utf-8')) 254 | f.write("- %s\n" % msg) 255 | urls = [repo['url'] for repo in repos] + jsondata['github-ignore'] 256 | for repo in checkGithub(jsondata['github-repos'],urls): print("Repository not in database: %s" % repo['svn_url']) 257 | f = open("repos.json","w") 258 | simplejson.dump(jsondata, f, indent=2, sort_keys=True) 259 | elif options.add_missing: 260 | urls = [repo['url'] for repo in repos] + jsondata['github-ignore'] 261 | for repo in checkGithub(jsondata['github-repos'],urls): 262 | url = repo['clone_url'] 263 | branch = repo['default_branch'] 264 | rev = subprocess.check_output("git ls-remote '%s' refs/heads/%s | cut -f1" % (url,branch), shell=True).strip() 265 | entry = {'dest':repo['name'],'options':{'gitbranch':branch},'rev':rev,'url':url} 266 | print("Adding entry",entry) 267 | jsondata['repos'].append(entry) 268 | f = open("repos.json","w") 269 | jsondata['repos'] = sorted(jsondata['repos'], key=lambda k: k['dest']) 270 | simplejson.dump(jsondata, f, indent=2, sort_keys=True) 271 | else: 272 | sys.exit(update()) 273 | -------------------------------------------------------------------------------- /templates/debian/copyright.mpl2: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /svn2cl.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 59 | 60 | 63 | 64 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | / 120 | 121 | 122 | 123 | 124 | 125 | / 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | [r 206 | 207 | ] : 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | * 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | , 305 | 306 | 307 | 308 | 309 | 310 | . 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | , 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | [DEL] 342 | 343 | 344 | [CPY] 345 | 346 | 347 | [ADD] 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | -------------------------------------------------------------------------------- /repos.json: -------------------------------------------------------------------------------- 1 | { 2 | "bad-uses": [ 3 | "conversion default", 4 | "DataFiles 1.0", 5 | "DEVLib 1", 6 | "DEVSLib 2.2", 7 | "DymolaCommands 1.0", 8 | "DymolaCommands 1.1", 9 | "ModelManagement 1.1.1", 10 | "ModeleObsoletes 2015.12", 11 | "Physiolibrary 3.0.0", 12 | "DESLib 1", 13 | "DESLib73 1", 14 | "Interactive 2", 15 | "UserInteraction 0.64", 16 | "SDF 0.4.1" 17 | ], 18 | "github-ignore": [ 19 | "https://github.com/modelica/Modelica", 20 | "https://github.com/modelica/Modelica_EnergyStorages", 21 | "https://github.com/modelica/Modelica_LinearSystems2", 22 | "https://github.com/modelica/Modelica_StateGraph2", 23 | "https://github.com/modelica/Modelica_Synchronous", 24 | "https://github.com/modelica-3rdparty/fmi-standard.org", 25 | "https://github.com/modelica-3rdparty/buildsyspro.git", 26 | "https://github.com/modelica-3rdparty/ATplus", 27 | "https://github.com/modelica-3rdparty/Buildings.git", 28 | "https://github.com/modelica-3rdparty/FuelCellLib", 29 | "https://github.com/modelica-3rdparty/Icons.git", 30 | "https://github.com/modelica-3rdparty/IDEAS.git", 31 | "https://github.com/modelica-3rdparty/modelica-ibpsa.git", 32 | "https://github.com/modelica-3rdparty/MoMoUrEnSySi", 33 | "https://github.com/modelica-3rdparty/MotorcycleLib", 34 | "https://github.com/modelica-3rdparty/MultiBondLib", 35 | "https://github.com/modelica-3rdparty/PDELib", 36 | "https://github.com/simulatino/OpenHPL.git", 37 | "https://github.com/modelica-3rdparty/QCalc.git", 38 | "https://github.com/modelica-3rdparty/SPICELib", 39 | "https://github.com/modelica-3rdparty/TechThermo", 40 | "https://github.com/modelica-3rdparty/ThermoBondLib", 41 | "https://github.com/modelica-3rdparty/Thermocycle-library", 42 | "https://github.com/modelica-3rdparty/Verif", 43 | "https://github.com/modelica-3rdparty/WheelsAndTires" 44 | ], 45 | "github-repos": [ 46 | "https://api.github.com/users/modelica-3rdParty/repos?type=owner&per_page=100" 47 | ], 48 | "provided": { 49 | "AdvancedNoise 1.0.0": "AdvancedNoise 1.0.1", 50 | "AixLib 0.3.0": "AixLib 0.4.0", 51 | "Buildings 4.0.0": "Buildings latest", 52 | "Buildings 5.0.1": "Buildings latest", 53 | "Buildings 5.1.0": "Buildings latest", 54 | "Buildings 8.0.0": "Buildings latest", 55 | "Complex 1.0": "Complex 3.2.3", 56 | "Complex 3.2.1": "Complex 3.2.3", 57 | "Complex 3.2.2": "Complex 3.2.3", 58 | "Complex 3.2.3": "Complex 3.2.3", 59 | "Complex 4.0.0": "Complex trunk", 60 | "Modelica 2.2": "Modelica 2.2.2", 61 | "Modelica 2.2.1": "Modelica 2.2.2", 62 | "Modelica 3.0": "Modelica 3.2.3", 63 | "Modelica 3.2": "Modelica 3.2.3", 64 | "Modelica 3.2.1": "Modelica 3.2.3", 65 | "Modelica 3.2.2": "Modelica 3.2.3", 66 | "Modelica 4.0.0": "Modelica trunk", 67 | "ModelicaServices 3.2": "ModelicaServices 3.2.3", 68 | "ModelicaServices 3.2.1": "ModelicaServices 3.2.3", 69 | "ModelicaServices 3.2.2": "ModelicaServices 3.2.3", 70 | "Modelica_DeviceDrivers 1.4.4": "Modelica_DeviceDrivers 1.5.0", 71 | "Modelica_DeviceDrivers 1.7.0": "Modelica_DeviceDrivers 1.8.0", 72 | "Modelica_DeviceDrivers 1.7.1": "Modelica_DeviceDrivers 1.8.0", 73 | "Modelica_LinearSystems2 2.3.2": "Modelica_LinearSystems2 2.3.4", 74 | "Modelica_StateGraph2 2.0.1": "Modelica_StateGraph2 2.0.3", 75 | "Modelica_StateGraph2 2.0.2": "Modelica_StateGraph2 2.0.3", 76 | "Modelica_Synchronous 0.91": "Modelica_Synchronous 0.93.0", 77 | "Modelica_Synchronous 0.92": "Modelica_Synchronous 0.93.0", 78 | "Modelica_Synchronous 0.92.1": "Modelica_Synchronous 0.93.0", 79 | "Modelica_Synchronous 0.92.2": "Modelica_Synchronous 0.93.0", 80 | "NcDataReader2 2.4.0": "NcDataReader2 2.5.0", 81 | "PhotoVoltaics 1.3.0": "PhotoVoltaics 1.3.1", 82 | "PhotoVoltaics X.X.X": "PhotoVoltaics 1.1.1", 83 | "Physiolibrary 2.3.2": "Physiolibrary 2.3.2-beta", 84 | "VehicleInterfaces 1.2.4": "VehicleInterfaces 1.2.5" 85 | }, 86 | "repos": [ 87 | { 88 | "dest": "AdvancedNoise", 89 | "options": { 90 | "gitbranch": "master" 91 | }, 92 | "rev": "5ce57acd279dadd0d25b76a6b02d3f9e9d061246", 93 | "url": "https://github.com/modelica-3rdparty/AdvancedNoise.git" 94 | }, 95 | { 96 | "dest": "AixLib", 97 | "multitarget": [ 98 | { 99 | "options": { 100 | "gitbranch": "master" 101 | }, 102 | "rev": "65e49ddf5c935846888a61aa303e52c909619079" 103 | }, 104 | { 105 | "options": { 106 | "gitbranch": "master", 107 | "gittag": "v0.4.0" 108 | }, 109 | "rev": "v0.4.0" 110 | } 111 | ], 112 | "url": "https://github.com/RWTH-EBC/AixLib.git" 113 | }, 114 | { 115 | "dest": "AlgebraTestSuite", 116 | "options": { 117 | "gitbranch": "master" 118 | }, 119 | "rev": "b937e1a7f447138c59abec9b2092f84f16bf02e8", 120 | "url": "https://github.com/modelica-3rdparty/AlgebraTestSuite.git" 121 | }, 122 | { 123 | "dest": "ApproxSpline", 124 | "options": { 125 | "gitbranch": "master" 126 | }, 127 | "rev": "28420f5c1a88c9cd069defbd8c05e4a78a090675", 128 | "url": "https://github.com/modelica-3rdparty/ApproxSpline.git" 129 | }, 130 | { 131 | "dest": "BioChem", 132 | "options": { 133 | "gittag": "v1.0.2", 134 | "license": "mpl2" 135 | }, 136 | "rev": "v1.0.2", 137 | "url": "https://github.com/OpenModelica/BioChem.git" 138 | }, 139 | { 140 | "dest": "BondGraph", 141 | "options": { 142 | "gitbranch": "master", 143 | "license": "lgpl3+" 144 | }, 145 | "rev": "20c23e60d12989bd4668ccac47659d82d39d29cc", 146 | "url": "https://github.com/modelica-3rdparty/BondGraph.git" 147 | }, 148 | { 149 | "dest": "BrineProp", 150 | "options": { 151 | "gitbranch": "master" 152 | }, 153 | "rev": "562af7d3498576b5e8d9bfd3b4b11e70774081ba", 154 | "url": "https://github.com/modelica-3rdparty/BrineProp.git" 155 | }, 156 | { 157 | "dest": "BuildSysPro", 158 | "options": { 159 | "gittag": "v3.3.0" 160 | }, 161 | "rev": "v3.3.0", 162 | "url": "https://github.com/EDF-TREE/BuildSysPro.git" 163 | }, 164 | { 165 | "dest": "BuildingControlLib", 166 | "options": { 167 | "gittag": "v1.0.0" 168 | }, 169 | "rev": "v1.0.0", 170 | "url": "https://github.com/modelica-3rdparty/BuildingControlLib.git" 171 | }, 172 | { 173 | "dest": "BuildingSystems", 174 | "options": { 175 | "gitbranch": "master" 176 | }, 177 | "rev": "41c67bc971fd442b870346fd02a56f560290331e", 178 | "url": "https://github.com/modelica-3rdparty/BuildingSystems.git" 179 | }, 180 | { 181 | "dest": "Buildings", 182 | "multitarget": [ 183 | { 184 | "options": { 185 | "gitbranch": "master", 186 | "gittag": "v6.0.0", 187 | "license": "buildings" 188 | }, 189 | "rev": "v6.0.0" 190 | }, 191 | { 192 | "options": { 193 | "gitbranch": "master", 194 | "gittag": "v7.0.0", 195 | "license": "buildings" 196 | }, 197 | "rev": "v7.0.0" 198 | } 199 | ], 200 | "url": "https://github.com/lbl-srg/modelica-buildings.git" 201 | }, 202 | { 203 | "dest": "Chemical", 204 | "options": { 205 | "gitbranch": "master" 206 | }, 207 | "rev": "5645573fced862430b7b598b4d7ec1a39c7aa0fa", 208 | "url": "https://github.com/modelica-3rdparty/Chemical.git" 209 | }, 210 | { 211 | "dest": "DeployStructLib", 212 | "options": { 213 | "gittag": "v1.0" 214 | }, 215 | "rev": "v1.0", 216 | "url": "https://github.com/modelica-3rdparty/DeployStructLib.git" 217 | }, 218 | { 219 | "dest": "DisHeatLib", 220 | "options": { 221 | "gitbranch": "master" 222 | }, 223 | "rev": "04573cd6839ca67382cc0b46be0032201a143e2d", 224 | "url": "https://github.com/modelica-3rdparty/DisHeatLib.git" 225 | }, 226 | { 227 | "dest": "DriveControl", 228 | "options": { 229 | "gitbranch": "release", 230 | "license": "bsd3" 231 | }, 232 | "rev": "b7233fd97a92867bb4ec2c3647c7f7e888398644", 233 | "url": "https://github.com/AHaumer/DriveControl.git" 234 | }, 235 | { 236 | "dest": "ElectroMechanicalDrives", 237 | "options": { 238 | "gittag": "v2.2.0", 239 | "license": "bsd3" 240 | }, 241 | "rev": "v2.2.0", 242 | "url": "https://github.com/christiankral/ElectroMechanicalDrives.git" 243 | }, 244 | { 245 | "dest": "ExternData", 246 | "options": { 247 | "gittag": "v2.5.0" 248 | }, 249 | "rev": "v2.5.0", 250 | "url": "https://github.com/modelica-3rdparty/ExternData.git" 251 | }, 252 | { 253 | "dest": "ExternalMedia", 254 | "options": { 255 | "gitbranch": "master" 256 | }, 257 | "rev": "6138312c96142ff3c01190147e6277991bfa2fca", 258 | "url": "https://github.com/modelica/ExternalMedia.git" 259 | }, 260 | { 261 | "dest": "ExternalMemoryLib", 262 | "options": { 263 | "gitbranch": "master" 264 | }, 265 | "rev": "6488d5815bda23c665123baa916789e283e16d2c", 266 | "url": "https://github.com/modelica-3rdparty/ExternalMemoryLib.git" 267 | }, 268 | { 269 | "dest": "FMITest", 270 | "options": { 271 | "gitbranch": "master" 272 | }, 273 | "rev": "a67a276083f4010b249802ad8fc70dc30c09adfd", 274 | "url": "https://github.com/modelica-3rdparty/FMITest.git" 275 | }, 276 | { 277 | "dest": "FailureModes", 278 | "options": { 279 | "gittag": "v1.2.1" 280 | }, 281 | "rev": "v1.2.1", 282 | "url": "https://github.com/modelica-3rdparty/FailureModes.git" 283 | }, 284 | { 285 | "dest": "FaultTriggering", 286 | "options": { 287 | "gittag": "v0.6.6" 288 | }, 289 | "rev": "v0.6.6", 290 | "url": "https://github.com/modelica-3rdparty/FaultTriggering.git" 291 | }, 292 | { 293 | "dest": "FeedDriveLibrary", 294 | "options": { 295 | "gittag": "1.0.1" 296 | }, 297 | "rev": "1.0.1", 298 | "url": "https://github.com/modelica-3rdparty/FeedDriveLibrary.git" 299 | }, 300 | { 301 | "dest": "FractionalOrder", 302 | "options": { 303 | "gitbranch": "master" 304 | }, 305 | "rev": "99918820e346c362c3ad52d782c8215e5deeac4c", 306 | "url": "https://github.com/DLR-SR/FractionalOrder.git" 307 | }, 308 | { 309 | "dest": "Greenhouses-Library", 310 | "options": { 311 | "gitbranch": "master" 312 | }, 313 | "rev": "89ae0e8097eb0751abce2013d304fa5f9c09b885", 314 | "url": "https://github.com/modelica-3rdparty/Greenhouses-Library.git" 315 | }, 316 | { 317 | "dest": "HanserModelica", 318 | "options": { 319 | "gittag": "v1.1.0", 320 | "license": "bsd3" 321 | }, 322 | "rev": "v1.1.0", 323 | "url": "https://github.com/christiankral/HanserModelica.git" 324 | }, 325 | { 326 | "dest": "HelmholtzMedia", 327 | "options": { 328 | "gitbranch": "master" 329 | }, 330 | "rev": "18ff552ace69672034af2bc8466afef6c374a98a", 331 | "url": "https://github.com/modelica-3rdparty/HelmholtzMedia.git" 332 | }, 333 | { 334 | "dest": "IBPSA", 335 | "options": { 336 | "gittag": "v3.0.0" 337 | }, 338 | "rev": "v3.0.0", 339 | "url": "https://github.com/ibpsa/modelica-ibpsa.git" 340 | }, 341 | { 342 | "dest": "IDEAS", 343 | "options": { 344 | "gittag": "v2.1.0" 345 | }, 346 | "rev": "v2.1.0", 347 | "url": "https://github.com/open-ideas/IDEAS.git" 348 | }, 349 | { 350 | "dest": "IndustrialControlSystems", 351 | "options": { 352 | "gittag": "v1.1.0" 353 | }, 354 | "rev": "v1.1.0", 355 | "url": "https://github.com/modelica-3rdparty/IndustrialControlSystems.git" 356 | }, 357 | { 358 | "dest": "KeyWordIO", 359 | "options": { 360 | "gittag": "v0.9.0", 361 | "license": "bsd3" 362 | }, 363 | "rev": "v0.9.0", 364 | "url": "https://github.com/christiankral/KeyWordIO.git" 365 | }, 366 | { 367 | "dest": "LibRAS", 368 | "options": { 369 | "gitbranch": "master", 370 | "license": "gpl3" 371 | }, 372 | "rev": "fca9de50a484a2213f3ca1b39e275c237c471688", 373 | "url": "https://github.com/FishSim/LibRAS.git" 374 | }, 375 | { 376 | "dest": "LinearMPC", 377 | "options": { 378 | "gittag": "v1.0" 379 | }, 380 | "rev": "v1.0", 381 | "url": "https://github.com/modelica-3rdparty/LinearMPC.git" 382 | }, 383 | { 384 | "dest": "MEV", 385 | "options": { 386 | "gitbranch": "master", 387 | "gittag": "v1.0.1" 388 | }, 389 | "rev": "v1.0.1", 390 | "url": "https://github.com/looms-polimi/MEV.git" 391 | }, 392 | { 393 | "dest": "ModPowerSystems", 394 | "options": { 395 | "gitbranch": "master" 396 | }, 397 | "rev": "df3afce27d5e935c4111f392275744a655abe216", 398 | "url": "https://github.com/modelica-3rdparty/ModPowerSystems.git" 399 | }, 400 | { 401 | "core": true, 402 | "dest": "Modelica", 403 | "multitarget": [ 404 | { 405 | "options": { 406 | "gitbranch": "OM/maint/3.2.3", 407 | "intertrac": "m:", 408 | "license": "bsd3", 409 | "no-dependencies": "ModelicaServices", 410 | "remove-files": "Resources/Library" 411 | }, 412 | "rev": "e68d7a0317c565ee00c1b8d44c527979ea0304bf", 413 | "targets": [ 414 | "Complex", 415 | "Modelica", 416 | "ModelicaServices", 417 | "ModelicaTest", 418 | "ObsoleteModelica3", 419 | "ModelicaReference none" 420 | ] 421 | }, 422 | { 423 | "options": { 424 | "gitbranch": "OM/maint/4.0.x", 425 | "intertrac": "m:", 426 | "license": "bsd3", 427 | "no-dependencies": "ModelicaServices", 428 | "remove-files": "Resources/Library" 429 | }, 430 | "rev": "c11123102e94d4b5acb139331a6d85f45d8adcc0", 431 | "targets": [ 432 | "Complex", 433 | "Modelica", 434 | "ModelicaServices", 435 | "ModelicaTest", 436 | "ObsoleteModelica4" 437 | ] 438 | } 439 | ], 440 | "url": "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary.git" 441 | }, 442 | { 443 | "dest": "Modelica-Arduino", 444 | "options": { 445 | "gittag": "v0.1.0" 446 | }, 447 | "rev": "v0.1.0", 448 | "url": "https://github.com/modelica-3rdparty/Modelica-Arduino.git" 449 | }, 450 | { 451 | "dest": "Modelica-GNU_ScientificLibrary", 452 | "options": { 453 | "gitbranch": "master" 454 | }, 455 | "rev": "9235ab28bdd7f0fe3e7abba48af53d73332858ec", 456 | "url": "https://github.com/modelica-3rdparty/Modelica-GNU_ScientificLibrary.git" 457 | }, 458 | { 459 | "dest": "Modelica-MVEM", 460 | "options": { 461 | "gittag": "v1.0.1" 462 | }, 463 | "rev": "v1.0.1", 464 | "url": "https://github.com/modelica-3rdparty/Modelica-MVEM.git" 465 | }, 466 | { 467 | "dest": "ModelicaADS", 468 | "options": { 469 | "gittag": "v1.0.1" 470 | }, 471 | "rev": "v1.0.1", 472 | "url": "https://github.com/modelica-3rdparty/ModelicaADS.git" 473 | }, 474 | { 475 | "dest": "ModelicaBook", 476 | "options": { 477 | "gittag": "v0.6.0" 478 | }, 479 | "rev": "v0.6.0", 480 | "url": "https://github.com/xogeny/ModelicaBook.git" 481 | }, 482 | { 483 | "dest": "ModelicaCompliance", 484 | "options": { 485 | "gitbranch": "master" 486 | }, 487 | "rev": "8a91e75d8a26acc4de30fc0e5d5e9db83c970bd6", 488 | "url": "https://github.com/modelica-compliance/compliance.git" 489 | }, 490 | { 491 | "dest": "ModelicaDFR", 492 | "options": { 493 | "gitbranch": "master" 494 | }, 495 | "rev": "37a441934d05330cf3d13e9ec551954d27eca84c", 496 | "url": "https://github.com/modelica-3rdparty/ModelicaDFR.git" 497 | }, 498 | { 499 | "dest": "Modelica_DeviceDrivers", 500 | "options": { 501 | "gittag": "v1.8.2" 502 | }, 503 | "rev": "v1.8.2", 504 | "url": "https://github.com/modelica/Modelica_DeviceDrivers.git" 505 | }, 506 | { 507 | "dest": "Modelica_LinearSystems2", 508 | "options": { 509 | "gittag": "v2.3.5" 510 | }, 511 | "rev": "v2.3.5", 512 | "url": "https://github.com/modelica/Modelica_LinearSystems2.git" 513 | }, 514 | { 515 | "dest": "Modelica_Requirements", 516 | "options": { 517 | "gitbranch": "master" 518 | }, 519 | "rev": "a427b5cb7997e9036c577d219e6b8a5d0c28389a", 520 | "url": "https://github.com/modelica-3rdparty/Modelica_Requirements.git" 521 | }, 522 | { 523 | "dest": "Modelica_Synchronous", 524 | "options": { 525 | "gitbranch": "master" 526 | }, 527 | "rev": "c8350276bfd945086962cf4150ba941b9c57ed13", 528 | "url": "https://github.com/modelica/Modelica_Synchronous.git" 529 | }, 530 | { 531 | "dest": "MultiPhaseMixtureMedia", 532 | "options": { 533 | "gitbranch": "master" 534 | }, 535 | "rev": "0bda0c58af6384f8e0edf7aa7520afb369af3e38", 536 | "url": "https://github.com/jwindahlModelon/MultiPhaseMixtureMedia.git" 537 | }, 538 | { 539 | "dest": "OpenIPSL", 540 | "options": { 541 | "gittag": "v1.5.0" 542 | }, 543 | "rev": "v1.5.0", 544 | "url": "https://github.com/OpenIPSL/OpenIPSL.git" 545 | }, 546 | { 547 | "dest": "Optimisers", 548 | "options": { 549 | "gitbranch": "master" 550 | }, 551 | "rev": "e33c69edaad6dad8029167b0ca00533964a6fe37", 552 | "url": "https://github.com/modelica-3rdparty/Optimisers.git" 553 | }, 554 | { 555 | "dest": "PNlib", 556 | "options": { 557 | "gitbranch": "master" 558 | }, 559 | "rev": "059545d48dd9ceeccfa3b4e47689ec8dd334dcd8", 560 | "url": "https://github.com/lochel/PNlib.git" 561 | }, 562 | { 563 | "dest": "PVSystems", 564 | "options": { 565 | "gittag": "v0.6.2" 566 | }, 567 | "rev": "v0.6.2", 568 | "url": "https://github.com/modelica-3rdparty/PVSystems.git" 569 | }, 570 | { 571 | "dest": "PhotoVoltaics", 572 | "options": { 573 | "gittag": "v1.6.0", 574 | "license": "bsd3" 575 | }, 576 | "rev": "v1.6.0", 577 | "url": "https://github.com/modelica-3rdparty/PhotoVoltaics.git" 578 | }, 579 | { 580 | "dest": "Physiolibrary", 581 | "options": { 582 | "gittag": "v2.3.1" 583 | }, 584 | "rev": "v2.3.1", 585 | "url": "https://github.com/MarekMatejak/Physiolibrary.git" 586 | }, 587 | { 588 | "dest": "Physiomodel", 589 | "options": { 590 | "gittag": "v1.0.0" 591 | }, 592 | "rev": "v1.0.0", 593 | "url": "https://github.com/modelica-3rdparty/Physiomodel.git" 594 | }, 595 | { 596 | "dest": "PlanarMechanics", 597 | "options": { 598 | "gitbranch": "master" 599 | }, 600 | "rev": "4818bd6b35baad1fc40182e27e429b2038a21be8", 601 | "url": "https://github.com/dzimmer/PlanarMechanics.git" 602 | }, 603 | { 604 | "dest": "PowerGrids", 605 | "options": { 606 | "gittag": "v1.0.0" 607 | }, 608 | "rev": "v1.0.0", 609 | "url": "https://github.com/PowerGrids/PowerGrids.git" 610 | }, 611 | { 612 | "dest": "PowerSystems", 613 | "options": { 614 | "gittag": "v1.0.0" 615 | }, 616 | "rev": "v1.0.0", 617 | "url": "https://github.com/modelica/PowerSystems.git" 618 | }, 619 | { 620 | "dest": "PowerSystems-latest", 621 | "options": { 622 | "gitbranch": "master" 623 | }, 624 | "rev": "78ae47f5ebac19f9600c5d694dc5b634be37dc18", 625 | "targets": [ 626 | "PowerSystems latest" 627 | ], 628 | "url": "https://github.com/modelica/PowerSystems.git" 629 | }, 630 | { 631 | "dest": "RealTimeCoordinationLibrary", 632 | "options": { 633 | "encoding": "Windows-1252", 634 | "gittag": "v1.0.2" 635 | }, 636 | "rev": "v1.0.2", 637 | "targets": [ 638 | "self" 639 | ], 640 | "url": "https://github.com/modelica-3rdparty/RealTimeCoordinationLibrary.git" 641 | }, 642 | { 643 | "dest": "ScalableTestSuite", 644 | "options": { 645 | "gittag": "v1.11.5" 646 | }, 647 | "rev": "v1.11.5", 648 | "url": "https://github.com/casella/ScalableTestSuite.git" 649 | }, 650 | { 651 | "dest": "Servomechanisms", 652 | "options": { 653 | "gitbranch": "master" 654 | }, 655 | "rev": "3bf82ba5d3f31b4a0ae05f99ae690037358e153e", 656 | "url": "https://github.com/modelica-3rdparty/Servomechanisms.git" 657 | }, 658 | { 659 | "dest": "SolarTherm", 660 | "options": { 661 | "gitbranch": "master" 662 | }, 663 | "rev": "91aae31d04f350d0a40a3297e226ab45d00b0ce9", 664 | "targets": [ 665 | "SolarTherm" 666 | ], 667 | "url": "https://github.com/SolarTherm/SolarTherm.git" 668 | }, 669 | { 670 | "dest": "Soltermica", 671 | "options": { 672 | "gitbranch": "master" 673 | }, 674 | "rev": "9f7224bd89335f95dffe1ccdaa094df5a3279fdf", 675 | "url": "https://github.com/modelica-3rdparty/Soltermica.git" 676 | }, 677 | { 678 | "dest": "SystemDynamics", 679 | "options": { 680 | "gitbranch": "master", 681 | "license": "modelica1.1" 682 | }, 683 | "rev": "2f6bd9382c5aac2aff9148cd9113a418767734b6", 684 | "url": "https://github.com/modelica-3rdparty/SystemDynamics.git" 685 | }, 686 | { 687 | "dest": "ThermalSeparation", 688 | "options": { 689 | "gitbranch": "master" 690 | }, 691 | "rev": "ffa0495ba829ecab105be4bfb3b7652625ec9c03", 692 | "url": "https://github.com/thom-marx/ThermalSeparation.git" 693 | }, 694 | { 695 | "dest": "ThermoPower", 696 | "options": { 697 | "gitbranch": "master" 698 | }, 699 | "rev": "650be2c8cbd5abc3535e92b865e509073afc8aeb", 700 | "url": "https://github.com/casella/ThermoPower.git" 701 | }, 702 | { 703 | "dest": "ThermoSysPro", 704 | "multitarget": [ 705 | { 706 | "options": { 707 | "gitbranch": "maint/3.1" 708 | }, 709 | "rev": "db81ae1b5a6a85f6c6c7693244cafa6087e18ff5" 710 | }, 711 | { 712 | "options": { 713 | "gitbranch": "master" 714 | }, 715 | "rev": "5cef9acb4dedf8af6f4638a4448f08a544ebd30b" 716 | } 717 | ], 718 | "url": "https://openmodelica.org/git/ThermoSysPro.git" 719 | }, 720 | { 721 | "dest": "VVDRlib", 722 | "options": { 723 | "gitbranch": "master" 724 | }, 725 | "rev": "eae4981674642eddffc7f2aa3690320fcaddee0e", 726 | "targets": [ 727 | "self" 728 | ], 729 | "url": "https://github.com/lenaRB/VVDRlib.git" 730 | }, 731 | { 732 | "dest": "VehicleInterfaces", 733 | "multitarget": [ 734 | { 735 | "options": { 736 | "gittag": "v1.2.5" 737 | }, 738 | "rev": "v1.2.5", 739 | "targets": [ 740 | "VehicleInterfaces 1.2.5" 741 | ] 742 | } 743 | ], 744 | "url": "https://github.com/modelica/VehicleInterfaces.git" 745 | }, 746 | { 747 | "dest": "WasteWater", 748 | "options": { 749 | "gittag": "v2.1.0" 750 | }, 751 | "rev": "v2.1.0", 752 | "url": "https://github.com/modelica-3rdparty/WasteWater.git" 753 | }, 754 | { 755 | "dest": "WindPowerPlants", 756 | "options": { 757 | "gittag": "v1.2.0", 758 | "license": "bsd3" 759 | }, 760 | "rev": "v1.2.0", 761 | "url": "https://github.com/modelica-3rdparty/WindPowerPlants.git" 762 | }, 763 | { 764 | "dest": "ipsl", 765 | "options": { 766 | "gittag": "v1.1.1" 767 | }, 768 | "rev": "v1.1.1", 769 | "url": "https://github.com/modelica-3rdparty/ipsl.git" 770 | }, 771 | { 772 | "dest": "netCDF-DataReader", 773 | "options": { 774 | "gittag": "v2.5.0", 775 | "license": "lgpl2.1+" 776 | }, 777 | "rev": "v2.5.0", 778 | "url": "https://github.com/modelica-3rdparty/netCDF-DataReader.git" 779 | }, 780 | { 781 | "dest": "open-bldc-modelica", 782 | "options": { 783 | "gitbranch": "master" 784 | }, 785 | "rev": "58a83b5b36f267613de4676c95163489b1ddc2e7", 786 | "url": "https://github.com/joewa/open-bldc-modelica.git" 787 | } 788 | ] 789 | } -------------------------------------------------------------------------------- /templates/debian/copyright.modelica2: -------------------------------------------------------------------------------- 1 | All files in this directory and in all subdirectories are released 2 | under the "Modelica License 2" (if not explicitly noted otherwise). 3 | 4 | The Modelica License 2 5 | 6 | Preamble. 7 | The goal of this license is that Modelica related model libraries, software, 8 | images, documents, data files etc. can be used freely in the original or a 9 | modified form, in open source and in commercial environments (as long as the 10 | license conditions below are fulfilled, in particular sections 2c) and 2d). 11 | The Original Work is provided free of charge and the use is completely at your 12 | own risk. Developers of free Modelica packages are encouraged to utilize this 13 | license for their work. 14 | 15 | The Modelica License applies to any Original Work that contains the following 16 | licensing notice adjacent to the copyright notice(s) for this Original Work: 17 | 18 | Licensed by under the Modelica License 2 19 | 20 | 1. Definitions. 21 | 22 | a. "License" is this Modelica License. 23 | 24 | b. "Original Work" is any work of authorship, including 25 | software, images, documents, data files, that contains the above 26 | licensing notice or that is packed together with a licensing notice 27 | referencing it. 28 | 29 | c. "Licensor" is the provider of the Original Work who has 30 | placed this licensing notice adjacent to the copyright notice(s) for 31 | the Original Work. The Original Work is either directly provided by 32 | the owner of the Original Work, or by a licensee of the owner. 33 | 34 | d. "Derivative Work" is any modification of the Original 35 | Work which represents, as a whole, an original work of authorship. 36 | For the matter of clarity and as examples: 37 | 38 | A. Derivative Work shall not include work that remains separable 39 | from the Original Work, as well as merely extracting a part of 40 | the Original Work without modifying it. 41 | 42 | B. Derivative Work shall not include (a) fixing of errors and/or (b) 43 | adding vendor specific Modelica annotations and/or (c) using a 44 | subset of the classes of a Modelica package, and/or (d) using a 45 | different representation, e.g., a binary representation. 46 | 47 | C. Derivative Work shall include classes that are copied from the 48 | Original Work where declarations, equations or the documentation 49 | are modified. 50 | 51 | D. Derivative Work shall include executables to simulate the models 52 | that are generated by a Modelica translator based on the 53 | Original Work (of a Modelica package). 54 | 55 | e. "Modified Work" is any modification of the Original Work 56 | with the following exceptions: (a) fixing of errors and/or (b) 57 | adding vendor specific Modelica annotations and/or (c) using a 58 | subset of the classes of a Modelica package, and/or (d) using a 59 | different representation, e.g., a binary representation. 60 | 61 | f. "Source Code" means the preferred form of the Original 62 | Work for making modifications to it and all available documentation 63 | describing how to modify the Original Work. 64 | 65 | g. "You" means an individual or a legal entity exercising 66 | rights under, and complying with all of the terms of, this License. 67 | 68 | h. "Modelica package" means any Modelica library that is 69 | defined with the "package ... end " Modelica language 70 | element. 71 | 72 | 2. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, 73 | non-exclusive, sublicensable license, for the duration of the copyright, to do 74 | the following: 75 | 76 | a. To reproduce the Original Work in copies, either alone or as part of 77 | a collection. 78 | b. To create Derivative Works according to Section 1d) of this License. 79 | c. To distribute or communicate to the public copies of the Original 80 | Work or a Derivative Work under this License. No fee, neither as a 81 | copyright-license fee, nor as a selling fee for the copy as such may 82 | be charged under this License. Furthermore, a verbatim copy of this 83 | License must be included in any copy of the Original Work or a 84 | Derivative Work under this License. 85 | For the matter of clarity, it is permitted A) to distribute or 86 | communicate such copies as part of a (possible commercial) 87 | collection where other parts are provided under different licenses 88 | and a license fee is charged for the other parts only and B) to 89 | charge for mere printing and shipping costs. 90 | d. To distribute or communicate to the public copies of a Derivative 91 | Work, alternatively to Section 2c), under any other license 92 | of your choice, especially also under a license for 93 | commercial/proprietary software, as long as You comply with Sections 94 | 3, 4 and 8 below. 95 | For the matter of clarity, no restrictions regarding fees, either as 96 | to a copyright-license fee or as to a selling fee for the copy as 97 | such apply. 98 | e. To perform the Original Work publicly. 99 | f. To display the Original Work publicly. 100 | 101 | 3. Acceptance. Any use of the Original Work or a Derivative Work, or any 102 | action according to either Section 2a) to 2f) above constitutes Your 103 | acceptance of this License. 104 | 105 | 4. Designation of Derivative Works and of Modified Works. 106 | The identifying designation of Derivative Work and of Modified 107 | Work must be different to the corresponding identifying designation 108 | of the Original Work. This means especially that the (root-level) 109 | name of a Modelica package under this license must be changed if the 110 | package is modified (besides fixing of errors, adding vendor specific 111 | Modelica annotations, using a subset of the classes of a Modelica 112 | package, or using another representation, e.g. a binary 113 | representation). 114 | 115 | 5. Grant of Patent License. Licensor grants You a worldwide, royalty-free, 116 | non-exclusive, sublicensable license, under patent claims owned by the Licensor 117 | or licensed to the Licensor by the owners of the Original Work that are 118 | embodied in the Original Work as furnished by the Licensor, for the duration 119 | of the patents, to make, use, sell, offer for sale, have made, and import the 120 | Original Work and Derivative Works under the conditions as given in Section 2. 121 | For the matter of clarity, the license regarding Derivative Works covers 122 | patent claims to the extent as they are embodied in the Original Work only. 123 | 124 | 6. Provision of Source Code. Licensor agrees to provide You with a copy of the 125 | Source Code of the Original Work but reserves the right to decide freely on the 126 | manner of how the Original Work is provided. 127 | For the matter of clarity, Licensor might provide only a binary 128 | representation of the Original Work. In that case, You may (a) either 129 | reproduce the Source Code from the binary representation if this is 130 | possible (e.g., by performing a copy of an encrypted Modelica 131 | package, if encryption allows the copy operation) or (b) request the 132 | Source Code from the Licensor who will provide it to You. 133 | 134 | 7. Exclusions from License Grant. Neither the names of Licensor, nor the names 135 | of any contributors to the Original Work, nor any of their trademarks or 136 | service marks, may be used to endorse or promote products derived from this 137 | Original Work without express prior permission of the Licensor. Except as 138 | otherwise expressly stated in this License and in particular in Sections 139 | 2 and 5, nothing in this License grants any license to Licensor's trademarks, 140 | copyrights, patents, trade secrets or any other intellectual 141 | property, and no patent license is granted to make, use, sell, offer 142 | for sale, have made, or import embodiments of any patent claims. 143 | No license is granted to the trademarks of Licensor even if such 144 | trademarks are included in the Original Work, except as expressly stated in 145 | this License. Nothing in this License shall be interpreted to prohibit Licensor 146 | from licensing under terms different from this License any Original Work that 147 | Licensor otherwise would have a right to license. 148 | 149 | 8. Attribution Rights. You must retain in the Source Code of the Original Work 150 | and of any Derivative Works that You create, all author, copyright, patent, 151 | or trademark notices, as well as any descriptive text identified therein as an 152 | "Attribution Notice". The same applies to the licensing notice of this 153 | License in the Original Work. For the matter of clarity, "author notice" means 154 | the notice that identifies the original author(s). 155 | You must cause the Source Code for any Derivative Works that You create 156 | to carry a prominent Attribution Notice reasonably calculated to inform 157 | recipients that You have modified the Original Work. 158 | In case the Original Work or Derivative Work is not provided in 159 | Source Code, the Attribution Notices shall be appropriately 160 | displayed, e.g., in the documentation of the Derivative Work. 161 | 162 | 9. Disclaimer of Warranty. 163 | The Original Work is provided under this License on an "as is" basis and 164 | without warranty, either express or implied, including, without limitation, 165 | the warranties of non-infringement, merchantability or fitness for a particular 166 | purpose. The entire risk as to the quality of the Original Work is 167 | with You. This disclaimer of warranty constitutes an essential part of this 168 | License. No license to the Original Work is granted by this License except 169 | under this disclaimer. 170 | 171 | 10. Limitation of Liability. Under no circumstances and under no legal theory, 172 | whether in tort (including negligence), contract, or otherwise, shall the 173 | Licensor, the owner or a licensee of the Original Work be liable to anyone for 174 | any direct, indirect, general, special, incidental, or consequential damages 175 | of any character arising as a result of this License or the use of the 176 | Original Work including, without limitation, damages for loss of 177 | goodwill, work stoppage, computer failure or malfunction, or any and 178 | all other commercial damages or losses. This limitation of liability 179 | shall not apply to the extent applicable law prohibits such 180 | limitation. 181 | 182 | 11. Termination. This License conditions your rights to undertake the 183 | activities listed in Section 2 and 5, including your right to create Derivative 184 | Works based upon the Original Work, and doing so without observing these terms 185 | and conditions is prohibited by copyright law and international treaty. 186 | Nothing in this License is intended to affect copyright exceptions and 187 | limitations. This License shall terminate immediately and You may no longer 188 | exercise any of the rights granted to You by this License upon your failure 189 | to observe the conditions of this license. 190 | 191 | 12. Termination for Patent Action. This License shall terminate automatically 192 | and You may no longer exercise any of the rights granted to You by this License 193 | as of the date You commence an action, including a cross-claim or counterclaim, 194 | against Licensor, any owners of the Original Work or any licensee alleging that 195 | the Original Work infringes a patent. This termination provision shall 196 | not apply for an action alleging patent infringement through 197 | combinations of the Original Work under combination with other 198 | software or hardware. 199 | 200 | 13. Jurisdiction. Any action or suit relating to this License may be brought 201 | only in the courts of a jurisdiction wherein the Licensor resides and under 202 | the laws of that jurisdiction excluding its conflict-of-law provisions. 203 | The application of the United Nations Convention on Contracts for the 204 | International Sale of Goods is expressly excluded. Any use of the Original Work 205 | outside the scope of this License or after its termination shall be subject to 206 | the requirements and penalties of copyright or patent law in the 207 | appropriate jurisdiction. This section shall survive the termination 208 | of this License. 209 | 210 | 14. Attorneys' Fees. In any action to enforce the terms of this License or 211 | seeking damages relating thereto, the prevailing party shall be entitled to 212 | recover its costs and expenses, including, without limitation, reasonable 213 | attorneys' fees and costs incurred in connection with such action, including 214 | any appeal of such action. This section shall survive the termination of this 215 | License. 216 | 217 | 15. Miscellaneous. 218 | a. If any provision of this License is held to be unenforceable, such 219 | provision shall be reformed only to the extent necessary to make it 220 | enforceable. 221 | 222 | b. No verbal ancillary agreements have been made. Changes and additions to 223 | this License must appear in writing to be valid. This also applies to 224 | changing the clause pertaining to written form. 225 | 226 | c. You may use the Original Work in all ways not otherwise restricted or 227 | conditioned by this License or by law, and Licensor promises not to 228 | interfere with or be responsible for such uses by You. 229 | 230 | =============================================================================== 231 | 232 |

233 | How to Apply the Modelica License 2

234 | 235 |

At 236 | the top level of your Modelica package and at every important 237 | subpackage, add the following notices in the info layer of the 238 | package:

239 | 240 |

241 | Licensed by <Licensor> under the Modelica License 2
242 | Copyright © <year1>-<year2>, <name of copyright 243 | holder(s)>. 244 |

245 | 246 |

247 | This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see Modelica.UsersGuide.ModelicaLicense2 or visit http://www.modelica.org/licenses/ModelicaLicense2. 248 |

249 | 250 |

Include 251 | a copy of the Modelica License 2 under 252 | <library>.UsersGuide.ModelicaLicense2 253 | (use 254 | http://www.modelica.org/licenses/ModelicaLicense2.mo). 255 | Furthermore, add 256 | the list of authors and contributors under 257 | <library>.UsersGuide.Contributors or 258 | <library>.UsersGuide.Contact.

259 | 260 |

For 261 | example, sublibrary Modelica.Blocks of the Modelica Standard Library 262 | may have the following notices:

263 | 264 |

265 | Licensed by Modelica Association under the Modelica License 2
266 | Copyright © 1998-2008, Modelica Association. 267 |

268 | 269 |

270 | This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see Modelica.UsersGuide.ModelicaLicense2 or visit http://www.modelica.org/licenses/ModelicaLicense2. 271 |

272 | 273 |

For 274 | C-source code and documents, add similar notices in the corresponding 275 | file.

276 | 277 |

For 278 | images, add a “readme.txt” file to the directories where 279 | the images are stored and include a similar notice in this file.

280 | 281 |

In 282 | these cases, save a copy of the Modelica License 2 in one directory 283 | of the distribution, e.g., 284 | 285 | http://www.modelica.org/licenses/ModelicaLicense2.html 286 | in directory <library>/Resources/Documentation/ModelicaLicense2.html. 287 |

288 | 289 |
290 | 291 |
292 | Frequently Asked Questions
293 |

This 294 | section contains questions/answer to users and/or distributors of 295 | Modelica packages and/or documents under Modelica License 2. Note, 296 | the answers to the questions below are not a legal interpretation of 297 | the Modelica License 2. In case of a conflict, the language of the 298 | license shall prevail.

299 | 300 |
Using or Distributing a Modelica Package under the Modelica License 2
301 | 302 |

What are the main 303 | differences to the previous version of the Modelica License?

304 |
    305 |
  1. 306 | Modelica License 1 is unclear whether the licensed Modelica package 307 | can be distributed under a different license. Version 2 explicitly 308 | allows that “Derivative Work” can be distributed under 309 | any license of Your choice, see examples in Section 1d) as to what 310 | qualifies as Derivative Work (so, version 2 is clearer).

    311 |
  2. 312 | If You modify a Modelica package under Modelica License 2 (besides 313 | fixing of errors, adding vendor specific Modelica annotations, using 314 | a subset of the classes of a Modelica package, or using another 315 | representation, e.g., a binary representation), you must rename the 316 | root-level name of the package for your distribution. In version 1 317 | you could keep the name (so, version 2 is more restrictive). The 318 | reason of this restriction is to reduce the risk that Modelica 319 | packages are available that have identical names, but different 320 | functionality.

    321 |
  3. 322 | Modelica License 1 states that “It is not allowed to charge a 323 | fee for the original version or a modified version of the software, 324 | besides a reasonable fee for distribution and support”. 325 | Version 2 has a similar intention for all Original Work under 326 | Modelica License 2 (to remain free of charge and open source) 327 | but states this more clearly as “No fee, neither as a 328 | copyright-license fee, nor as a selling fee for the copy as such may 329 | be charged”. Contrary to version 1, Modelica License 2 has no 330 | restrictions on fees for Derivative Work that is provided under a 331 | different license (so, version 2 is clearer and has fewer 332 | restrictions).

    333 |
  4. 334 | Modelica License 2 introduces several useful provisions for the 335 | licensee (articles 5, 6, 12), and for the licensor (articles 7, 12, 336 | 13, 14) that have no counter part in version 1.

    337 |
  5. 338 | Modelica License 2 can be applied to all type of work, including 339 | documents, images and data files, contrary to version 1 that was 340 | dedicated for software only (so, version 2 is more general).

    341 |
342 | 343 |

Can I distribute a 344 | Modelica package (under Modelica License 2) as part of my commercial 345 | Modelica modeling and simulation environment?

346 |

Yes, 347 | according to Section 2c). However, you are not allowed to charge a 348 | fee for this part of your environment. Of course, you can charge for 349 | your part of the environment. 350 |

351 | 352 |

Can I distribute a 353 | Modelica package (under Modelica License 2) under a different 354 | license?

355 |

No. 356 | The license of an unmodified Modelica package cannot be changed 357 | according to Sections 2c) and 2d). This means that you cannot sell 358 | copies of it, any distribution has to be free of charge.

359 | 360 |

Can I distribute a 361 | Modelica package (under Modelica License 2) under a different license 362 | when I first encrypt the package?

363 |

No. 364 | Merely encrypting a package does not qualify for Derivative Work and 365 | therefore the encrypted package has to stay under Modelica License 2.

366 | 367 |

Can I distribute a 368 | Modelica package (under Modelica License 2) under a different license 369 | when I first add classes to the package?

370 |

No. 371 | The package itself remains unmodified, i.e., it is Original Work, and 372 | therefore the license for this part must remain under Modelica 373 | License 2. The newly added classes can be, however, under a different 374 | license. 375 |

376 | 377 |

Can 378 | I copy a class out of a Modelica package (under Modelica License 2) 379 | and include it unmodified in a Modelica package 380 | under a commercial/proprietary license?

381 |

No, 382 | according to article 2c). However, you can include model, block, 383 | function, package, record and connector classes in your Modelica 384 | package under Modelica License 2. This means that your 385 | Modelica package could be under a commercial/proprietary license, but 386 | one or more classes of it are under Modelica License 2.
Note, a 387 | “type” class (e.g., type Angle = Real(unit=”rad”)) 388 | can be copied and included unmodified under a commercial/proprietary 389 | license (for details, see the next question).

390 | 391 |

Can 392 | I copy a type class or part of a model, block, 393 | function, record, connector class, out of a Modelica package (under 394 | Modelica License 2) and include it modified or unmodified in a 395 | Modelica package under a commercial/proprietary 396 | license

397 |

Yes, 398 | according to article 2d), since this will in the end usually qualify 399 | as Derivative Work. The reasoning is the following: A type class or 400 | part of another class (e.g., an equation, a declaration, part of a 401 | class description) cannot be utilized “by its own”. In 402 | order to make this “usable”, you have to add additional 403 | code in order that the class can be utilized. This is therefore 404 | usually Derivative Work and Derivative Work can be provided under a 405 | different license. Note, this only holds, if the additional code 406 | introduced is sufficient to qualify for Derivative Work. Merely, just 407 | copying a class and changing, say, one character in the documentation 408 | of this class would be no Derivative Work and therefore the copied 409 | code would have to stay under Modelica License 2.

410 | 411 |

Can 412 | I copy a class out of a Modelica package (under Modelica License 2) 413 | and include it in modified form in a 414 | commercial/proprietary Modelica package?

415 |

Yes. 416 | If the modification can be seen as a “Derivative Work”, 417 | you can place it under your commercial/proprietary license. If the 418 | modification does not qualify as “Derivative Work” (e.g., 419 | bug fixes, vendor specific annotations), it must remain under 420 | Modelica License 2. This means that your Modelica package could be 421 | under a commercial/proprietary license, but one or more parts of it 422 | are under Modelica License 2.

423 | 424 |

Can I distribute a 425 | “save total model” under my commercial/proprietary 426 | license, even if classes under Modelica License 2 are included?

427 |

Your 428 | classes of the “save total model” can be distributed 429 | under your commercial/proprietary license, but the classes under 430 | Modelica License 2 must remain under Modelica License 2. This means 431 | you can distribute a “save total model”, but some parts 432 | might be under Modelica License 2.

433 | 434 |

Can I distribute a 435 | Modelica package (under Modelica License 2) in encrypted form?

436 |

Yes. 437 | Note, if the encryption does not allow “copying” of 438 | classes (in to unencrypted Modelica source code), you have to send 439 | the Modelica source code of this package to your customer, if he/she 440 | wishes it, according to article 6.

441 | 442 |

Can I distribute an 443 | executable under my commercial/proprietary license, if the model from 444 | which the executable is generated uses models from a Modelica package 445 | under Modelica License 2?

446 |

Yes, 447 | according to article 2d), since this is seen as Derivative Work. The 448 | reasoning is the following: An executable allows the simulation of a 449 | concrete model, whereas models from a Modelica package (without 450 | pre-processing, translation, tool run-time library) are not able to 451 | be simulated without tool support. By the processing of the tool and 452 | by its run-time libraries, significant new functionality is added (a 453 | model can be simulated whereas previously it could not be simulated) 454 | and functionality available in the package is removed (e.g., to build 455 | up a new model by dragging components of the package is no longer 456 | possible with the executable).

457 | 458 |

Is my modification to 459 | a Modelica package (under Modelica License 2) a Derivative Work?

460 |

It 461 | is not possible to give a general answer to it. To be regarded as "an 462 | original work of authorship", a derivative work must be 463 | different enough from the original or must contain a substantial 464 | amount of new material. Making minor changes or additions of little 465 | substance to a preexisting work will not qualify the work as a new 466 | version for such purposes. 467 |

468 | 469 |
Using or Distributing a Modelica Document under the Modelica License 2
470 | 471 |

This 472 | section is devoted especially for the following applications:

473 |
    474 |
  1. 475 | A Modelica tool extracts information out of a Modelica package and 476 | presents the result in form of a “manual” for this 477 | package in, e.g., html, doc, or pdf format.

    478 |
  2. 479 | The Modelica language specification is a document defining the 480 | Modelica language. It will be licensed under Modelica License 2.

    481 |
  3. 482 | Someone writes a book about the Modelica language and/or Modelica 483 | packages and uses information which is available in the Modelica 484 | language specification and/or the corresponding Modelica package.

    485 |
486 | 487 |

Can I sell a manual 488 | that was basically derived by extracting information automatically 489 | from a Modelica package under Modelica License 2 (e.g., a “reference 490 | guide” of the Modelica Standard Library):

491 |

Yes. 492 | Extracting information from a Modelica package, and providing it in a 493 | human readable, suitable format, like html, doc or pdf format, where 494 | the content is significantly modified (e.g. tables with interface 495 | information are constructed from the declarations of the public 496 | variables) qualifies as Derivative Work and there are no restrictions 497 | to charge a fee for Derivative Work under alternative 2d).

498 | 499 |

Can 500 | I copy a text passage out of a Modelica document (under Modelica 501 | License 2) and use it unmodified in my document 502 | (e.g. the Modelica syntax description in the Modelica Specification)?

503 |

Yes. 504 | In case you distribute your document, the copied parts are still 505 | under Modelica License 2 and you are not allowed to charge a license 506 | fee for this part. You can, of course, charge a fee for the rest of 507 | your document.

508 | 509 |

Can 510 | I copy a text passage out of a Modelica document (under Modelica 511 | License 2) and use it in modified form in my 512 | document?

513 |

Yes, 514 | the creation of Derivative Works is allowed. In case the content is 515 | significantly modified this qualifies as Derivative Work and there 516 | are no restrictions to charge a fee for Derivative Work under 517 | alternative 2d).

518 | 519 |

Can I sell a printed 520 | version of a Modelica document (under Modelica License 2), e.g., the 521 | Modelica Language Specification?

522 |

No, 523 | if you are not the copyright-holder, since article 2c) does not allow 524 | a selling fee for a (in this case physical) copy. However, mere 525 | printing and shipping costs may be recovered.

526 | 527 | 528 | -------------------------------------------------------------------------------- /Makefile.libs: -------------------------------------------------------------------------------- 1 | .PHONY: AdvancedNoise AixLib AlgebraTestSuite ApproxSpline BioChem BondGraph BrineProp BuildSysPro BuildingControlLib BuildingSystems Buildings Chemical DeployStructLib DisHeatLib DriveControl ElectroMechanicalDrives ExternData ExternalMedia ExternalMemoryLib FMITest FailureModes FaultTriggering FeedDriveLibrary FractionalOrder Greenhouses-Library HanserModelica HelmholtzMedia IBPSA IDEAS IndustrialControlSystems KeyWordIO LibRAS LinearMPC MEV ModPowerSystems Modelica Modelica-Arduino Modelica-GNU_ScientificLibrary Modelica-MVEM ModelicaADS ModelicaBook ModelicaCompliance ModelicaDFR Modelica_DeviceDrivers Modelica_LinearSystems2 Modelica_Requirements Modelica_Synchronous MultiPhaseMixtureMedia OpenIPSL Optimisers PNlib PVSystems PhotoVoltaics Physiolibrary Physiomodel PlanarMechanics PowerGrids PowerSystems PowerSystems-latest RealTimeCoordinationLibrary ScalableTestSuite Servomechanisms SolarTherm Soltermica SystemDynamics ThermalSeparation ThermoPower ThermoSysPro VVDRlib VehicleInterfaces WasteWater WindPowerPlants ipsl netCDF-DataReader open-bldc-modelica 2 | CORE_TARGET=$(BUILD_DIR)/20220511_184210.core 3 | ALL_TARGET=$(BUILD_DIR)/20220511_184210.all 4 | CORE_LIBS=Modelica 5 | OTHER_LIBS=AdvancedNoise AixLib AlgebraTestSuite ApproxSpline BioChem BondGraph BrineProp BuildSysPro BuildingControlLib BuildingSystems Buildings Chemical DeployStructLib DisHeatLib DriveControl ElectroMechanicalDrives ExternData ExternalMedia ExternalMemoryLib FMITest FailureModes FaultTriggering FeedDriveLibrary FractionalOrder Greenhouses-Library HanserModelica HelmholtzMedia IBPSA IDEAS IndustrialControlSystems KeyWordIO LibRAS LinearMPC MEV ModPowerSystems Modelica-Arduino Modelica-GNU_ScientificLibrary Modelica-MVEM ModelicaADS ModelicaBook ModelicaCompliance ModelicaDFR Modelica_DeviceDrivers Modelica_LinearSystems2 Modelica_Requirements Modelica_Synchronous MultiPhaseMixtureMedia OpenIPSL Optimisers PNlib PVSystems PhotoVoltaics Physiolibrary Physiomodel PlanarMechanics PowerGrids PowerSystems PowerSystems-latest RealTimeCoordinationLibrary ScalableTestSuite Servomechanisms SolarTherm Soltermica SystemDynamics ThermalSeparation ThermoPower ThermoSysPro VVDRlib VehicleInterfaces WasteWater WindPowerPlants ipsl netCDF-DataReader open-bldc-modelica 6 | ALL_LIBS=$(CORE_LIBS) $(OTHER_LIBS) 7 | 8 | TIMESTAMP=20220511_184210 9 | AdvancedNoise: 10 | # Building git/AdvancedNoise 11 | ./checkout-git.sh 'git/AdvancedNoise' 'https://github.com/modelica-3rdparty/AdvancedNoise.git' 'master' '5ce57acd279dadd0d25b76a6b02d3f9e9d061246' 12 | test ! -d 'build//AdvancedNoise 1.0.1' 13 | cp -a 'git/AdvancedNoise/AdvancedNoise' "$(BUILD_DIR)/AdvancedNoise 1.0.1" 14 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/AdvancedNoise 1.0.1.uses" 15 | echo 'modelica2' > "$(BUILD_DIR)/AdvancedNoise 1.0.1.license" 16 | echo '1.0.1-rc1-3-g5ce57ac' > "$(BUILD_DIR)/AdvancedNoise 1.0.1.last_change" 17 | AixLib: 18 | # Building git/AixLib 19 | ./checkout-git.sh 'git/AixLib' 'https://github.com/RWTH-EBC/AixLib.git' 'master' '65e49ddf5c935846888a61aa303e52c909619079' 20 | test ! -d 'build//AixLib 1.0.0' 21 | cp -a 'git/AixLib/AixLib' "$(BUILD_DIR)/AixLib 1.0.0" 22 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/AixLib 1.0.0.uses" 23 | echo 'Modelica_Synchronous 0.92.2' >> "$(BUILD_DIR)/AixLib 1.0.0.uses" 24 | echo 'NcDataReader2 2.5.0' >> "$(BUILD_DIR)/AixLib 1.0.0.uses" 25 | echo 'Modelica_DeviceDrivers 1.7.0' >> "$(BUILD_DIR)/AixLib 1.0.0.uses" 26 | echo 'modelica2' > "$(BUILD_DIR)/AixLib 1.0.0.license" 27 | echo '1.0.0' > "$(BUILD_DIR)/AixLib 1.0.0.last_change" 28 | # Building git/AixLib 29 | ./checkout-git.sh 'git/AixLib' 'https://github.com/RWTH-EBC/AixLib.git' 'v0.4.0' 'v0.4.0' 30 | test ! -d 'build//AixLib 0.4.0' 31 | cp -a 'git/AixLib/AixLib' "$(BUILD_DIR)/AixLib 0.4.0" 32 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/AixLib 0.4.0.uses" 33 | echo 'Modelica_Synchronous 0.92.1' >> "$(BUILD_DIR)/AixLib 0.4.0.uses" 34 | echo 'modelica2' > "$(BUILD_DIR)/AixLib 0.4.0.license" 35 | echo '0.4.0' > "$(BUILD_DIR)/AixLib 0.4.0.last_change" 36 | AlgebraTestSuite: 37 | # Building git/AlgebraTestSuite 38 | ./checkout-git.sh 'git/AlgebraTestSuite' 'https://github.com/modelica-3rdparty/AlgebraTestSuite.git' 'master' 'b937e1a7f447138c59abec9b2092f84f16bf02e8' 39 | test ! -d 'build//AlgebraTestSuite' 40 | cp -a 'git/AlgebraTestSuite/AlgebraTestSuite' "$(BUILD_DIR)/AlgebraTestSuite" 41 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/AlgebraTestSuite.uses" 42 | echo 'modelica2' > "$(BUILD_DIR)/AlgebraTestSuite.license" 43 | echo '20180128-224601~git~master' > "$(BUILD_DIR)/AlgebraTestSuite.last_change" 44 | ApproxSpline: 45 | # Building git/ApproxSpline 46 | ./checkout-git.sh 'git/ApproxSpline' 'https://github.com/modelica-3rdparty/ApproxSpline.git' 'master' '28420f5c1a88c9cd069defbd8c05e4a78a090675' 47 | test ! -d 'build//ApproxSpline 1.0.1' 48 | cp -a 'git/ApproxSpline/ApproxSpline' "$(BUILD_DIR)/ApproxSpline 1.0.1" 49 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/ApproxSpline 1.0.1.uses" 50 | echo 'modelica2' > "$(BUILD_DIR)/ApproxSpline 1.0.1.license" 51 | echo '1.0.1-20210227-210712~git~master' > "$(BUILD_DIR)/ApproxSpline 1.0.1.last_change" 52 | BioChem: 53 | # Building git/BioChem 54 | ./checkout-git.sh 'git/BioChem' 'https://github.com/OpenModelica/BioChem.git' 'v1.0.2' 'v1.0.2' 55 | test ! -d 'build//BioChem 1.0.2' 56 | cp -a 'git/BioChem/BioChem' "$(BUILD_DIR)/BioChem 1.0.2" 57 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/BioChem 1.0.2.uses" 58 | echo 'mpl2' > "$(BUILD_DIR)/BioChem 1.0.2.license" 59 | echo '1.0.2' > "$(BUILD_DIR)/BioChem 1.0.2.last_change" 60 | BondGraph: 61 | # Building git/BondGraph 62 | ./checkout-git.sh 'git/BondGraph' 'https://github.com/modelica-3rdparty/BondGraph.git' 'master' '20c23e60d12989bd4668ccac47659d82d39d29cc' 63 | test ! -f 'build//BondGraph.mo' 64 | cp -a 'git/BondGraph/BondGraph.mo' "$(BUILD_DIR)/BondGraph.mo" 65 | echo 'Modelica 3.2' >> "$(BUILD_DIR)/BondGraph.uses" 66 | echo 'lgpl3+' > "$(BUILD_DIR)/BondGraph.license" 67 | echo '20131202-150206~git~master' > "$(BUILD_DIR)/BondGraph.last_change" 68 | BrineProp: 69 | # Building git/BrineProp 70 | ./checkout-git.sh 'git/BrineProp' 'https://github.com/modelica-3rdparty/BrineProp.git' 'master' '562af7d3498576b5e8d9bfd3b4b11e70774081ba' 71 | test ! -d 'build//BrineProp 0.5.6' 72 | cp -a 'git/BrineProp/BrineProp' "$(BUILD_DIR)/BrineProp 0.5.6" 73 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/BrineProp 0.5.6.uses" 74 | echo 'modelica2' > "$(BUILD_DIR)/BrineProp 0.5.6.license" 75 | echo '0.5.6-20210904-124145~git~master' > "$(BUILD_DIR)/BrineProp 0.5.6.last_change" 76 | BuildSysPro: 77 | # Building git/BuildSysPro 78 | ./checkout-git.sh 'git/BuildSysPro' 'https://github.com/EDF-TREE/BuildSysPro.git' 'v3.3.0' 'v3.3.0' 79 | test ! -d 'build//BuildSysPro 3.3.0' 80 | cp -a 'git/BuildSysPro/BuildSysPro' "$(BUILD_DIR)/BuildSysPro 3.3.0" 81 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/BuildSysPro 3.3.0.uses" 82 | echo 'modelica2' > "$(BUILD_DIR)/BuildSysPro 3.3.0.license" 83 | echo '3.3.0' > "$(BUILD_DIR)/BuildSysPro 3.3.0.last_change" 84 | BuildingControlLib: 85 | # Building git/BuildingControlLib 86 | ./checkout-git.sh 'git/BuildingControlLib' 'https://github.com/modelica-3rdparty/BuildingControlLib.git' 'v1.0.0' 'v1.0.0' 87 | test ! -d 'build//BuildingControlLib 0.1.0' 88 | cp -a 'git/BuildingControlLib/BuildingControlLib' "$(BUILD_DIR)/BuildingControlLib 0.1.0" 89 | echo 'AixLib 0.4.0' >> "$(BUILD_DIR)/BuildingControlLib 0.1.0.uses" 90 | echo 'Buildings 4.0.0' >> "$(BUILD_DIR)/BuildingControlLib 0.1.0.uses" 91 | echo 'Modelica_StateGraph2 2.0.2' >> "$(BUILD_DIR)/BuildingControlLib 0.1.0.uses" 92 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/BuildingControlLib 0.1.0.uses" 93 | echo 'modelica2' > "$(BUILD_DIR)/BuildingControlLib 0.1.0.license" 94 | echo '0.1.0-41-gfffe3d8' > "$(BUILD_DIR)/BuildingControlLib 0.1.0.last_change" 95 | BuildingSystems: 96 | # Building git/BuildingSystems 97 | ./checkout-git.sh 'git/BuildingSystems' 'https://github.com/modelica-3rdparty/BuildingSystems.git' 'master' '41c67bc971fd442b870346fd02a56f560290331e' 98 | test ! -d 'build//BuildingSystems 2.0.0-beta' 99 | cp -a 'git/BuildingSystems/BuildingSystems' "$(BUILD_DIR)/BuildingSystems 2.0.0-beta" 100 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/BuildingSystems 2.0.0-beta.uses" 101 | echo 'NcDataReader2 2.5.0' >> "$(BUILD_DIR)/BuildingSystems 2.0.0-beta.uses" 102 | echo 'modelica2' > "$(BUILD_DIR)/BuildingSystems 2.0.0-beta.license" 103 | echo '2.0.0-beta2-385-g41c67bc' > "$(BUILD_DIR)/BuildingSystems 2.0.0-beta.last_change" 104 | Buildings: 105 | # Building git/Buildings 106 | ./checkout-git.sh 'git/Buildings' 'https://github.com/lbl-srg/modelica-buildings.git' 'v6.0.0' 'v6.0.0' 107 | test ! -d 'build//Buildings 6.0.0' 108 | cp -a 'git/Buildings/Buildings' "$(BUILD_DIR)/Buildings 6.0.0" 109 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Buildings 6.0.0.uses" 110 | echo 'buildings' > "$(BUILD_DIR)/Buildings 6.0.0.license" 111 | echo '6.0.0' > "$(BUILD_DIR)/Buildings 6.0.0.last_change" 112 | # Building git/Buildings 113 | ./checkout-git.sh 'git/Buildings' 'https://github.com/lbl-srg/modelica-buildings.git' 'v7.0.0' 'v7.0.0' 114 | test ! -d 'build//Buildings 7.0.0' 115 | cp -a 'git/Buildings/Buildings' "$(BUILD_DIR)/Buildings 7.0.0" 116 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/Buildings 7.0.0.uses" 117 | echo 'buildings' > "$(BUILD_DIR)/Buildings 7.0.0.license" 118 | echo '7.0.0' > "$(BUILD_DIR)/Buildings 7.0.0.last_change" 119 | Chemical: 120 | # Building git/Chemical 121 | ./checkout-git.sh 'git/Chemical' 'https://github.com/modelica-3rdparty/Chemical.git' 'master' '5645573fced862430b7b598b4d7ec1a39c7aa0fa' 122 | test ! -d 'build//Chemical 1.4.0' 123 | cp -a 'git/Chemical/Chemical' "$(BUILD_DIR)/Chemical 1.4.0" 124 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/Chemical 1.4.0.uses" 125 | echo 'modelica2' > "$(BUILD_DIR)/Chemical 1.4.0.license" 126 | echo '1.4.0-3-g5645573' > "$(BUILD_DIR)/Chemical 1.4.0.last_change" 127 | DeployStructLib: 128 | # Building git/DeployStructLib 129 | ./checkout-git.sh 'git/DeployStructLib' 'https://github.com/modelica-3rdparty/DeployStructLib.git' 'v1.0' 'v1.0' 130 | test ! -d 'build//DeployStructLib' 131 | cp -a 'git/DeployStructLib/DeployStructLib' "$(BUILD_DIR)/DeployStructLib" 132 | echo '' > "$(BUILD_DIR)/DeployStructLib.uses" 133 | echo 'modelica2' > "$(BUILD_DIR)/DeployStructLib.license" 134 | echo '20191101-130731~git~v1.0' > "$(BUILD_DIR)/DeployStructLib.last_change" 135 | DisHeatLib: 136 | # Building git/DisHeatLib 137 | ./checkout-git.sh 'git/DisHeatLib' 'https://github.com/modelica-3rdparty/DisHeatLib.git' 'master' '04573cd6839ca67382cc0b46be0032201a143e2d' 138 | test ! -d 'build//DisHeatLib 1.2' 139 | cp -a 'git/DisHeatLib/DisHeatLib' "$(BUILD_DIR)/DisHeatLib 1.2" 140 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/DisHeatLib 1.2.uses" 141 | echo 'IBPSA 3.0.0' >> "$(BUILD_DIR)/DisHeatLib 1.2.uses" 142 | echo 'Buildings 8.0.0' >> "$(BUILD_DIR)/DisHeatLib 1.2.uses" 143 | echo 'modelica2' > "$(BUILD_DIR)/DisHeatLib 1.2.license" 144 | echo '1.2-20210819-184615~git~master' > "$(BUILD_DIR)/DisHeatLib 1.2.last_change" 145 | DriveControl: 146 | # Building git/DriveControl 147 | ./checkout-git.sh 'git/DriveControl' 'https://github.com/AHaumer/DriveControl.git' 'release' 'b7233fd97a92867bb4ec2c3647c7f7e888398644' 148 | test ! -d 'build//DriveControl 3.1.0' 149 | cp -a 'git/DriveControl/DriveControl' "$(BUILD_DIR)/DriveControl 3.1.0" 150 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/DriveControl 3.1.0.uses" 151 | echo 'bsd3' > "$(BUILD_DIR)/DriveControl 3.1.0.license" 152 | echo '3.1.0-20181117-174044~git~release' > "$(BUILD_DIR)/DriveControl 3.1.0.last_change" 153 | ElectroMechanicalDrives: 154 | # Building git/ElectroMechanicalDrives 155 | ./checkout-git.sh 'git/ElectroMechanicalDrives' 'https://github.com/christiankral/ElectroMechanicalDrives.git' 'v2.2.0' 'v2.2.0' 156 | test ! -d 'build//ElectroMechanicalDrives 2.2.0' 157 | cp -a 'git/ElectroMechanicalDrives/ElectroMechanicalDrives' "$(BUILD_DIR)/ElectroMechanicalDrives 2.2.0" 158 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ElectroMechanicalDrives 2.2.0.uses" 159 | echo 'bsd3' > "$(BUILD_DIR)/ElectroMechanicalDrives 2.2.0.license" 160 | echo '2.2.0' > "$(BUILD_DIR)/ElectroMechanicalDrives 2.2.0.last_change" 161 | ExternData: 162 | # Building git/ExternData 163 | ./checkout-git.sh 'git/ExternData' 'https://github.com/modelica-3rdparty/ExternData.git' 'v2.5.0' 'v2.5.0' 164 | test ! -d 'build//ExternData 2.5.0' 165 | cp -a 'git/ExternData/ExternData' "$(BUILD_DIR)/ExternData 2.5.0" 166 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ExternData 2.5.0.uses" 167 | echo 'modelica2' > "$(BUILD_DIR)/ExternData 2.5.0.license" 168 | echo '2.5.0' > "$(BUILD_DIR)/ExternData 2.5.0.last_change" 169 | ExternalMedia: 170 | # Building git/ExternalMedia 171 | ./checkout-git.sh 'git/ExternalMedia' 'https://github.com/modelica/ExternalMedia.git' 'master' '6138312c96142ff3c01190147e6277991bfa2fca' 172 | ExternalMemoryLib: 173 | # Building git/ExternalMemoryLib 174 | ./checkout-git.sh 'git/ExternalMemoryLib' 'https://github.com/modelica-3rdparty/ExternalMemoryLib.git' 'master' '6488d5815bda23c665123baa916789e283e16d2c' 175 | test ! -f 'build//ExternalMemoryLib.mo' 176 | cp -a 'git/ExternalMemoryLib/ExternalMemoryLib.mo' "$(BUILD_DIR)/ExternalMemoryLib.mo" 177 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/ExternalMemoryLib.uses" 178 | echo 'modelica2' > "$(BUILD_DIR)/ExternalMemoryLib.license" 179 | echo '20160809-140026~git~master' > "$(BUILD_DIR)/ExternalMemoryLib.last_change" 180 | FMITest: 181 | # Building git/FMITest 182 | ./checkout-git.sh 'git/FMITest' 'https://github.com/modelica-3rdparty/FMITest.git' 'master' 'a67a276083f4010b249802ad8fc70dc30c09adfd' 183 | test ! -d 'build//FMITest' 184 | cp -a 'git/FMITest/FMITest' "$(BUILD_DIR)/FMITest" 185 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/FMITest.uses" 186 | echo 'modelica2' > "$(BUILD_DIR)/FMITest.license" 187 | echo '20181221-112405~git~master' > "$(BUILD_DIR)/FMITest.last_change" 188 | FailureModes: 189 | # Building git/FailureModes 190 | ./checkout-git.sh 'git/FailureModes' 'https://github.com/modelica-3rdparty/FailureModes.git' 'v1.2.1' 'v1.2.1' 191 | test ! -d 'build//FailureModes 1.2.1' 192 | cp -a 'git/FailureModes/FailureModes' "$(BUILD_DIR)/FailureModes 1.2.1" 193 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/FailureModes 1.2.1.uses" 194 | echo 'modelica2' > "$(BUILD_DIR)/FailureModes 1.2.1.license" 195 | echo '1.2.1' > "$(BUILD_DIR)/FailureModes 1.2.1.last_change" 196 | FaultTriggering: 197 | # Building git/FaultTriggering 198 | ./checkout-git.sh 'git/FaultTriggering' 'https://github.com/modelica-3rdparty/FaultTriggering.git' 'v0.6.6' 'v0.6.6' 199 | test ! -d 'build//FaultTriggering 0.6.6' 200 | cp -a 'git/FaultTriggering/FaultTriggering' "$(BUILD_DIR)/FaultTriggering 0.6.6" 201 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/FaultTriggering 0.6.6.uses" 202 | echo 'modelica2' > "$(BUILD_DIR)/FaultTriggering 0.6.6.license" 203 | echo '0.6.6' > "$(BUILD_DIR)/FaultTriggering 0.6.6.last_change" 204 | FeedDriveLibrary: 205 | # Building git/FeedDriveLibrary 206 | ./checkout-git.sh 'git/FeedDriveLibrary' 'https://github.com/modelica-3rdparty/FeedDriveLibrary.git' '1.0.1' '1.0.1' 207 | test ! -f 'build//FeedDriveLibrary.mo' 208 | cp -a 'git/FeedDriveLibrary/FeedDriveLibrary.mo' "$(BUILD_DIR)/FeedDriveLibrary.mo" 209 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/FeedDriveLibrary.uses" 210 | echo 'modelica2' > "$(BUILD_DIR)/FeedDriveLibrary.license" 211 | echo '20161016-160335~git~1.0.1' > "$(BUILD_DIR)/FeedDriveLibrary.last_change" 212 | FractionalOrder: 213 | # Building git/FractionalOrder 214 | ./checkout-git.sh 'git/FractionalOrder' 'https://github.com/DLR-SR/FractionalOrder.git' 'master' '99918820e346c362c3ad52d782c8215e5deeac4c' 215 | test ! -f 'build//FractionalOrder.mo' 216 | cp -a 'git/FractionalOrder/FractionalOrder.mo' "$(BUILD_DIR)/FractionalOrder.mo" 217 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/FractionalOrder.uses" 218 | echo 'modelica2' > "$(BUILD_DIR)/FractionalOrder.license" 219 | echo '20151007-174822~git~master' > "$(BUILD_DIR)/FractionalOrder.last_change" 220 | Greenhouses-Library: 221 | # Building git/Greenhouses-Library 222 | ./checkout-git.sh 'git/Greenhouses-Library' 'https://github.com/modelica-3rdparty/Greenhouses-Library.git' 'master' '89ae0e8097eb0751abce2013d304fa5f9c09b885' 223 | test ! -d 'build//Greenhouses' 224 | cp -a 'git/Greenhouses-Library/Greenhouses' "$(BUILD_DIR)/Greenhouses" 225 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Greenhouses.uses" 226 | echo 'modelica2' > "$(BUILD_DIR)/Greenhouses.license" 227 | echo '20190802-101414~git~master' > "$(BUILD_DIR)/Greenhouses.last_change" 228 | HanserModelica: 229 | # Building git/HanserModelica 230 | ./checkout-git.sh 'git/HanserModelica' 'https://github.com/christiankral/HanserModelica.git' 'v1.1.0' 'v1.1.0' 231 | test ! -d 'build//HanserModelica 1.1.0' 232 | cp -a 'git/HanserModelica/HanserModelica' "$(BUILD_DIR)/HanserModelica 1.1.0" 233 | echo 'Complex 3.2.3' >> "$(BUILD_DIR)/HanserModelica 1.1.0.uses" 234 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/HanserModelica 1.1.0.uses" 235 | echo 'bsd3' > "$(BUILD_DIR)/HanserModelica 1.1.0.license" 236 | echo '1.1.0' > "$(BUILD_DIR)/HanserModelica 1.1.0.last_change" 237 | HelmholtzMedia: 238 | # Building git/HelmholtzMedia 239 | ./checkout-git.sh 'git/HelmholtzMedia' 'https://github.com/modelica-3rdparty/HelmholtzMedia.git' 'master' '18ff552ace69672034af2bc8466afef6c374a98a' 240 | test ! -d 'build//HelmholtzMedia' 241 | cp -a 'git/HelmholtzMedia/HelmholtzMedia' "$(BUILD_DIR)/HelmholtzMedia" 242 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/HelmholtzMedia.uses" 243 | echo 'modelica2' > "$(BUILD_DIR)/HelmholtzMedia.license" 244 | echo '20210919-135052~git~master' > "$(BUILD_DIR)/HelmholtzMedia.last_change" 245 | IBPSA: 246 | # Building git/IBPSA 247 | ./checkout-git.sh 'git/IBPSA' 'https://github.com/ibpsa/modelica-ibpsa.git' 'v3.0.0' 'v3.0.0' 248 | test ! -d 'build//IBPSA 3.0.0' 249 | cp -a 'git/IBPSA/IBPSA' "$(BUILD_DIR)/IBPSA 3.0.0" 250 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/IBPSA 3.0.0.uses" 251 | echo 'modelica2' > "$(BUILD_DIR)/IBPSA 3.0.0.license" 252 | echo '3.0.0' > "$(BUILD_DIR)/IBPSA 3.0.0.last_change" 253 | IDEAS: 254 | # Building git/IDEAS 255 | ./checkout-git.sh 'git/IDEAS' 'https://github.com/open-ideas/IDEAS.git' 'v2.1.0' 'v2.1.0' 256 | test ! -d 'build//IDEAS 2.1.0' 257 | cp -a 'git/IDEAS/IDEAS' "$(BUILD_DIR)/IDEAS 2.1.0" 258 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/IDEAS 2.1.0.uses" 259 | echo 'modelica2' > "$(BUILD_DIR)/IDEAS 2.1.0.license" 260 | echo '2.1.0' > "$(BUILD_DIR)/IDEAS 2.1.0.last_change" 261 | IndustrialControlSystems: 262 | # Building git/IndustrialControlSystems 263 | ./checkout-git.sh 'git/IndustrialControlSystems' 'https://github.com/modelica-3rdparty/IndustrialControlSystems.git' 'v1.1.0' 'v1.1.0' 264 | test ! -d 'build//IndustrialControlSystems 1.1.0' 265 | cp -a 'git/IndustrialControlSystems/IndustrialControlSystems' "$(BUILD_DIR)/IndustrialControlSystems 1.1.0" 266 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/IndustrialControlSystems 1.1.0.uses" 267 | echo 'modelica2' > "$(BUILD_DIR)/IndustrialControlSystems 1.1.0.license" 268 | echo '1.1.0' > "$(BUILD_DIR)/IndustrialControlSystems 1.1.0.last_change" 269 | KeyWordIO: 270 | # Building git/KeyWordIO 271 | ./checkout-git.sh 'git/KeyWordIO' 'https://github.com/christiankral/KeyWordIO.git' 'v0.9.0' 'v0.9.0' 272 | test ! -d 'build//KeyWordIO 0.9.0' 273 | cp -a 'git/KeyWordIO/KeyWordIO' "$(BUILD_DIR)/KeyWordIO 0.9.0" 274 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/KeyWordIO 0.9.0.uses" 275 | echo 'bsd3' > "$(BUILD_DIR)/KeyWordIO 0.9.0.license" 276 | echo '0.9.0' > "$(BUILD_DIR)/KeyWordIO 0.9.0.last_change" 277 | LibRAS: 278 | # Building git/LibRAS 279 | ./checkout-git.sh 'git/LibRAS' 'https://github.com/FishSim/LibRAS.git' 'master' 'fca9de50a484a2213f3ca1b39e275c237c471688' 280 | test ! -d 'build//LibRAS' 281 | cp -a 'git/LibRAS/LibRAS' "$(BUILD_DIR)/LibRAS" 282 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/LibRAS.uses" 283 | echo 'gpl3' > "$(BUILD_DIR)/LibRAS.license" 284 | echo '20190213-093248~git~master' > "$(BUILD_DIR)/LibRAS.last_change" 285 | LinearMPC: 286 | # Building git/LinearMPC 287 | ./checkout-git.sh 'git/LinearMPC' 'https://github.com/modelica-3rdparty/LinearMPC.git' 'v1.0' 'v1.0' 288 | test ! -f 'build//LinearMPC 1.mo' 289 | cp -a 'git/LinearMPC/LinearMPC.mo' "$(BUILD_DIR)/LinearMPC 1.mo" 290 | echo 'Modelica 3.2' >> "$(BUILD_DIR)/LinearMPC 1.uses" 291 | echo 'modelica2' > "$(BUILD_DIR)/LinearMPC 1.license" 292 | echo '1.0' > "$(BUILD_DIR)/LinearMPC 1.last_change" 293 | MEV: 294 | # Building git/MEV 295 | ./checkout-git.sh 'git/MEV' 'https://github.com/looms-polimi/MEV.git' 'v1.0.1' 'v1.0.1' 296 | test ! -d 'build//MEV 1.0.1' 297 | cp -a 'git/MEV/MEV' "$(BUILD_DIR)/MEV 1.0.1" 298 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/MEV 1.0.1.uses" 299 | echo 'modelica2' > "$(BUILD_DIR)/MEV 1.0.1.license" 300 | echo '1.0.1' > "$(BUILD_DIR)/MEV 1.0.1.last_change" 301 | ModPowerSystems: 302 | # Building git/ModPowerSystems 303 | ./checkout-git.sh 'git/ModPowerSystems' 'https://github.com/modelica-3rdparty/ModPowerSystems.git' 'master' 'df3afce27d5e935c4111f392275744a655abe216' 304 | test ! -d 'build//ModPowerSystems' 305 | cp -a 'git/ModPowerSystems/ModPowerSystems' "$(BUILD_DIR)/ModPowerSystems" 306 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/ModPowerSystems.uses" 307 | echo 'Complex 3.2.2' >> "$(BUILD_DIR)/ModPowerSystems.uses" 308 | echo 'ModelicaServices 3.2.2' >> "$(BUILD_DIR)/ModPowerSystems.uses" 309 | echo 'modelica2' > "$(BUILD_DIR)/ModPowerSystems.license" 310 | echo '20200324-112731~git~master' > "$(BUILD_DIR)/ModPowerSystems.last_change" 311 | Modelica: 312 | # Building git/Modelica 313 | ./checkout-git.sh 'git/Modelica' 'https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary.git' 'OM/maint/3.2.3' 'e68d7a0317c565ee00c1b8d44c527979ea0304bf' 314 | test ! -f 'build//Complex 3.2.3.mo' 315 | cp -a 'git/Modelica/Complex.mo' "$(BUILD_DIR)/Complex 3.2.3.mo" 316 | echo '' > "$(BUILD_DIR)/Complex 3.2.3.uses" 317 | echo 'bsd3' > "$(BUILD_DIR)/Complex 3.2.3.license" 318 | echo '3.2.3-20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/Complex 3.2.3.last_change" 319 | test ! -d 'build//Modelica 3.2.3' 320 | cp -a 'git/Modelica/Modelica' "$(BUILD_DIR)/Modelica 3.2.3" 321 | echo 'Complex 3.2.3' >> "$(BUILD_DIR)/Modelica 3.2.3.uses" 322 | echo 'ModelicaServices 3.2.3' >> "$(BUILD_DIR)/Modelica 3.2.3.uses" 323 | echo 'bsd3' > "$(BUILD_DIR)/Modelica 3.2.3.license" 324 | echo '3.2.3-20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/Modelica 3.2.3.last_change" 325 | test ! -d 'build//ModelicaServices 3.2.3' 326 | cp -a 'git/Modelica/ModelicaServices' "$(BUILD_DIR)/ModelicaServices 3.2.3" 327 | echo > "$(BUILD_DIR)/ModelicaServices 3.2.3.uses" 328 | echo 'bsd3' > "$(BUILD_DIR)/ModelicaServices 3.2.3.license" 329 | echo '3.2.3-20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/ModelicaServices 3.2.3.last_change" 330 | test ! -d 'build//ModelicaTest 3.2.3' 331 | cp -a 'git/Modelica/ModelicaTest' "$(BUILD_DIR)/ModelicaTest 3.2.3" 332 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ModelicaTest 3.2.3.uses" 333 | echo 'bsd3' > "$(BUILD_DIR)/ModelicaTest 3.2.3.license" 334 | echo '3.2.3-20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/ModelicaTest 3.2.3.last_change" 335 | test ! -f 'build//ObsoleteModelica3 3.2.3.mo' 336 | cp -a 'git/Modelica/ObsoleteModelica3.mo' "$(BUILD_DIR)/ObsoleteModelica3 3.2.3.mo" 337 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ObsoleteModelica3 3.2.3.uses" 338 | echo 'bsd3' > "$(BUILD_DIR)/ObsoleteModelica3 3.2.3.license" 339 | echo '3.2.3-20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/ObsoleteModelica3 3.2.3.last_change" 340 | test ! -d 'build//ModelicaReference' 341 | cp -a 'git/Modelica/ModelicaReference' "$(BUILD_DIR)/ModelicaReference" 342 | echo '' > "$(BUILD_DIR)/ModelicaReference.uses" 343 | echo 'bsd3' > "$(BUILD_DIR)/ModelicaReference.license" 344 | echo '20220202-123945~git~OM-maint-3.2.3' > "$(BUILD_DIR)/ModelicaReference.last_change" 345 | # Building git/Modelica 346 | ./checkout-git.sh 'git/Modelica' 'https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary.git' 'OM/maint/4.0.x' 'c11123102e94d4b5acb139331a6d85f45d8adcc0' 347 | test ! -f 'build//Complex 4.0.0.mo' 348 | cp -a 'git/Modelica/Complex.mo' "$(BUILD_DIR)/Complex 4.0.0.mo" 349 | echo '' > "$(BUILD_DIR)/Complex 4.0.0.uses" 350 | echo 'bsd3' > "$(BUILD_DIR)/Complex 4.0.0.license" 351 | echo '4.0.0-20220202-123951~git~OM-maint-4.0.x' > "$(BUILD_DIR)/Complex 4.0.0.last_change" 352 | test ! -d 'build//Modelica 4.0.0' 353 | cp -a 'git/Modelica/Modelica' "$(BUILD_DIR)/Modelica 4.0.0" 354 | echo 'Complex 4.0.0' >> "$(BUILD_DIR)/Modelica 4.0.0.uses" 355 | echo 'ModelicaServices 4.0.0' >> "$(BUILD_DIR)/Modelica 4.0.0.uses" 356 | echo 'bsd3' > "$(BUILD_DIR)/Modelica 4.0.0.license" 357 | echo '4.0.0-20220202-123951~git~OM-maint-4.0.x' > "$(BUILD_DIR)/Modelica 4.0.0.last_change" 358 | test ! -d 'build//ModelicaServices 4.0.0' 359 | cp -a 'git/Modelica/ModelicaServices' "$(BUILD_DIR)/ModelicaServices 4.0.0" 360 | echo > "$(BUILD_DIR)/ModelicaServices 4.0.0.uses" 361 | echo 'bsd3' > "$(BUILD_DIR)/ModelicaServices 4.0.0.license" 362 | echo '4.0.0-20220202-123951~git~OM-maint-4.0.x' > "$(BUILD_DIR)/ModelicaServices 4.0.0.last_change" 363 | test ! -d 'build//ModelicaTest 4.0.0' 364 | cp -a 'git/Modelica/ModelicaTest' "$(BUILD_DIR)/ModelicaTest 4.0.0" 365 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/ModelicaTest 4.0.0.uses" 366 | echo 'bsd3' > "$(BUILD_DIR)/ModelicaTest 4.0.0.license" 367 | echo '4.0.0-20220202-123951~git~OM-maint-4.0.x' > "$(BUILD_DIR)/ModelicaTest 4.0.0.last_change" 368 | test ! -f 'build//ObsoleteModelica4 4.0.0.mo' 369 | cp -a 'git/Modelica/ObsoleteModelica4.mo' "$(BUILD_DIR)/ObsoleteModelica4 4.0.0.mo" 370 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/ObsoleteModelica4 4.0.0.uses" 371 | echo 'bsd3' > "$(BUILD_DIR)/ObsoleteModelica4 4.0.0.license" 372 | echo '4.0.0-20220202-123951~git~OM-maint-4.0.x' > "$(BUILD_DIR)/ObsoleteModelica4 4.0.0.last_change" 373 | Modelica-Arduino: 374 | # Building git/Modelica-Arduino 375 | ./checkout-git.sh 'git/Modelica-Arduino' 'https://github.com/modelica-3rdparty/Modelica-Arduino.git' 'v0.1.0' 'v0.1.0' 376 | test ! -d 'build//Arduino 0.1.0' 377 | cp -a 'git/Modelica-Arduino/Arduino' "$(BUILD_DIR)/Arduino 0.1.0" 378 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Arduino 0.1.0.uses" 379 | echo 'Modelica_DeviceDrivers 1.4.4' >> "$(BUILD_DIR)/Arduino 0.1.0.uses" 380 | echo 'modelica2' > "$(BUILD_DIR)/Arduino 0.1.0.license" 381 | echo '0.1.0' > "$(BUILD_DIR)/Arduino 0.1.0.last_change" 382 | Modelica-GNU_ScientificLibrary: 383 | # Building git/Modelica-GNU_ScientificLibrary 384 | ./checkout-git.sh 'git/Modelica-GNU_ScientificLibrary' 'https://github.com/modelica-3rdparty/Modelica-GNU_ScientificLibrary.git' 'master' '9235ab28bdd7f0fe3e7abba48af53d73332858ec' 385 | test ! -d 'build//GNU_ScientificLibrary' 386 | cp -a 'git/Modelica-GNU_ScientificLibrary/GNU_ScientificLibrary' "$(BUILD_DIR)/GNU_ScientificLibrary" 387 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/GNU_ScientificLibrary.uses" 388 | echo 'modelica2' > "$(BUILD_DIR)/GNU_ScientificLibrary.license" 389 | echo '20170111-112742~git~master' > "$(BUILD_DIR)/GNU_ScientificLibrary.last_change" 390 | Modelica-MVEM: 391 | # Building git/Modelica-MVEM 392 | ./checkout-git.sh 'git/Modelica-MVEM' 'https://github.com/modelica-3rdparty/Modelica-MVEM.git' 'v1.0.1' 'v1.0.1' 393 | test ! -d 'build//MVEMLib 1.0.1' 394 | cp -a 'git/Modelica-MVEM/MVEMLib' "$(BUILD_DIR)/MVEMLib 1.0.1" 395 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/MVEMLib 1.0.1.uses" 396 | echo 'modelica2' > "$(BUILD_DIR)/MVEMLib 1.0.1.license" 397 | echo '1.0.1' > "$(BUILD_DIR)/MVEMLib 1.0.1.last_change" 398 | ModelicaADS: 399 | # Building git/ModelicaADS 400 | ./checkout-git.sh 'git/ModelicaADS' 'https://github.com/modelica-3rdparty/ModelicaADS.git' 'v1.0.1' 'v1.0.1' 401 | test ! -d 'build//ModelicaADS' 402 | cp -a 'git/ModelicaADS/ModelicaADS' "$(BUILD_DIR)/ModelicaADS" 403 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/ModelicaADS.uses" 404 | echo 'AixLib 0.3.0' >> "$(BUILD_DIR)/ModelicaADS.uses" 405 | echo 'modelica2' > "$(BUILD_DIR)/ModelicaADS.license" 406 | echo '20170921-141505~git~v1.0.1' > "$(BUILD_DIR)/ModelicaADS.last_change" 407 | ModelicaBook: 408 | # Building git/ModelicaBook 409 | ./checkout-git.sh 'git/ModelicaBook' 'https://github.com/xogeny/ModelicaBook.git' 'v0.6.0' 'v0.6.0' 410 | test ! -d 'build//ModelicaByExample 0.5.0' 411 | cp -a 'git/ModelicaBook/ModelicaByExample' "$(BUILD_DIR)/ModelicaByExample 0.5.0" 412 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/ModelicaByExample 0.5.0.uses" 413 | echo 'modelica2' > "$(BUILD_DIR)/ModelicaByExample 0.5.0.license" 414 | echo '0.5.0-154-g6044b75' > "$(BUILD_DIR)/ModelicaByExample 0.5.0.last_change" 415 | ModelicaCompliance: 416 | # Building git/ModelicaCompliance 417 | ./checkout-git.sh 'git/ModelicaCompliance' 'https://github.com/modelica-compliance/compliance.git' 'master' '8a91e75d8a26acc4de30fc0e5d5e9db83c970bd6' 418 | test ! -d 'build//ModelicaCompliance 3.2' 419 | cp -a 'git/ModelicaCompliance/ModelicaCompliance' "$(BUILD_DIR)/ModelicaCompliance 3.2" 420 | echo '' > "$(BUILD_DIR)/ModelicaCompliance 3.2.uses" 421 | echo 'modelica2' > "$(BUILD_DIR)/ModelicaCompliance 3.2.license" 422 | echo '3.2-20191002-130415~git~master' > "$(BUILD_DIR)/ModelicaCompliance 3.2.last_change" 423 | ModelicaDFR: 424 | # Building git/ModelicaDFR 425 | ./checkout-git.sh 'git/ModelicaDFR' 'https://github.com/modelica-3rdparty/ModelicaDFR.git' 'master' '37a441934d05330cf3d13e9ec551954d27eca84c' 426 | test ! -f 'build//Nuclear.mo' 427 | cp -a 'git/ModelicaDFR/Nuclear.mo' "$(BUILD_DIR)/Nuclear.mo" 428 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/Nuclear.uses" 429 | echo 'modelica2' > "$(BUILD_DIR)/Nuclear.license" 430 | echo '20160806-130022~git~master' > "$(BUILD_DIR)/Nuclear.last_change" 431 | Modelica_DeviceDrivers: 432 | # Building git/Modelica_DeviceDrivers 433 | ./checkout-git.sh 'git/Modelica_DeviceDrivers' 'https://github.com/modelica/Modelica_DeviceDrivers.git' 'v1.8.2' 'v1.8.2' 434 | test ! -d 'build//Modelica_DeviceDrivers 1.8.2' 435 | cp -a 'git/Modelica_DeviceDrivers/Modelica_DeviceDrivers' "$(BUILD_DIR)/Modelica_DeviceDrivers 1.8.2" 436 | echo 'Modelica_Synchronous 0.92.2' >> "$(BUILD_DIR)/Modelica_DeviceDrivers 1.8.2.uses" 437 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/Modelica_DeviceDrivers 1.8.2.uses" 438 | echo 'modelica2' > "$(BUILD_DIR)/Modelica_DeviceDrivers 1.8.2.license" 439 | echo '1.8.2' > "$(BUILD_DIR)/Modelica_DeviceDrivers 1.8.2.last_change" 440 | Modelica_LinearSystems2: 441 | # Building git/Modelica_LinearSystems2 442 | ./checkout-git.sh 'git/Modelica_LinearSystems2' 'https://github.com/modelica/Modelica_LinearSystems2.git' 'v2.3.5' 'v2.3.5' 443 | test ! -d 'build//Modelica_LinearSystems2 2.4.0' 444 | cp -a 'git/Modelica_LinearSystems2/Modelica_LinearSystems2' "$(BUILD_DIR)/Modelica_LinearSystems2 2.4.0" 445 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/Modelica_LinearSystems2 2.4.0.uses" 446 | echo 'modelica2' > "$(BUILD_DIR)/Modelica_LinearSystems2 2.4.0.license" 447 | echo '2.4.0-beta.1-2-g1a9735b' > "$(BUILD_DIR)/Modelica_LinearSystems2 2.4.0.last_change" 448 | Modelica_Requirements: 449 | # Building git/Modelica_Requirements 450 | ./checkout-git.sh 'git/Modelica_Requirements' 'https://github.com/modelica-3rdparty/Modelica_Requirements.git' 'master' 'a427b5cb7997e9036c577d219e6b8a5d0c28389a' 451 | test ! -d 'build//Modelica_Requirements 0.6' 452 | cp -a 'git/Modelica_Requirements/Modelica_Requirements' "$(BUILD_DIR)/Modelica_Requirements 0.6" 453 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Modelica_Requirements 0.6.uses" 454 | echo 'modelica2' > "$(BUILD_DIR)/Modelica_Requirements 0.6.license" 455 | echo '0.6-20170818-163012~git~master' > "$(BUILD_DIR)/Modelica_Requirements 0.6.last_change" 456 | Modelica_Synchronous: 457 | # Building git/Modelica_Synchronous 458 | ./checkout-git.sh 'git/Modelica_Synchronous' 'https://github.com/modelica/Modelica_Synchronous.git' 'master' 'c8350276bfd945086962cf4150ba941b9c57ed13' 459 | test ! -d 'build//Modelica_Synchronous 0.93.0' 460 | cp -a 'git/Modelica_Synchronous/Modelica_Synchronous' "$(BUILD_DIR)/Modelica_Synchronous 0.93.0" 461 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/Modelica_Synchronous 0.93.0.uses" 462 | echo 'ModelicaServices 3.2.3' >> "$(BUILD_DIR)/Modelica_Synchronous 0.93.0.uses" 463 | echo 'modelica2' > "$(BUILD_DIR)/Modelica_Synchronous 0.93.0.license" 464 | echo '0.93.0-17-gc835027' > "$(BUILD_DIR)/Modelica_Synchronous 0.93.0.last_change" 465 | MultiPhaseMixtureMedia: 466 | # Building git/MultiPhaseMixtureMedia 467 | ./checkout-git.sh 'git/MultiPhaseMixtureMedia' 'https://github.com/jwindahlModelon/MultiPhaseMixtureMedia.git' 'master' '0bda0c58af6384f8e0edf7aa7520afb369af3e38' 468 | OpenIPSL: 469 | # Building git/OpenIPSL 470 | ./checkout-git.sh 'git/OpenIPSL' 'https://github.com/OpenIPSL/OpenIPSL.git' 'v1.5.0' 'v1.5.0' 471 | test ! -d 'build//OpenIPSL 1.5.0' 472 | cp -a 'git/OpenIPSL/OpenIPSL' "$(BUILD_DIR)/OpenIPSL 1.5.0" 473 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/OpenIPSL 1.5.0.uses" 474 | echo 'Complex 3.2.2' >> "$(BUILD_DIR)/OpenIPSL 1.5.0.uses" 475 | echo 'modelica2' > "$(BUILD_DIR)/OpenIPSL 1.5.0.license" 476 | echo '1.5.0' > "$(BUILD_DIR)/OpenIPSL 1.5.0.last_change" 477 | Optimisers: 478 | # Building git/Optimisers 479 | ./checkout-git.sh 'git/Optimisers' 'https://github.com/modelica-3rdparty/Optimisers.git' 'master' 'e33c69edaad6dad8029167b0ca00533964a6fe37' 480 | test ! -d 'build//Optimisers 0.1' 481 | cp -a 'git/Optimisers/Optimisers' "$(BUILD_DIR)/Optimisers 0.1" 482 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Optimisers 0.1.uses" 483 | echo 'modelica2' > "$(BUILD_DIR)/Optimisers 0.1.license" 484 | echo '0.1-20180116-104125~git~master' > "$(BUILD_DIR)/Optimisers 0.1.last_change" 485 | PNlib: 486 | # Building git/PNlib 487 | ./checkout-git.sh 'git/PNlib' 'https://github.com/lochel/PNlib.git' 'master' '059545d48dd9ceeccfa3b4e47689ec8dd334dcd8' 488 | test ! -d 'build//PNlib 2.2' 489 | cp -a 'git/PNlib/PNlib' "$(BUILD_DIR)/PNlib 2.2" 490 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/PNlib 2.2.uses" 491 | echo 'modelica2' > "$(BUILD_DIR)/PNlib 2.2.license" 492 | echo '2.2-5-g059545d' > "$(BUILD_DIR)/PNlib 2.2.last_change" 493 | PVSystems: 494 | # Building git/PVSystems 495 | ./checkout-git.sh 'git/PVSystems' 'https://github.com/modelica-3rdparty/PVSystems.git' 'v0.6.2' 'v0.6.2' 496 | test ! -d 'build//PVSystems 0.6.2' 497 | cp -a 'git/PVSystems/PVSystems' "$(BUILD_DIR)/PVSystems 0.6.2" 498 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/PVSystems 0.6.2.uses" 499 | echo 'modelica2' > "$(BUILD_DIR)/PVSystems 0.6.2.license" 500 | echo '0.6.2' > "$(BUILD_DIR)/PVSystems 0.6.2.last_change" 501 | PhotoVoltaics: 502 | # Building git/PhotoVoltaics 503 | ./checkout-git.sh 'git/PhotoVoltaics' 'https://github.com/modelica-3rdparty/PhotoVoltaics.git' 'v1.6.0' 'v1.6.0' 504 | test ! -d 'build//PhotoVoltaics 1.6.0' 505 | cp -a 'git/PhotoVoltaics/PhotoVoltaics' "$(BUILD_DIR)/PhotoVoltaics 1.6.0" 506 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/PhotoVoltaics 1.6.0.uses" 507 | echo 'bsd3' > "$(BUILD_DIR)/PhotoVoltaics 1.6.0.license" 508 | echo '1.6.0' > "$(BUILD_DIR)/PhotoVoltaics 1.6.0.last_change" 509 | test ! -d 'build//PhotoVoltaics_TGM 1.6.0' 510 | cp -a 'git/PhotoVoltaics/PhotoVoltaics_TGM' "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0" 511 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0.uses" 512 | echo 'Buildings 6.0.0' >> "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0.uses" 513 | echo 'PhotoVoltaics 1.6.0' >> "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0.uses" 514 | echo 'bsd3' > "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0.license" 515 | echo '1.6.0' > "$(BUILD_DIR)/PhotoVoltaics_TGM 1.6.0.last_change" 516 | Physiolibrary: 517 | # Building git/Physiolibrary 518 | ./checkout-git.sh 'git/Physiolibrary' 'https://github.com/MarekMatejak/Physiolibrary.git' 'v2.3.1' 'v2.3.1' 519 | test ! -d 'build//Physiolibrary 2.3.1' 520 | cp -a 'git/Physiolibrary/Physiolibrary' "$(BUILD_DIR)/Physiolibrary 2.3.1" 521 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/Physiolibrary 2.3.1.uses" 522 | echo 'modelica2' > "$(BUILD_DIR)/Physiolibrary 2.3.1.license" 523 | echo '2.3.1' > "$(BUILD_DIR)/Physiolibrary 2.3.1.last_change" 524 | Physiomodel: 525 | # Building git/Physiomodel 526 | ./checkout-git.sh 'git/Physiomodel' 'https://github.com/modelica-3rdparty/Physiomodel.git' 'v1.0.0' 'v1.0.0' 527 | test ! -d 'build//Physiomodel 1.0.0' 528 | cp -a 'git/Physiomodel/Physiomodel' "$(BUILD_DIR)/Physiomodel 1.0.0" 529 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/Physiomodel 1.0.0.uses" 530 | echo 'Physiolibrary 2.3.1' >> "$(BUILD_DIR)/Physiomodel 1.0.0.uses" 531 | echo 'modelica2' > "$(BUILD_DIR)/Physiomodel 1.0.0.license" 532 | echo '1.0.0' > "$(BUILD_DIR)/Physiomodel 1.0.0.last_change" 533 | PlanarMechanics: 534 | # Building git/PlanarMechanics 535 | ./checkout-git.sh 'git/PlanarMechanics' 'https://github.com/dzimmer/PlanarMechanics.git' 'master' '4818bd6b35baad1fc40182e27e429b2038a21be8' 536 | test ! -d 'build//PlanarMechanics 1.5.0' 537 | cp -a 'git/PlanarMechanics/PlanarMechanics' "$(BUILD_DIR)/PlanarMechanics 1.5.0" 538 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/PlanarMechanics 1.5.0.uses" 539 | echo 'modelica2' > "$(BUILD_DIR)/PlanarMechanics 1.5.0.license" 540 | echo '1.5.0-44-g4818bd6' > "$(BUILD_DIR)/PlanarMechanics 1.5.0.last_change" 541 | test ! -d 'build//PlanarMechanicsTest 1.5.0' 542 | cp -a 'git/PlanarMechanics/PlanarMechanicsTest' "$(BUILD_DIR)/PlanarMechanicsTest 1.5.0" 543 | echo 'Modelica 4.0.0' >> "$(BUILD_DIR)/PlanarMechanicsTest 1.5.0.uses" 544 | echo 'PlanarMechanics 1.5.0' >> "$(BUILD_DIR)/PlanarMechanicsTest 1.5.0.uses" 545 | echo 'modelica2' > "$(BUILD_DIR)/PlanarMechanicsTest 1.5.0.license" 546 | echo '1.5.0-44-g4818bd6' > "$(BUILD_DIR)/PlanarMechanicsTest 1.5.0.last_change" 547 | PowerGrids: 548 | # Building git/PowerGrids 549 | ./checkout-git.sh 'git/PowerGrids' 'https://github.com/PowerGrids/PowerGrids.git' 'v1.0.0' 'v1.0.0' 550 | test ! -d 'build//PowerGrids 1.0.0' 551 | cp -a 'git/PowerGrids/PowerGrids' "$(BUILD_DIR)/PowerGrids 1.0.0" 552 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/PowerGrids 1.0.0.uses" 553 | echo 'modelica2' > "$(BUILD_DIR)/PowerGrids 1.0.0.license" 554 | echo '1.0.0' > "$(BUILD_DIR)/PowerGrids 1.0.0.last_change" 555 | PowerSystems: 556 | # Building git/PowerSystems 557 | ./checkout-git.sh 'git/PowerSystems' 'https://github.com/modelica/PowerSystems.git' 'v1.0.0' 'v1.0.0' 558 | test ! -d 'build//PowerSystems 1.0.0' 559 | cp -a 'git/PowerSystems/PowerSystems' "$(BUILD_DIR)/PowerSystems 1.0.0" 560 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/PowerSystems 1.0.0.uses" 561 | echo 'modelica2' > "$(BUILD_DIR)/PowerSystems 1.0.0.license" 562 | echo '1.0.0' > "$(BUILD_DIR)/PowerSystems 1.0.0.last_change" 563 | PowerSystems-latest: 564 | # Building git/PowerSystems-latest 565 | ./checkout-git.sh 'git/PowerSystems-latest' 'https://github.com/modelica/PowerSystems.git' 'master' '78ae47f5ebac19f9600c5d694dc5b634be37dc18' 566 | test ! -d 'build//PowerSystems latest' 567 | cp -a 'git/PowerSystems-latest/PowerSystems' "$(BUILD_DIR)/PowerSystems latest" 568 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/PowerSystems latest.uses" 569 | echo 'modelica2' > "$(BUILD_DIR)/PowerSystems latest.license" 570 | echo '20210908-183013~git~master' > "$(BUILD_DIR)/PowerSystems latest.last_change" 571 | RealTimeCoordinationLibrary: 572 | # Building git/RealTimeCoordinationLibrary 573 | ./checkout-git.sh 'git/RealTimeCoordinationLibrary' 'https://github.com/modelica-3rdparty/RealTimeCoordinationLibrary.git' 'v1.0.2' 'v1.0.2' 574 | test ! -d 'build//RealTimeCoordinationLibrary 1.0.2' 575 | cp -a 'git/RealTimeCoordinationLibrary' "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2" 576 | echo 'Modelica 3.2' >> "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2.uses" 577 | echo 'RealTimeCoordinationLibrary 1.0.2' >> "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2.uses" 578 | echo 'Modelica_StateGraph2 2.0.1' >> "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2.uses" 579 | echo 'modelica2' > "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2.license" 580 | echo '1.0.2' > "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2.last_change" 581 | rm -rf "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2/.git"* 582 | echo 'Windows-1252' > "$(BUILD_DIR)/RealTimeCoordinationLibrary 1.0.2/package.encoding" 583 | ScalableTestSuite: 584 | # Building git/ScalableTestSuite 585 | ./checkout-git.sh 'git/ScalableTestSuite' 'https://github.com/casella/ScalableTestSuite.git' 'v1.11.5' 'v1.11.5' 586 | test ! -d 'build//ScalableTestSuite 1.11.5' 587 | cp -a 'git/ScalableTestSuite/ScalableTestSuite' "$(BUILD_DIR)/ScalableTestSuite 1.11.5" 588 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ScalableTestSuite 1.11.5.uses" 589 | echo 'modelica2' > "$(BUILD_DIR)/ScalableTestSuite 1.11.5.license" 590 | echo '1.11.5' > "$(BUILD_DIR)/ScalableTestSuite 1.11.5.last_change" 591 | Servomechanisms: 592 | # Building git/Servomechanisms 593 | ./checkout-git.sh 'git/Servomechanisms' 'https://github.com/modelica-3rdparty/Servomechanisms.git' 'master' '3bf82ba5d3f31b4a0ae05f99ae690037358e153e' 594 | test ! -d 'build//Servomechanisms 1.0' 595 | cp -a 'git/Servomechanisms/Servomechanisms 1.0' "$(BUILD_DIR)/Servomechanisms 1.0" 596 | echo '' > "$(BUILD_DIR)/Servomechanisms 1.0.uses" 597 | echo 'modelica2' > "$(BUILD_DIR)/Servomechanisms 1.0.license" 598 | echo '1.0-20181206-130737~git~master' > "$(BUILD_DIR)/Servomechanisms 1.0.last_change" 599 | SolarTherm: 600 | # Building git/SolarTherm 601 | ./checkout-git.sh 'git/SolarTherm' 'https://github.com/SolarTherm/SolarTherm.git' 'master' '91aae31d04f350d0a40a3297e226ab45d00b0ce9' 602 | test ! -d 'build//SolarTherm 0.2' 603 | cp -a 'git/SolarTherm/SolarTherm' "$(BUILD_DIR)/SolarTherm 0.2" 604 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/SolarTherm 0.2.uses" 605 | echo 'modelica2' > "$(BUILD_DIR)/SolarTherm 0.2.license" 606 | echo '0.2-20210923-193911~git~master' > "$(BUILD_DIR)/SolarTherm 0.2.last_change" 607 | Soltermica: 608 | # Building git/Soltermica 609 | ./checkout-git.sh 'git/Soltermica' 'https://github.com/modelica-3rdparty/Soltermica.git' 'master' '9f7224bd89335f95dffe1ccdaa094df5a3279fdf' 610 | test ! -d 'build//Soltermica' 611 | cp -a 'git/Soltermica/Soltermica' "$(BUILD_DIR)/Soltermica" 612 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/Soltermica.uses" 613 | echo 'modelica2' > "$(BUILD_DIR)/Soltermica.license" 614 | echo '20180714-104928~git~master' > "$(BUILD_DIR)/Soltermica.last_change" 615 | SystemDynamics: 616 | # Building git/SystemDynamics 617 | ./checkout-git.sh 'git/SystemDynamics' 'https://github.com/modelica-3rdparty/SystemDynamics.git' 'master' '2f6bd9382c5aac2aff9148cd9113a418767734b6' 618 | test ! -d 'build//SystemDynamics 2.1.1' 619 | cp -a 'git/SystemDynamics/SystemDynamics' "$(BUILD_DIR)/SystemDynamics 2.1.1" 620 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/SystemDynamics 2.1.1.uses" 621 | echo 'modelica1.1' > "$(BUILD_DIR)/SystemDynamics 2.1.1.license" 622 | echo '2.1.1-2-g2f6bd93' > "$(BUILD_DIR)/SystemDynamics 2.1.1.last_change" 623 | ThermalSeparation: 624 | # Building git/ThermalSeparation 625 | ./checkout-git.sh 'git/ThermalSeparation' 'https://github.com/thom-marx/ThermalSeparation.git' 'master' 'ffa0495ba829ecab105be4bfb3b7652625ec9c03' 626 | test ! -d 'build//ThermalSeparation 0.2' 627 | cp -a 'git/ThermalSeparation/ThermalSeparation' "$(BUILD_DIR)/ThermalSeparation 0.2" 628 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/ThermalSeparation 0.2.uses" 629 | echo 'modelica2' > "$(BUILD_DIR)/ThermalSeparation 0.2.license" 630 | echo '0.2-20200823-172857~git~master' > "$(BUILD_DIR)/ThermalSeparation 0.2.last_change" 631 | ThermoPower: 632 | # Building git/ThermoPower 633 | ./checkout-git.sh 'git/ThermoPower' 'https://github.com/casella/ThermoPower.git' 'master' '650be2c8cbd5abc3535e92b865e509073afc8aeb' 634 | test ! -d 'build//ThermoPower 3.1' 635 | cp -a 'git/ThermoPower/ThermoPower' "$(BUILD_DIR)/ThermoPower 3.1" 636 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ThermoPower 3.1.uses" 637 | echo 'modelica2' > "$(BUILD_DIR)/ThermoPower 3.1.license" 638 | echo '3.1-20210618-101418~git~master' > "$(BUILD_DIR)/ThermoPower 3.1.last_change" 639 | ThermoSysPro: 640 | # Building git/ThermoSysPro 641 | ./checkout-git.sh 'git/ThermoSysPro' 'https://openmodelica.org/git/ThermoSysPro.git' 'maint/3.1' 'db81ae1b5a6a85f6c6c7693244cafa6087e18ff5' 642 | test ! -d 'build//ThermoSysPro 3.1' 643 | cp -a 'git/ThermoSysPro/ThermoSysPro' "$(BUILD_DIR)/ThermoSysPro 3.1" 644 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/ThermoSysPro 3.1.uses" 645 | echo 'modelica2' > "$(BUILD_DIR)/ThermoSysPro 3.1.license" 646 | echo '3.1+OSR-18-gdb81ae1' > "$(BUILD_DIR)/ThermoSysPro 3.1.last_change" 647 | # Building git/ThermoSysPro 648 | ./checkout-git.sh 'git/ThermoSysPro' 'https://openmodelica.org/git/ThermoSysPro.git' 'master' '5cef9acb4dedf8af6f4638a4448f08a544ebd30b' 649 | test ! -f 'build//TestDerivative.mo' 650 | cp -a 'git/ThermoSysPro/TestDerivative.mo' "$(BUILD_DIR)/TestDerivative.mo" 651 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/TestDerivative.uses" 652 | echo 'modelica2' > "$(BUILD_DIR)/TestDerivative.license" 653 | echo '20191212-010403~git~master' > "$(BUILD_DIR)/TestDerivative.last_change" 654 | test ! -f 'build//ThermoSysProLogo.mo' 655 | cp -a 'git/ThermoSysPro/ThermoSysProLogo.mo' "$(BUILD_DIR)/ThermoSysProLogo.mo" 656 | echo '' > "$(BUILD_DIR)/ThermoSysProLogo.uses" 657 | echo 'modelica2' > "$(BUILD_DIR)/ThermoSysProLogo.license" 658 | echo '20191212-010403~git~master' > "$(BUILD_DIR)/ThermoSysProLogo.last_change" 659 | test ! -d 'build//ThermoSysPro 3.2' 660 | cp -a 'git/ThermoSysPro/ThermoSysPro' "$(BUILD_DIR)/ThermoSysPro 3.2" 661 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/ThermoSysPro 3.2.uses" 662 | echo 'modelica2' > "$(BUILD_DIR)/ThermoSysPro 3.2.license" 663 | echo '3.2-20191212-010403~git~master' > "$(BUILD_DIR)/ThermoSysPro 3.2.last_change" 664 | VVDRlib: 665 | # Building git/VVDRlib 666 | ./checkout-git.sh 'git/VVDRlib' 'https://github.com/lenaRB/VVDRlib.git' 'master' 'eae4981674642eddffc7f2aa3690320fcaddee0e' 667 | test ! -d 'build//VVDRlib' 668 | cp -a 'git/VVDRlib' "$(BUILD_DIR)/VVDRlib" 669 | echo '' > "$(BUILD_DIR)/VVDRlib.uses" 670 | echo 'modelica2' > "$(BUILD_DIR)/VVDRlib.license" 671 | echo '20170912-142014~git~master' > "$(BUILD_DIR)/VVDRlib.last_change" 672 | rm -rf "$(BUILD_DIR)/VVDRlib/.git"* 673 | VehicleInterfaces: 674 | # Building git/VehicleInterfaces 675 | ./checkout-git.sh 'git/VehicleInterfaces' 'https://github.com/modelica/VehicleInterfaces.git' 'v1.2.5' 'v1.2.5' 676 | test ! -d 'build//VehicleInterfaces 1.2.5' 677 | cp -a 'git/VehicleInterfaces/VehicleInterfaces' "$(BUILD_DIR)/VehicleInterfaces 1.2.5" 678 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/VehicleInterfaces 1.2.5.uses" 679 | echo 'modelica2' > "$(BUILD_DIR)/VehicleInterfaces 1.2.5.license" 680 | echo '1.2.5' > "$(BUILD_DIR)/VehicleInterfaces 1.2.5.last_change" 681 | WasteWater: 682 | # Building git/WasteWater 683 | ./checkout-git.sh 'git/WasteWater' 'https://github.com/modelica-3rdparty/WasteWater.git' 'v2.1.0' 'v2.1.0' 684 | test ! -d 'build//WasteWater 2.1.0' 685 | cp -a 'git/WasteWater/WasteWater 2.1.0' "$(BUILD_DIR)/WasteWater 2.1.0" 686 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/WasteWater 2.1.0.uses" 687 | echo 'modelica2' > "$(BUILD_DIR)/WasteWater 2.1.0.license" 688 | echo '2.1.0' > "$(BUILD_DIR)/WasteWater 2.1.0.last_change" 689 | WindPowerPlants: 690 | # Building git/WindPowerPlants 691 | ./checkout-git.sh 'git/WindPowerPlants' 'https://github.com/modelica-3rdparty/WindPowerPlants.git' 'v1.2.0' 'v1.2.0' 692 | test ! -d 'build//WindPowerPlants 1.2.0' 693 | cp -a 'git/WindPowerPlants/WindPowerPlants' "$(BUILD_DIR)/WindPowerPlants 1.2.0" 694 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/WindPowerPlants 1.2.0.uses" 695 | echo 'Complex 3.2.3' >> "$(BUILD_DIR)/WindPowerPlants 1.2.0.uses" 696 | echo 'bsd3' > "$(BUILD_DIR)/WindPowerPlants 1.2.0.license" 697 | echo '1.2.0' > "$(BUILD_DIR)/WindPowerPlants 1.2.0.last_change" 698 | ipsl: 699 | # Building git/ipsl 700 | ./checkout-git.sh 'git/ipsl' 'https://github.com/modelica-3rdparty/ipsl.git' 'v1.1.1' 'v1.1.1' 701 | test ! -d 'build//iPSL 1.1.0' 702 | cp -a 'git/ipsl/iPSL' "$(BUILD_DIR)/iPSL 1.1.0" 703 | echo 'Modelica 3.2.1' >> "$(BUILD_DIR)/iPSL 1.1.0.uses" 704 | echo 'Complex 3.2.1' >> "$(BUILD_DIR)/iPSL 1.1.0.uses" 705 | echo 'modelica2' > "$(BUILD_DIR)/iPSL 1.1.0.license" 706 | echo '1.1.0-38-ge0e3ea0' > "$(BUILD_DIR)/iPSL 1.1.0.last_change" 707 | netCDF-DataReader: 708 | # Building git/netCDF-DataReader 709 | ./checkout-git.sh 'git/netCDF-DataReader' 'https://github.com/modelica-3rdparty/netCDF-DataReader.git' 'v2.5.0' 'v2.5.0' 710 | test ! -d 'build//NcDataReader2 2.5.0' 711 | cp -a 'git/netCDF-DataReader/NcDataReader2' "$(BUILD_DIR)/NcDataReader2 2.5.0" 712 | echo 'Modelica 3.2.3' >> "$(BUILD_DIR)/NcDataReader2 2.5.0.uses" 713 | echo 'lgpl2.1+' > "$(BUILD_DIR)/NcDataReader2 2.5.0.license" 714 | echo '2.5.0' > "$(BUILD_DIR)/NcDataReader2 2.5.0.last_change" 715 | open-bldc-modelica: 716 | # Building git/open-bldc-modelica 717 | ./checkout-git.sh 'git/open-bldc-modelica' 'https://github.com/joewa/open-bldc-modelica.git' 'master' '58a83b5b36f267613de4676c95163489b1ddc2e7' 718 | test ! -d 'build//OpenBLDC' 719 | cp -a 'git/open-bldc-modelica/OpenBLDC' "$(BUILD_DIR)/OpenBLDC" 720 | echo 'Modelica 3.2.2' >> "$(BUILD_DIR)/OpenBLDC.uses" 721 | echo 'modelica2' > "$(BUILD_DIR)/OpenBLDC.license" 722 | echo '20170913-145654~git~master' > "$(BUILD_DIR)/OpenBLDC.last_change" 723 | --------------------------------------------------------------------------------