view interps/clc-intercal/CLC-INTERCAL-UI-Line-1.-94.-2/Makefile.PL @ 6558:4ad4b893c806

<b_jonas> learn links are one of the very few HTML renderers that don\'t try to store a full document tree with heavyweight objects for each node just in case javascript wants to modify it later, so it\'s the only engine that can render those HTMLs that are automatically converted from a PDF and put each letter to a separate element.
author HackBot
date Thu, 14 Jan 2016 11:54:35 +0000
parents 859f9b4339e6
children
line wrap: on
line source

#!/usr/bin/perl -w

eval 'exec perl -S $0 ${1+"$@"}'
    if 0;

# This script will create the Makefile to build and install a line-oriented
# user interface for CLC-INTERCAL

# This file is part of CLC-INTERCAL 1.-94.-2

# Copyright (c) 2008 Claudio Calvelli, all rights reserved.

# CLC-INTERCAL is copyrighted software. However, permission to use, modify,
# and distribute it is granted provided that the conditions set out in the
# licence agreement are met. See files README and COPYING in the distribution.

require 5.005;
use Config qw(%Config);
use ExtUtils::MakeMaker;
use strict;

use vars qw($VERSION $PERVERSION);
($VERSION) = ($PERVERSION = "CLC-INTERCAL/UI-Line Makefile.PL 1.-94.-2") =~ /\s(\S+)$/;

my @want_type = grep { /^type=/ } @ARGV;
@ARGV = grep { ! /^type=/ } @ARGV;

my $base = $ENV{CLC_INTERCAL_PATH}
	 ? "'$ENV{CLC_INTERCAL_PATH}/INTERCAL/"
	 : 'Language::INTERCAL::';
my $end = $ENV{CLC_INTERCAL_PATH}
	? ".pm'"
	: '';

for my $module (qw(Exporter InstallModule)) {
    eval "require $base$module$end";
    if ($@) {
	$@ =~ /can't locate/i and die "You don't appear to have CLC-INTERCAL installed:\n$@";
	die "Error loading the CLC-INTERCAL installer:\n$@";
    }
}

# can't load Term::ReadLine::Gnu directly...
my $ok = 0;
for my $inc (@INC) {
    -f "$inc/Term/ReadLine/Gnu.pm" or next;
    $ok = 1;
    last;
}
$ok or warn "Warning - this package requires Term::ReadLine::Gnu!\n";

$ENV{PERL_RL} = 'Gnu'; # doesn't work with any other ReadLine package

import Language::INTERCAL::InstallModule '1.-94.-2';

install Language::INTERCAL::InstallModule 'UI-Line', 0, {
	'Term::ReadLine' => 0,
};

1;