| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.182 2007/01/08 22:51:01 sh002i Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.183 2007/01/19 21:57:57 sh002i Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 58 | $externalPrograms{latex} = "/usr/bin/latex"; |
58 | $externalPrograms{latex} = "/usr/bin/latex"; |
| 59 | $externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; |
59 | $externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; |
| 60 | $externalPrograms{dvipng} = "/usr/bin/dvipng"; |
60 | $externalPrograms{dvipng} = "/usr/bin/dvipng"; |
| 61 | $externalPrograms{tth} = "/usr/bin/tth"; |
61 | $externalPrograms{tth} = "/usr/bin/tth"; |
| 62 | |
62 | |
|
|
63 | #################################################### |
| 63 | # NetPBM - basic image manipulation utilities |
64 | # NetPBM - basic image manipulation utilities |
|
|
65 | # |
| 64 | # most sites only need to configure $netpbm_prefix. |
66 | # Most sites only need to configure $netpbm_prefix. |
|
|
67 | #################################################### |
| 65 | my $netpbm_prefix = "/usr/bin"; |
68 | my $netpbm_prefix = "/usr/bin"; |
| 66 | $externalPrograms{giftopnm} = "$netpbm_prefix/giftopnm"; |
69 | $externalPrograms{giftopnm} = "$netpbm_prefix/giftopnm"; |
| 67 | $externalPrograms{ppmtopgm} = "$netpbm_prefix/ppmtopgm"; |
70 | $externalPrograms{ppmtopgm} = "$netpbm_prefix/ppmtopgm"; |
| 68 | $externalPrograms{pnmtops} = "$netpbm_prefix/pnmtops"; |
71 | $externalPrograms{pnmtops} = "$netpbm_prefix/pnmtops"; |
| 69 | $externalPrograms{pnmtopng} = "$netpbm_prefix/pnmtopng"; |
72 | $externalPrograms{pnmtopng} = "$netpbm_prefix/pnmtopng"; |
| … | |
… | |
| 77 | # |
80 | # |
| 78 | # Note on conversions pipelines: |
81 | # Note on conversions pipelines: |
| 79 | # we used to use `pnmdepth 1' instead of ppmtopgm as it creates a |
82 | # we used to use `pnmdepth 1' instead of ppmtopgm as it creates a |
| 80 | # monochrome image (1 bit) rather than a greyscale image (8 bits). |
83 | # monochrome image (1 bit) rather than a greyscale image (8 bits). |
| 81 | # However, this was causing improper display of some sort in PDFs. |
84 | # However, this was causing improper display of some sort in PDFs. |
|
|
85 | ################################################################################ |
|
|
86 | |
| 82 | $externalPrograms{gif2eps} = "$externalPrograms{giftopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null"; |
87 | $externalPrograms{gif2eps} = "$externalPrograms{giftopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null"; |
| 83 | $externalPrograms{png2eps} = "$externalPrograms{pngtopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null"; |
88 | $externalPrograms{png2eps} = "$externalPrograms{pngtopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null"; |
| 84 | $externalPrograms{gif2png} = "$externalPrograms{giftopnm} | $externalPrograms{pnmtopng}"; |
89 | $externalPrograms{gif2png} = "$externalPrograms{giftopnm} | $externalPrograms{pnmtopng}"; |
| 85 | |
90 | |
| 86 | ################################################################################ |
91 | ################################################################################ |
| … | |
… | |
| 481 | # Logs courses created via the web-based Course Administration module. |
486 | # Logs courses created via the web-based Course Administration module. |
| 482 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
487 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
| 483 | |
488 | |
| 484 | # The transaction log contains data from each recorded answer submission. This |
489 | # The transaction log contains data from each recorded answer submission. This |
| 485 | # is useful if the database becomes corrupted. |
490 | # is useful if the database becomes corrupted. |
| 486 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
491 | $webworkFiles{logs}{transaction} = "$webworkDirs{logs}/$coursename_transaction.log"; |
| 487 | |
492 | |
| 488 | # The answer log stores a history of all users' submitted answers. |
493 | # The answer log stores a history of all users' submitted answers. |
| 489 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
494 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
| 490 | |
495 | |
| 491 | # Log logins. |
496 | # Log logins. |