disableXS
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use File::Copy qw(); |
| 4 | |
| 5 | if (-f "Collate.xs") { |
| 6 | print STDERR "Disabling XS in sources...\n"; |
| 7 | |
| 8 | die "***** Failed, sources could be inconsistent! *****\n" |
| 9 | unless File::Copy::move('MANIFEST', 'MANIFEST.X') |
| 10 | and File::Copy::move('MANIFEST.N', 'MANIFEST') |
| 11 | and File::Copy::move('Collate.pm', 'Collate.pmX') |
| 12 | and File::Copy::move('Collate.xs', 'Collate.xsX') |
| 13 | and File::Copy::move('Collate.pmN', 'Collate.pm'); |
| 14 | } |