2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2011-12-29 13:13:05 +08:00
|
|
|
<!ENTITY slang-download-http " ">
|
2009-08-07 03:02:05 +08:00
|
|
|
<!ENTITY slang-download-ftp "ftp://space.mit.edu/pub/davis/slang/v2.2/slang-&slang-version;.tar.bz2">
|
2011-12-29 13:13:05 +08:00
|
|
|
<!ENTITY slang-md5sum "7fcfd447e378f07dd0c0bae671fe6487">
|
|
|
|
<!ENTITY slang-size "1.4 MB">
|
|
|
|
<!ENTITY slang-buildsize "9.4 MB">
|
|
|
|
<!ENTITY slang-time "0.4 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2005-08-06 12:12:57 +08:00
|
|
|
<sect1 id="slang" xreflabel="S-Lang-&slang-version;">
|
2005-05-02 00:06:26 +08:00
|
|
|
<?dbhtml filename="slang.html"?>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-08-06 12:12:57 +08:00
|
|
|
<title>S-Lang-&slang-version;</title>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<indexterm zone="slang">
|
2005-08-06 12:12:57 +08:00
|
|
|
<primary sortas="a-S-Lang">S-Lang</primary>
|
2005-05-02 00:06:26 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2005-08-06 12:12:57 +08:00
|
|
|
<title>Introduction to S-Lang</title>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2010-02-03 17:35:02 +08:00
|
|
|
<para><application>S-Lang</application> is an interpreted language that
|
|
|
|
maybe be embedded into an application to make the application extensible.
|
|
|
|
It provides facilities required by interactive applications such as
|
|
|
|
display/screen management, keyboard input and keymaps.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2011-12-29 13:13:05 +08:00
|
|
|
&lfs70_checked;
|
2009-08-07 03:02:05 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&slang-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&slang-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &slang-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &slang-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &slang-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &slang-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-08-06 12:12:57 +08:00
|
|
|
<bridgehead renderas="sect3">S-Lang Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-12-29 13:13:05 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="libpng"/>,
|
|
|
|
<xref linkend="pcre"/>, and
|
|
|
|
<ulink url="http://www.geocities.jp/kosako3/oniguruma/">Oniguruma</ulink>
|
|
|
|
</para>
|
2005-08-06 12:12:57 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/slang"/></para>
|
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
</sect2>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<sect2 role="installation">
|
2005-08-06 12:12:57 +08:00
|
|
|
<title>Installation of S-Lang</title>
|
2005-05-02 00:06:26 +08:00
|
|
|
|
2005-08-06 12:12:57 +08:00
|
|
|
<para>Install <application>S-Lang</application> by running the following
|
2005-05-02 00:06:26 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2011-12-29 13:13:05 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
2007-07-03 01:09:51 +08:00
|
|
|
make</userinput></screen>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2008-03-13 00:43:44 +08:00
|
|
|
<para>To test the results, issue: <command>make check</command>. Note that
|
|
|
|
this will also create a static version of the library which will then be
|
|
|
|
installed in the next step.</para>
|
2005-06-30 01:40:19 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2011-12-29 13:13:05 +08:00
|
|
|
<screen role='root'><userinput>
|
|
|
|
make install_doc_dir=/usr/share/doc/slang-&slang-version; \
|
|
|
|
SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh \
|
|
|
|
install-all &&
|
|
|
|
|
2007-04-19 04:14:52 +08:00
|
|
|
chmod -v 755 /usr/lib/libslang.so.&slang-version; \
|
|
|
|
/usr/lib/slang/v2/modules/*.so</userinput></screen>
|
2005-05-02 00:06:26 +08:00
|
|
|
</sect2>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-08-01 10:05:14 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2010-04-22 03:10:06 +08:00
|
|
|
|
2007-07-03 01:09:51 +08:00
|
|
|
<para><command>make install_doc_dir=/usr/share/doc/slang-&slang-version;
|
2008-03-13 00:43:44 +08:00
|
|
|
SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh install-all</command>:
|
|
|
|
This command installs the static library as well as
|
2007-07-03 01:09:51 +08:00
|
|
|
the dynamic shared version and related modules. It also changes the
|
2008-03-13 00:43:44 +08:00
|
|
|
documentation installation directories to a versioned directory.</para>
|
2005-08-06 12:12:57 +08:00
|
|
|
|
2007-07-03 01:09:51 +08:00
|
|
|
<para><option>--with-readline=gnu</option>: Use this parameter to use the
|
|
|
|
Gnu <application>Readline</application> parser instead of the
|
|
|
|
<application>S-Lang</application> internal version.</para>
|
2005-08-01 10:05:14 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<sect2 role="configuration">
|
2005-08-06 12:12:57 +08:00
|
|
|
<title>Configuring S-Lang</title>
|
|
|
|
|
|
|
|
<sect3 id="slang-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
<para><filename>~/.slshrc</filename> and
|
|
|
|
<filename>/etc/slsh.rc</filename></para>
|
|
|
|
|
|
|
|
<indexterm zone="slang slang-config">
|
|
|
|
<primary sortas="e-AA.slshrc">~/.slshrc</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="slang slang-config">
|
|
|
|
<primary sortas="e-etc-slsh">/etc/slsh.rc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</sect3>
|
2005-05-02 00:06:26 +08:00
|
|
|
|
|
|
|
</sect2>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2005-08-06 12:12:57 +08:00
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
<seglistitem>
|
2005-08-06 12:12:57 +08:00
|
|
|
<seg>slsh</seg>
|
2006-04-11 02:35:56 +08:00
|
|
|
<seg>libslang.{so,a} and numerous support modules</seg>
|
2007-07-03 01:09:51 +08:00
|
|
|
<seg>/usr/lib/slang, /usr/share/doc/slang-&slang-version;
|
|
|
|
and /usr/share/slsh</seg>
|
2005-05-02 00:06:26 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
2005-08-06 12:12:57 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="slsh">
|
|
|
|
<term><command>slsh</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a simple program for interpreting
|
|
|
|
<application>S-Lang</application> scripts. It supports dynamic loading
|
|
|
|
of <application>S-Lang</application> modules and includes a
|
|
|
|
<application>Readline</application> interface for interactive
|
|
|
|
use.</para>
|
|
|
|
<indexterm zone="slang slsh">
|
|
|
|
<primary sortas="b-slsh">slsh</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2005-05-02 00:06:26 +08:00
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|