File: disableXS

package info (click to toggle)
libunicode-collate-perl 1.27-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,396 kB
  • sloc: perl: 28,241; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
use File::Copy qw();

if (-f "Collate.xs") {
    print STDERR "Disabling XS in sources...\n";

    die "***** Failed, sources could be inconsistent! *****\n"
     unless File::Copy::move('MANIFEST',	'MANIFEST.X')
	and File::Copy::move('MANIFEST.N',	'MANIFEST')
	and File::Copy::move('Collate.pm',	'Collate.pmX')
	and File::Copy::move('Collate.xs',	'Collate.xsX')
	and File::Copy::move('Collate.pmN',	'Collate.pm');
}