diff options
author | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
commit | f56e05005c751822074f0a22aa9a98d2eb189924 (patch) | |
tree | e28fc632241c9d248069d45dd9ab2a41fa64868f /contrib/perl5/h2pl/mkvars | |
parent | 344ddc14973a1519f100f54051dcb068069fe43c (diff) | |
download | FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.zip FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.tar.gz |
Perl is no longer in base. Long live the port!
Diffstat (limited to 'contrib/perl5/h2pl/mkvars')
-rw-r--r-- | contrib/perl5/h2pl/mkvars | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/contrib/perl5/h2pl/mkvars b/contrib/perl5/h2pl/mkvars deleted file mode 100644 index ffb0f0b..0000000 --- a/contrib/perl5/h2pl/mkvars +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/perl - -require 'sizeof.ph'; - -$LIB = '/usr/local/lib/perl'; - -foreach $include (@ARGV) { - printf STDERR "including %s\n", $include; - do $include; - warn "sourcing $include: $@\n" if ($@); - if (!open (INCLUDE,"$LIB/$include")) { - warn "can't open $LIB/$include: $!\n"; - next; - } - while (<INCLUDE>) { - chop; - if (/^\s*eval\s+'sub\s+(\w+)\s.*[^{]$/ || /^\s*sub\s+(\w+)\s.*[^{]$/) { - $var = $1; - $val = eval "&$var;"; - if ($@) { - warn "$@: $_"; - print <<EOT; -warn "\$$var isn't correctly set" if defined \$_main{'$var'}; -EOT - next; - } - ( $nval = sprintf ("%x",$val ) ) =~ tr/a-z/A-Z/; - printf "\$%s = 0x%s;\n", $var, $nval; - } - } -} |