summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/Tk/MMtry.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2010-05-12 16:51:27 +0000
committerNorbert Preining <preining@logic.at>2010-05-12 16:51:27 +0000
commitb645030efc22e13c2498a1522083634ab91b2de1 (patch)
treec75c7a71998200d419af56eb755dac2f5115b585 /Master/tlpkg/tlperl/lib/Tk/MMtry.pm
parent44ccd4efc5352f9eb1099ba357708e7b5ff03b83 (diff)
move tlperl to tlperl.old
git-svn-id: svn://tug.org/texlive/trunk@18209 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Tk/MMtry.pm')
-rw-r--r--Master/tlpkg/tlperl/lib/Tk/MMtry.pm54
1 files changed, 0 insertions, 54 deletions
diff --git a/Master/tlpkg/tlperl/lib/Tk/MMtry.pm b/Master/tlpkg/tlperl/lib/Tk/MMtry.pm
deleted file mode 100644
index 3ef2f8868ab..00000000000
--- a/Master/tlpkg/tlperl/lib/Tk/MMtry.pm
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright (c) 1995-2003 Nick Ing-Simmons. All rights reserved.
-# This program is free software; you can redistribute it and/or
-# modify it under the same terms as Perl itself.
-package Tk::MMtry;
-use Config;
-require Exporter;
-
-use vars qw($VERSION @EXPORT);
-$VERSION = sprintf '4.%03d', q$Revision: #9 $ =~ /\D(\d+)\s*$/;
-
-use base qw(Exporter);
-@EXPORT = qw(try_compile try_run);
-use strict;
-use File::Basename;
-use File::Spec;
-
-my $stderr_too = ($^O eq 'MSWin32') ? '' : '2>&1';
-
-sub try_compile
-{
- my ($file,$inc,$lib) = @_;
- $inc = [] unless $inc;
- $lib = [] unless $lib;
- my $out = basename($file,'.c').$Config{'exe_ext'};
- warn "Test Compiling $file\n";
- my $msgs = `$Config{'cc'} -o $out $Config{'ccflags'} @$inc $file @$lib $stderr_too`;
- my $ok = ($? == 0);
-# warn $msgs if $msgs;
- unlink($out) if (-f $out);
- return $ok;
-}
-
-sub try_run
-{
- my ($file,$inc,$lib) = @_;
- $inc = [] unless $inc;
- $lib = [] unless $lib;
- my $out = basename($file,'.c').$Config{'exe_ext'};
- warn "Test Compile/Run $file\n";
- my $msgs = `$Config{'cc'} -o $out $Config{'ccflags'} @$inc $file @$lib $stderr_too`;
- my $ok = ($? == 0);
-# warn "$Config{'cc'} -o $out $Config{'ccflags'} @$inc $file @$lib:\n$msgs" if $msgs;
- if ($ok)
- {
- my $path = File::Spec->rel2abs($out);
- $msgs = `$path $stderr_too`;
- $ok = ($? == 0);
-# warn "$path:$msgs" if $msgs;
- }
- unlink($out) if (-f $out);
- return $ok;
-}
-
-1;