ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/cfutil.in
(Generate patch)

Comparing deliantra/server/utils/cfutil.in (file contents):
Revision 1.37 by root, Tue Jul 10 16:24:00 2007 UTC vs.
Revision 1.38 by root, Thu Jul 12 08:40:14 2007 UTC

392 my ($dir, $file) = @{pop @res}; 392 my ($dir, $file) = @{pop @res};
393 393
394 my $data; 394 my $data;
395 aio_load "$dir/$file", $data; 395 aio_load "$dir/$file", $data;
396 396
397 my $copyright;
398 aio_load "$dir/copyright", $copyright;
399
397 $file =~ s/\.res$//; 400 $file =~ s/\.res$//;
398 $file =~ /\.([^.]+)$/ 401 $file =~ /\.([^.]+)$/
399 or next; 402 or next;
400 403
401 my $type = $1; 404 my $type = $1;
402 405
403 substr $dir, 0, 1 + length $PATH, ""; 406 substr $dir, 0, 1 + length $PATH, "";
404 407
405 $RESOURCE{"$dir/$file"} = { 408 $RESOURCE{"$dir/$file"} = {
406 type => $1, 409 type => $1,
407 copyright => "", # TODO 410 copyright => $copyright,
408 data => $data, 411 data => $data,
409 chksum => Digest::MD5::md5 $data, 412 chksum => Digest::MD5::md5 $data,
410 }; 413 };
411 } 414 }
412 } 415 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines