--- loncom/build/help_graphics_converter.pl 2002/07/19 16:56:23 1.3 +++ loncom/build/help_graphics_converter.pl 2002/08/19 21:40:55 1.4 @@ -38,6 +38,15 @@ if (not (-d $dirprefix . "png/")) mkdir $dirprefix . "gif/", 0755; mkdir $dirprefix . "eps/", 0755; +my $convert = `which convert`; +if ($convert eq '') +{ + open LOG, ">> WARNINGS"; + print LOG "**** ERROR **** ImageMagick is not installed. You must install ImageMagick to use LON-CAPA. Please see your installation instructions.\n"; + print "**** ERROR **** ImageMagick is not installed. You must install ImageMagick to use LON-CAPA. Please see your installation instructions.\n"; + exit; +} + foreach my $file (glob($dirprefix . "png/*.png")) { my $filename = substr($file, rindex($file, "/") + 1);