Skip to content

Commit

Permalink
Print the source files used to run the script
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24302 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 29, 2015
1 parent 5040328 commit 109ae13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Examples/BuildModelRecursive.mos
Expand Up @@ -58,6 +58,7 @@ loadModel(library,{libraryVersion});
getErrorString();
libraryVersionRevision:=getVersion(library);
libraryLastChange := "";
print(sum(getSourceFile(l) + "\n" for l in getClassNames()));
if regularFileExists(dirname(getSourceFile(library))+".last_change") then
libraryLastChange := "( revision " + readFile(dirname(getSourceFile(library))+".last_change") + ")";
elseif 0 == system("svn info '" + dirname(getSourceFile(library)) + "' 2>&1 | egrep '^(URL|Last.Changed.Rev)' > svn.info") then
Expand Down

0 comments on commit 109ae13

Please sign in to comment.