Skip to content

Commit

Permalink
small fix for GenerateDoc.mos
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2757
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Oct 31, 2018
1 parent d129e47 commit c77f81e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Examples/GenerateDoc.mos
Expand Up @@ -457,6 +457,7 @@ system("rm -f tidy.links tidy.out tidy.err tidy.filtered");

"Copying original HTML files to 'old-html-tmp'";
writeFile("copyold.py","#!/usr/bin/env python
import os
import shutil
oldtmp = 'old-html-tmp'
if not os.path.exists(oldtmp):
Expand Down Expand Up @@ -507,7 +508,7 @@ def makeCaseSensitive():
if os.path.isfile(nfile):
raise Exception('File already exists: ' + nfile)
for f in getFiles():
call(['sed','-i','s/%s/%s/g' % (file,nfile)] + f)
call(['sed','-i','s/%s/%s/g' % (file,nfile), f])
os.rename(file,nfile)
return False
visited[upper] = file
Expand Down

0 comments on commit c77f81e

Please sign in to comment.