-foreach $file (@cpfiles) {
- my $fs = "locale/$lang/$file";
- if (-e $fs) {
- my $fd = "$FEXHOME/$fs";
- mkdirp(dirname($fd));
- if (-f $fs) {
- $fd .= '_new' if -e $fd;
- if (copy($fs,$fd)) {
- chmod((stat $fs)[2],$fd);
- print "$fd written\n";
- }
- } else {
- if (-f $fd) {
- my $fds = $fd.'_save';
- my $fdn = $fd.'_new';
- system "rm -rf $fds $fdn";
- rename $fd,$fds;
- system "tar cf - $fs | (cd $FEXHOME; tar xf -)";
- rename $fd,$fdn;
- rename $fds,$fd;
- print "$fdn written\n";
+if ($FEXHOME !~ /fexdev/) {
+
+ foreach $file (@cpfiles) {
+ my $fs = "locale/$lang/$file";
+ if (-e $fs) {
+ my $fd = "$FEXHOME/$fs";
+ mkdirp(dirname($fd));
+ if (-f $fs) {
+ $fd .= '_new' if -e $fd;
+ if (copy($fs,$fd)) {
+ chmod((stat $fs)[2],$fd);
+ print "$fd written\n";
+ }