File: disableXS

package info (click to toggle)
libunicode-collate-perl 1.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,492 kB
  • sloc: perl: 28,296; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
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');
}