Skip to content

Commit dd78c08

Browse files
hkielOpenModelica-Hudson
authored andcommitted
archive Icons as well
clean working dir before creating docs Belonging to [master]: - OpenModelica/OMCompiler#2760
1 parent 08c3710 commit dd78c08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Examples/GenerateDoc.mos

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ py:=getInstallationDirectoryPath() + "/share/doc/omc/testmodels/generate_icons.p
8181
if getEnvironmentVar("GenerateDocTest") == "YES" then
8282
system("mkdir -p Icons");
8383
else
84+
system("find . -maxdepth 1 -name '*.html' -delete");
85+
system("find Icons -maxdepth 1 -name '*.svg' -delete");
86+
8487
commands:={"python "+py+" --quiet --output-dir Icons "+typeNameString(cl) for cl in getClassNames(builtin=false)};getErrorString();
8588
res:=system_parallel(commands);getErrorString();
8689
//system("rm -f *.json");getErrorString();
@@ -527,7 +530,7 @@ system("mkdir -p " + dirs);
527530
system("cp '" + py + "' '" + self + "' .");
528531
"tar";
529532
dirs;
530-
cmd := "find . -maxdepth 1 -name '*.html' -print0 | tar cJf ModelicaDocumentation.tar.xz --dereference --null style.css " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links -T -";
533+
cmd := "find . Icons -maxdepth 1 \\( -name '*.html' -o -name '*.svg' \\) -print0 | tar cJf ModelicaDocumentation.tar.xz --dereference --null style.css " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links -T -";
531534
system(cmd);
532535
getErrorString();
533536

@@ -540,6 +543,6 @@ system("mkdir -p " + dirs);
540543
system("cp '" + py + "' '" + self + "' .");
541544
"tar";
542545
dirs;
543-
cmd := "find . -maxdepth 1 -name '*.html' -print | zip -qr ModelicaDocumentation.zip style.css -@ Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
546+
cmd := "find . Icons -maxdepth 1 \\( -name '*.html' -o '*.svg' \\) -print | zip -qr ModelicaDocumentation.zip style.css -@ Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
544547
system(cmd);
545548
getErrorString();

0 commit comments

Comments
 (0)