… | |
… | |
92 | if (!-f "$path/regions") { |
92 | if (!-f "$path/regions") { |
93 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
93 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
94 | exit 1 unless $FORCE; |
94 | exit 1 unless $FORCE; |
95 | } |
95 | } |
96 | |
96 | |
97 | system $RSYNC, "-av", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
97 | system $RSYNC, "-av", "--chmod=u=rwX,go=rX", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
98 | and die "map installation failed.\n"; |
98 | and die "map installation failed.\n"; |
99 | |
99 | |
100 | print "maps installed successfully.\n"; |
100 | print "maps installed successfully.\n"; |
101 | } |
101 | } |
102 | |
102 | |
… | |
… | |
430 | push @png, ["$path/$file", 0]; |
430 | push @png, ["$path/$file", 0]; |
431 | } elsif ($file =~ /\.trs$/) { |
431 | } elsif ($file =~ /\.trs$/) { |
432 | push @trs, [$path, $file]; |
432 | push @trs, [$path, $file]; |
433 | } elsif ($file =~ /\.arc$/) { |
433 | } elsif ($file =~ /\.arc$/) { |
434 | push @arc, [$path, $file]; |
434 | push @arc, [$path, $file]; |
435 | } elsif ($file =~ /\.(ogg|res)$/) { |
435 | } elsif ($file =~ /\.(ogg|jpg|res)$/) { |
436 | push @res, [$path, $file]; |
436 | push @res, [$path, $file]; |
437 | } else { |
437 | } else { |
438 | warn "ignoring $path/$file\n" if $VERBOSE >= 3; |
438 | warn "ignoring $path/$file\n" if $VERBOSE >= 3; |
439 | } |
439 | } |
440 | } |
440 | } |