… | |
… | |
96 | if (!-f "$path/regions") { |
96 | if (!-f "$path/regions") { |
97 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
97 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
98 | exit 1 unless $FORCE; |
98 | exit 1 unless $FORCE; |
99 | } |
99 | } |
100 | |
100 | |
101 | system $RSYNC, "-a", "--chmod=u=rwX,go=rX", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
101 | system $RSYNC, "-av", "--chmod=u=rwX,go=rX", |
|
|
102 | "$path/.", "$DATADIR/maps/.", |
|
|
103 | "--exclude", "CVS", "--exclude", "/world-precomposed", |
|
|
104 | "--delete", "--delete-excluded" |
102 | and die "map installation failed.\n"; |
105 | and die "map installation failed.\n"; |
103 | |
106 | |
104 | print "maps installed successfully.\n"; |
107 | print "maps installed successfully.\n"; |
105 | } |
108 | } |
106 | |
109 | |