[system] / trunk / webwork / system / cgi / cgi-scripts / welcomeAction.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/cgi/cgi-scripts/welcomeAction.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 96 Revision 97
833 833
834 open(OUTPUT, ">${tempDirectory}${texFile}${psvn}.tex") 834 open(OUTPUT, ">${tempDirectory}${texFile}${psvn}.tex")
835 || wwerror("Can't create $tempDirectory${texFile}$psvn.tex\n"); 835 || wwerror("Can't create $tempDirectory${texFile}$psvn.tex\n");
836 print OUTPUT $texSource; 836 print OUTPUT $texSource;
837 close OUTPUT; 837 close OUTPUT;
838
839 # so here we are. we've just generated a whole crapload of TeX source and saved it
840 # to a temporary file. Now we're ready to convert it to one of several output formats.
841
842 # TeX: this is the easiest. All we have to do is add some headers and spit it back.
843 # PostScript:
838 844
839 if ($downloadType eq "TeX" ) { 845 if ($downloadType eq "TeX" ) {
840 &texPrint; 846 &texPrint;
841 } 847 }
842 elsif (system( "${scriptDirectory}makePS $tempDirectory $texFile$psvn 1>&2" )) { 848 elsif (system( "${scriptDirectory}makePS $tempDirectory $texFile$psvn 1>&2" )) {
955 $envir{'htmlURL'} = getCourseHtmlURL(); 961 $envir{'htmlURL'} = getCourseHtmlURL();
956 $envir{'tempDirectory'} = getCourseTempDirectory(); 962 $envir{'tempDirectory'} = getCourseTempDirectory();
957 $envir{'tempURL'} = getCourseTempURL(); 963 $envir{'tempURL'} = getCourseTempURL();
958 $envir{'scriptDirectory'} = $Global::scriptDirectory; 964 $envir{'scriptDirectory'} = $Global::scriptDirectory;
959 $envir{'webworkDocsURL'} = $Global::webworkDocsURL; 965 $envir{'webworkDocsURL'} = $Global::webworkDocsURL;
966 $envir{'externalTTHPath'} = $Global::externalTTHPath;
960 967
961 968
962 $envir{'inputs_ref'} = \%inputs; 969 $envir{'inputs_ref'} = \%inputs;
963 970
964 971

Legend:
Removed from v.96  
changed lines
  Added in v.97

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9