File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ py:=getInstallationDirectoryPath() + "/share/doc/omc/testmodels/generate_icons.p
8181if getEnvironmentVar("GenerateDocTest") == "YES" then
8282 system("mkdir -p Icons");
8383else
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);
527530system("cp '" + py + "' '" + self + "' .");
528531"tar";
529532dirs;
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 -";
531534system(cmd);
532535getErrorString();
533536
@@ -540,6 +543,6 @@ system("mkdir -p " + dirs);
540543system("cp '" + py + "' '" + self + "' .");
541544"tar";
542545dirs;
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";
544547system(cmd);
545548getErrorString();
You can’t perform that action at this time.
0 commit comments