Skip to content

Commit

Permalink
Handle limit on shell expansion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Feb 13, 2017
1 parent db6f052 commit edd4913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/GenerateDoc.mos
Expand Up @@ -514,7 +514,7 @@ system("mkdir -p " + dirs);
system("cp '" + py + "' '" + self + "' .");
"tar";
dirs;
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";
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";
system(cmd);
getErrorString();

Expand All @@ -527,6 +527,6 @@ system("mkdir -p " + dirs);
system("cp '" + py + "' '" + self + "' .");
"tar";
dirs;
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";
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";
system(cmd);
getErrorString();

0 comments on commit edd4913

Please sign in to comment.