Skip to content

Commit

Permalink
MDL-70627 filters: aarch64 mimetex type support for filter tex notation
Browse files Browse the repository at this point in the history
Amended to correct permissions.
  • Loading branch information
John Yao authored and stronk7 committed Feb 11, 2021
1 parent 9cacb16 commit b67e022
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion filter/tex/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ function filter_tex_get_executable($debug=false) {
}

switch (PHP_OS) {
case "Linux": return "$CFG->dirroot/filter/tex/mimetex.linux";
case "Darwin": return "$CFG->dirroot/filter/tex/mimetex.darwin";
case "FreeBSD": return "$CFG->dirroot/filter/tex/mimetex.freebsd";
case "Linux":
if (php_uname('m') == 'aarch64') {
return "$CFG->dirroot/filter/tex/mimetex.linux.aarch64";
}

return "$CFG->dirroot/filter/tex/mimetex.linux";
}

print_error('mimetexisnotexist', 'error');
Expand Down
Binary file added filter/tex/mimetex.linux.aarch64
Binary file not shown.
6 changes: 6 additions & 0 deletions filter/tex/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Linux
2/ go into directory with extracted source files
3/ execute "cc -DAA mimetex.c gifsave.c -lm -o mimetex.linux"

Linux aarch64
=====
1/ install gcc
2/ go into directory with extracted source files
3/ execute "cc -DAA mimetex.c gifsave.c -lm -o mimetex.linux.aarch64"

FreeBSD
=======
1/ go into directory with extracted source files
Expand Down

0 comments on commit b67e022

Please sign in to comment.