Skip to content

Commit edd4913

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Handle limit on shell expansion
The documentation job is trying to zip/tar too many files for bash to handle, so use their ability to take filenames from stdin instead.
1 parent db6f052 commit edd4913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/GenerateDoc.mos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ system("mkdir -p " + dirs);
514514
system("cp '" + py + "' '" + self + "' .");
515515
"tar";
516516
dirs;
517-
cmd := "tar cJf ModelicaDocumentation.tar.xz --dereference style.css *.html Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
517+
cmd := "find . -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";
518518
system(cmd);
519519
getErrorString();
520520

@@ -527,6 +527,6 @@ system("mkdir -p " + dirs);
527527
system("cp '" + py + "' '" + self + "' .");
528528
"tar";
529529
dirs;
530-
cmd := "zip -qr ModelicaDocumentation.zip style.css *.html Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
530+
cmd := "find . -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";
531531
system(cmd);
532532
getErrorString();

0 commit comments

Comments
 (0)