1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-06 06:11:42 -07:00
emacs/mps/qa/test/script/options
Richard Tucker 7a1c9ce8f8 Adapt for perl 5 on nt
Copied from Perforce
 Change: 18436
 ServerID: perforce.ravenbrook.com
1997-07-11 16:58:56 +01:00

39 lines
683 B
Perl

#!/usr/local/perl
#
# global options for qa commands
#
# this file also has the job of detecting what platform
# we're on
#
# first to see where we are:
if ($ENV{"OS"} eq "Windows_NT") {
# it's NT, so find out what the processor is
# from a system variable
$platform_class = "nt_".$ENV{"PROCESSOR_ARCHITECTURE"};
if ($platform_class eq "nt_") {
$platform_class = "nt_dunno";
}
} else {
# it's unix by default
$platform_class = `class`;
chop($platform_class);
}
%qa_options = (
"v", "INTERFACE_VERSION",
"i", "MPS_INCLUDE_DIR",
"l", "MPS_LINK_OBJ",
"p", "PLATFORM"
);
%qa_flags = (
);
%qa_defaults = (
"INTERFACE_VERSION", "MO",
"PLATFORM", $platform_class
);