… | |
… | |
75 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
75 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
76 | exit 1 unless $FORCE; |
76 | exit 1 unless $FORCE; |
77 | } |
77 | } |
78 | |
78 | |
79 | system $RSYNC, "-av", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
79 | system $RSYNC, "-av", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
80 | or die "map installation failed.\n"; |
80 | and die "map installation failed.\n"; |
81 | |
81 | |
82 | print "maps installed successfully.\n"; |
82 | print "maps installed successfully.\n"; |
83 | } |
83 | } |
84 | |
84 | |
85 | { |
85 | { |
… | |
… | |
360 | } |
360 | } |
361 | |
361 | |
362 | open my $fh, ">:perlio", "$DATADIR/faces~" |
362 | open my $fh, ">:perlio", "$DATADIR/faces~" |
363 | or die "$DATADIR/faces~: $!"; |
363 | or die "$DATADIR/faces~: $!"; |
364 | |
364 | |
|
|
365 | $FACEINFO{""} = { version => 1}; |
365 | print $fh Storable::nfreeze \%FACEINFO; |
366 | print $fh Storable::nfreeze \%FACEINFO; |
366 | } |
367 | } |
367 | |
368 | |
368 | for (qw(archetypes faces animations treasures)) { |
369 | for (qw(archetypes faces animations treasures)) { |
369 | chmod 0644, "$DATADIR/$_~"; |
370 | chmod 0644, "$DATADIR/$_~"; |