chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] (no subject)


From: Timo Myyra
Subject: [Chicken-hackers] (no subject)
Date: Wed, 20 Jul 2016 09:06:27 +0300 (EEST)

>From 2696fbf685d271a2d3c3001fef8f5c894cc05a66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Myyr=C3=A4?= <address@hidden>
Date: Wed, 20 Jul 2016 08:31:01 +0300
Subject: [PATCH 1/1] rewrite chicken manuals to use mdoc(7)

This makes the mdoc(7) format the default on all platforms.
If old man(7) format is required the mdoc(7) pages can be converted to
man format and `MAN=.man' option can be set in platform specific
makefile to copy those files as manual pages.
---
 chicken-bug.1          |  61 --------
 chicken-bug.mdoc       |  82 +++++++++++
 chicken-install.1      |  72 ----------
 chicken-install.mdoc   | 187 ++++++++++++++++++++++++
 chicken-profile.1      |  61 --------
 chicken-profile.mdoc   |  91 ++++++++++++
 chicken-status.1       |  61 --------
 chicken-status.mdoc    | 100 +++++++++++++
 chicken-uninstall.1    |  70 ---------
 chicken-uninstall.mdoc | 106 ++++++++++++++
 chicken.1              |  67 ---------
 chicken.mdoc           | 268 +++++++++++++++++++++++++++++++++++
 csc.1                  |  58 --------
 csc.mdoc               | 378 +++++++++++++++++++++++++++++++++++++++++++++++++
 csi.1                  |  78 ----------
 csi.mdoc               | 147 +++++++++++++++++++
 defaults.make          |   1 +
 feathers.1             |  78 ----------
 feathers.mdoc          |  94 ++++++++++++
 rules.make             |   6 +-
 20 files changed, 1457 insertions(+), 609 deletions(-)
 delete mode 100644 chicken-bug.1
 create mode 100644 chicken-bug.mdoc
 delete mode 100644 chicken-install.1
 create mode 100644 chicken-install.mdoc
 delete mode 100644 chicken-profile.1
 create mode 100644 chicken-profile.mdoc
 delete mode 100644 chicken-status.1
 create mode 100644 chicken-status.mdoc
 delete mode 100644 chicken-uninstall.1
 create mode 100644 chicken-uninstall.mdoc
 delete mode 100644 chicken.1
 create mode 100644 chicken.mdoc
 delete mode 100644 csc.1
 create mode 100644 csc.mdoc
 delete mode 100644 csi.1
 create mode 100644 csi.mdoc
 delete mode 100644 feathers.1
 create mode 100644 feathers.mdoc

diff --git a/chicken-bug.1 b/chicken-bug.1
deleted file mode 100644
index 6e93170..0000000
--- a/chicken-bug.1
+++ /dev/null
@@ -1,61 +0,0 @@
-.\" dummy line
-.TH CHICKEN-BUG 1 "19 Sep 2001"
-
-.SH NAME
-
-chicken-bug \- generates a bug report from user input
-
-.SH SYNOPSIS
-
-.B chicken-bug
-[
-.I filename
-|
-.I OPTION ...
-]
-
-.SH OPTIONS
-
-.TP
-.B \-help
-Show usage information.
-
-.TP
-.B \-to-stdout
-Write bug report to standard output instead of writing it to a file.
-
-.TP
-.B \-
-Read user input from standard input, even if files are given on the command 
line.
-
-.SH DESCRIPTION
-
-.I chicken-bug
-generates a bug report file that collects user-input, optional
-files and system information obtained from the installed CHICKEN
-executables and libraries. Non-option arguments given on the command line
-are inserted into the bug report. If no option is given, or if 
-.B \-
-has been passed on the command line, then a description of the problem
-is read from standard input, until EOF (CTRL-D) or a line consisting only
-of "." (period) is read.
-
-The bug report will be written to a file in the current directory,
-which should be sent to CHICKEN maintainers as it contains various
-useful bits of information that make it easier to classify the 
-problem described.
-
-Bug reports should be as detailed as possible. It is also very helpful
-to include code that reproduces the problem. The more detailed the input
-and the more thorough the description is, the easier you make it for
-the CHICKEN developers to help you.
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-
-.SH AUTHOR
-The CHICKEN Team.
-
-.SH SEE ALSO
-.BR chicken(1)
diff --git a/chicken-bug.mdoc b/chicken-bug.mdoc
new file mode 100644
index 0000000..95ef3cd
--- /dev/null
+++ b/chicken-bug.mdoc
@@ -0,0 +1,82 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN-BUG 1
+.Os
+.Sh NAME
+.Nm chicken-bug
+.Nd generate bug report from user input.
+.Sh SYNOPSIS
+.Nm
+.Op Ar FILENAME \(ba OPTION ...
+.Sh DESCRIPTION
+.Nm
+generates a bug report file that collects user-input, optional
+files and system information obtained from the installed CHICKEN
+executables and libraries. Non-option arguments given on the command line
+are inserted into the bug report. If no option is given, or if
+.Sq \-
+has been passed on the command line, then a description of the problem
+is read from standard input, until EOF
+.Pq CTRL-D
+or a line consisting only
+of
+.Sq \&.
+.Pq period
+is read.
+.Pp
+The bug report will be written to a file in the current directory,
+which should be sent to CHICKEN maintainers as it contains various
+useful bits of information that make it easier to classify the
+problem described.
+.Pp
+Bug reports should be as detailed as possible. It is also very helpful
+to include code that reproduces the problem. The more detailed the input
+and the more thorough the description is, the easier you make it for
+the CHICKEN developers to help you.
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl h Ns , Fl help
+show usage and exit
+.It Fl to-stdout
+write bug report to standard output
+.It Fl
+read description from standard input
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden
diff --git a/chicken-install.1 b/chicken-install.1
deleted file mode 100644
index 359e540..0000000
--- a/chicken-install.1
+++ /dev/null
@@ -1,72 +0,0 @@
-.\" dummy line
-.TH CHICKEN-INSTALL 1 "13 Aug 2008"
-
-.SH NAME
-
-chicken-install \- download and install extension libraries for CHICKEN Scheme
-
-.SH SYNOPSIS
-
-chicken-install [OPTION | EXTENSION[:VERSION]] ...
-
-.SH DESCRIPTION
-
-.I chicken\-install
-is a program that downloads, compiles and installs a prepackaged
-extension library from sources. If no extension name is given on the
-command-line, then any existing 
-.B setup
-scripts in the current
-directory will be executed in some unspecified order.
-
-.SH OPTIONS
-
-Enter
-.B chicken-install\ \-help
-for a list of supported command-line options.
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_PREFIX
-The installation prefix where CHICKEN Scheme and its support files and
-libraries are located. Defaults to the installation time prefix given
-when configuring the system.
-
-.TP
-.B CHICKEN_INSTALL_PREFIX
-An alternative installation prefix that will be prepended to extension
-installation paths if specified. 
-
-.TP
-.B CHICKEN_REPOSITORY
-The path where extension libraries are installed. Defaults to the 
package-library
-path selected during configuration (usually
-.B $prefix/lib/chicken/<binary\-version>
-)
-
-.TP
-.B SUDO
-The command to execute when using \-s flag in command. If not provided, 
defaults to the sudo(1).
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHORS
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken-uninstall(1)
-.BR chicken-status(1)
-.BR chicken(1)
-.BR csc(1)
-.BR chicken-bug(1)
diff --git a/chicken-install.mdoc b/chicken-install.mdoc
new file mode 100644
index 0000000..eba97ed
--- /dev/null
+++ b/chicken-install.mdoc
@@ -0,0 +1,187 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN-INSTALL 1
+.Os
+.Sh NAME
+.Nm chicken-install
+.Nd download and install extension libraries for CHICKEN Scheme.
+.Sh SYNOPSIS
+.Nm
+.Op Ar OPTION | EXTENSION[:VERSION]
+.Op Ar ...
+.Sh DESCRIPTION
+.Nm
+downloads, compiles and installs a prepackaged extension library from sources.
+If no extension name is given on the command line, then any existing
+.Em setup
+scripts in the current directory will be executed in unspecified order.
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl h Ns , Fl help
+show usage and exit
+.It Fl version
+show version and exit
+.It Fl force
+don't ask, install even if versions don't match
+.It Fl k Ns , Fl keep
+keep temporary files
+.It Fl x, Fl keep-installed
+install only if not already installed
+.It Fl reinstall
+reinstall all currently installed extensions
+.It Fl l Ar location Ns , Fl location Ar location
+install from given
+.Ar location
+instead of default
+.It Fl t Ar transport Ns , Fl transport Ar transport
+use given transport instead of default
+.It Fl proxy Ar host[:port]
+download via HTTP
+.Ar proxy .
+.It Fl s Ns , Fl sudo
+use external program to elevate privileges for filesystem operations.
+The program defaults to
+.Xr sudo 8
+but can be overwritten with
+.Ev SUDO
+environment variable.
+.It Fl r Ns , Fl retrieve
+only retrieve egg into current directory, don't install
+.It Fl n Ns , Fl no-install
+do not install, just build
+.Po implies Sq Fl keep
+.Pc .
+.It Fl p Ar prefix Ns , Fl prefix Ar prefix
+change installation prefix to
+.Ar prefix .
+.It Fl list
+list extensions available over selected transport and location
+.It Fl host
+when cross-compiling, compile extension only for host
+.It Fl target
+when cross-compiling, compile extension only for target
+.It Fl test
+run included test-cases, if available
+.It Fl username Ar user
+set username for transports that require this
+.It Fl password Ar pass
+set password for transports that require this
+.It Fl i Ar directory Ns , Fl init Ar directory
+initialize empty alternative repository
+.It Fl u Ns , Fl update-db
+update export database
+.It Fl repository
+print path used for egg installation
+.It Fl deploy
+build extensions for deployment
+.It Fl trunk
+build trunk instead of tagged version
+.Pq only local
+.It Fl D Ns Ar feature Ns , Fl feature Ar feature
+features to pass to sub-invocations of
+.Sq csc
+.It Fl debug
+enable full display of error message information
+.It Fl keep-going
+continue installation even if dependency fails
+.It Fl scan Ar directory
+scan local
+.Ar directory
+for highest available egg versions
+.It Fl override Ar filename
+override versions for installed eggs with information from
+.Ar filename .
+.It Fl csi Ar filename
+use given
+.Ar filename
+for invocations of
+.Dq csi
+.It Fl show-depends
+display a list of egg dependencies for the given
+.No egg Ns Pq s .
+.It Fl show-foreign-depends
+display a list of foreign dependencies for the given
+.No egg Ns Pq s .
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_INSTALL_PREFIX
+.It Ev CHICKEN_PREFIX
+The installation prefix where CHICKEN Scheme and its support files and
+libraries are located. Defaults to the installation time prefix given
+when configuring the system.
+.It Ev CHICKEN_INSTALL_PREFIX
+An alternative installation prefix that will be prepended to extension
+installation paths if specified.
+.It Ev CHICKEN_REPOSITORY
+The path where extension libraries are installed. Defaults to the 
package-library
+path selected during configuration
+.Pq usually $prefix/lib/chicken/<binary-version>
+.It Ev SUDO
+The command to execute when using
+.Fl s
+flag in command. If not provided, defaults to the
+.Xr sudo 1 .
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh EXAMPLES
+Install
+.Sq regex
+egg as root user:
+.Pp
+.Dl # chicken-install regex
+.Pp
+Install an egg as an normal user but using
+.Xr sudo 8 :
+.Pp
+.Dl $ chicken-install -s regex
+.Pp
+Install an egg as an normal user but elevating privileges with different 
program, such as OpenBSD
+.Xr doas 1 :
+.Pp
+.Dl $ SUDO=/usr/bin/doas chicken-install -s regex
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr chicken-status 1 ,
+.Xr chicken-uninstall 1 ,
+.Xr csc 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/chicken-profile.1 b/chicken-profile.1
deleted file mode 100644
index fcfb15d..0000000
--- a/chicken-profile.1
+++ /dev/null
@@ -1,61 +0,0 @@
-.\" dummy line
-.TH CHICKEN-PROFILE 1 "19 Sep 2001"
-
-.SH NAME
-
-chicken-profile \- generate a report from profile-information 
-
-.SH SYNOPSIS
-
-.B chicken-profile
-[
-.I filename
-|
-.I option ...
-]
-
-.SH OPTIONS
-
-.TP
-.B \-sort\-by\-calls
-Sort output by call frequency.
-
-.TP
-.B \-sort\-by\-time
-Sort output by procedure execution time.
-
-.TP
-.B \-sort\-by\-avg
-Sort output by average procedure execution time.
-
-.TP
-.B \-sort\-by\-name
-Sort output alphabetically by procedure name.
-
-.TP
-.B \-no\-unused
-Remove procedures that are never called.
-
-.TP
-.B \-help
-Show usage information.
-
-
-.SH DESCRIPTION
-
-.I chicken\-profile reads in profiling information generated by CHICKEN Scheme
-programs compiled with the 
-.B \-profile
-option, and generates a table listing function names and their execution times.
-
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-
-.SH AUTHORS
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken(1)
-.BR csc(1)
diff --git a/chicken-profile.mdoc b/chicken-profile.mdoc
new file mode 100644
index 0000000..842c817
--- /dev/null
+++ b/chicken-profile.mdoc
@@ -0,0 +1,91 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN-PROFILE 1
+.Os
+.Sh NAME
+.Nm chicken-profile
+.Nd generate a report from profile-information
+.Sh SYNOPSIS
+.Nm
+.Op Ar FILENAME \(ba OPTION ...
+.Sh DESCRIPTION
+.Nm
+reads in profiling information generated by CHICKEN
+Scheme programs compiled with the
+.Fl profile
+option, and generates a table listing function names
+and their execution times.
+.Ar FILENAME
+defaults to the
+.Sq PROFILE.<number> ,
+selecting the one with
+the highest modification time, in case multiple profiles exist.
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl decimals Ar DDD
+set number of decimals for seconds, average and percent columns
+.Po three digits, default: 333 Pc
+.It Fl help
+Show usage information.
+.It Fl no-unused
+Remove procedures that are never called.
+.It Fl release
+show release number and exit
+.It Fl sort-by-avg
+Sort output by average procedure execution time.
+.It Fl sort-by-calls
+Sort output by call frequency.
+.It Fl sort-by-name
+Sort output alpabetically by procedure name.
+.It Fl sort-by-time
+Sort output by procedure execution time.
+.It Fl top Ar N
+display only the top
+.Ar N
+entries
+.It Fl version
+show version and exit
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr csc 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/chicken-status.1 b/chicken-status.1
deleted file mode 100644
index 4650a99..0000000
--- a/chicken-status.1
+++ /dev/null
@@ -1,61 +0,0 @@
-.\" dummy line
-.TH CHICKEN-STATUS 1 "13 Aug 2008"
-
-.SH NAME
-
-chicken-status \- list installed extension libraries
-
-.SH SYNOPSIS
-
-chicken-status [OPTION | PATTERN] ...
-
-.SH DESCRIPTION
-
-.I chicken\-status
-lists installed extensions for the CHICKEN Scheme system matching the regular 
expression(s)
-.B PATTERN
-or all, if no pattern has been given.
-
-.SH OPTIONS
-
-Enter
-.B chicken-status\ \-help
-for a list of supported command-line options.
-
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_PREFIX
-The installation prefix where CHICKEN Scheme and its support files and
-libraries are located. Defaults to the installation time prefix given
-when configuring the system.
-
-.TP
-.B CHICKEN_REPOSITORY
-The path where extension libraries are installed. Defaults to the 
package-library
-path selected during configuration (usually
-.B $prefix/lib/chicken/<binary\-version>
-)
-
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHORS
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken-install(1)
-.BR chicken-uninstall(1)
-.BR chicken(1)
-.BR chicken-bug(1)
diff --git a/chicken-status.mdoc b/chicken-status.mdoc
new file mode 100644
index 0000000..5d89569
--- /dev/null
+++ b/chicken-status.mdoc
@@ -0,0 +1,100 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN-STATUS 1
+.Os
+.Sh NAME
+.Nm chicken-status
+.Nd list installed extension libraries
+.Sh SYNOPSIS
+.Nm
+.Op Ar OPTION \(ba PATTERN ...
+.Sh DESCRIPTION
+.Nm
+lists installed extensions for the CHICKEN Scheme system matching the regular
+.No expression Ns Pq s
+.Ar PATTERN
+or all, if no pattern has been given.
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl e, Fl eggs
+list installed eggs
+.It Fl exact
+treat
+.Ar PATTERN
+as exact match
+.Po not a pattern Pc
+.It Fl f Ns , Fl files
+list installed files
+.It Fl h, Fl help
+show usage and exit
+.It Fl host
+when cross-compiling, show status of host extensions only
+.It Fl list
+dump installed extensions and their versions in
+.Dq override
+format
+.It Fl target
+when cross-compiling, show status of target extensions only
+.It Fl version
+show version and exit
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_INSTALL_PREFIX
+.It Ev CHICKEN_PREFIX
+The installation prefix where CHICKEN Scheme and its support files and
+libraries are located. Defaults to the installation time prefix given
+when configuring the system.
+.It Ev CHICKEN_INSTALL_PREFIX
+An alternative installation prefix that will be prepended to extension
+installation paths if specified.
+.It Ev CHICKEN_REPOSITORY
+The path where extension libraries are installed. Defaults to the 
package-library
+path selected during configuration
+.Pq usually $prefix/lib/chicken/<binary-version>
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr chicken-install 1 ,
+.Xr chicken-uninstall 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/chicken-uninstall.1 b/chicken-uninstall.1
deleted file mode 100644
index 90b6f46..0000000
--- a/chicken-uninstall.1
+++ /dev/null
@@ -1,70 +0,0 @@
-.\" dummy line
-.TH CHICKEN-UNINSTALL 1 "13 Aug 2008"
-
-.SH NAME
-
-chicken-uninstall \- uninstall extension library
-
-.SH SYNOPSIS
-
-chicken-uninstall [OPTION | PATTERN] ...
-
-.SH DESCRIPTION
-
-.I chicken\-uninstall
-removes one or more already installed extension libraries for the CHICKEN
-Scheme system.
-.B PATTERN
-may be a regular expression naming multiple extensions or just
-an extension name.
-
-.SH OPTIONS
-
-Enter
-.B chicken-uninstall\ \-help
-for a list of supported command-line options.
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_PREFIX
-The installation prefix where CHICKEN Scheme and its support files and
-libraries are located. Defaults to the installation time prefix given
-when configuring the system.
-
-.TP
-.B CHICKEN_INSTALL_PREFIX
-An alternative installation prefix that will be prepended to extension
-installation paths if specified. 
-
-.TP
-.B CHICKEN_REPOSITORY
-The path where extension libraries are installed. Defaults to the 
package-library
-path selected during configuration (usually
-.B $prefix/lib/chicken/<binary\-version>
-)
-
-.TP
-.B SUDO
-The command to execute when using \-s flag in command. If not provided, 
defaults to the sudo(1).
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHORS
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken-install(1)
-.BR chicken-status(1)
-.BR chicken(1)
-.BR chicken-bug(1)
diff --git a/chicken-uninstall.mdoc b/chicken-uninstall.mdoc
new file mode 100644
index 0000000..f8814c1
--- /dev/null
+++ b/chicken-uninstall.mdoc
@@ -0,0 +1,106 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN-UNINSTALL 1
+.Os
+.Sh NAME
+.Nm chicken-uninstall
+.Nd uninstall extension library
+.Sh SYNOPSIS
+.Nm
+.Op Ar OPTION \(ba PATTERN ...
+.Sh DESCRIPTION
+.Nm
+removes one or more already installed extension
+libraries for the CHICKEN Scheme system.
+.Ar PATTERN
+may be a regular expression naming multiple extensions or just an extension 
name.
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl exact
+treat
+.Ar PATTERN
+as exact match
+.Po not a pattern Pc
+.It Fl force
+don't ask, delete whatever matches
+.It Fl h, Fl help
+show usage and exit
+.It Fl host
+when cross-compiling, uninstall host extensions only
+.It Fl s, Fl sudo
+use external program to elevate privileges for deleting files.
+The program defaults to
+.Xr sudo 8
+but can be overwritten with
+.Ev SUDO
+environment variable.
+.It Fl target
+when cross-compiling, uninstall target extensions only
+.It Fl version
+show version and exit
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_INSTALL_PREFIX
+.It Ev CHICKEN_PREFIX
+The installation prefix where CHICKEN Scheme and its support files and
+libraries are located. Defaults to the installation time prefix given
+when configuring the system.
+.It Ev CHICKEN_INSTALL_PREFIX
+An alternative installation prefix that will be prepended to extension
+installation paths if specified.
+.It Ev CHICKEN_REPOSITORY
+The path where extension libraries are installed. Defaults to the 
package-library
+path selected during configuration
+.Pq usually $prefix/lib/chicken/<binary-version>
+.It Ev SUDO
+The command to execute when using
+.Fl s
+flag in command. If not provided, defaults to the
+.Xr sudo 8 .
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr chicken-install 1 ,
+.Xr chicken-status 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/chicken.1 b/chicken.1
deleted file mode 100644
index 86a2e6e..0000000
--- a/chicken.1
+++ /dev/null
@@ -1,67 +0,0 @@
-.\" dummy line
-.TH CHICKEN 1 "10 Sep 2002"
-
-.SH NAME
-
-chicken \- A Scheme\-to\-C translator
-
-.SH SYNOPSIS
-
-.B chicken
-.I PATHNAME
-[
-.I OPTION ...
-]
-
-.SH DESCRIPTION
-
-.I CHICKEN
-is a compiler and interpreter for the programming language
-.I Scheme
-supporting most of the features as described in the
-.I Revised^5 Report on
-.I the Algorithmic Language Scheme
-\.
-The
-.B chicken
-program is the basic Scheme-to-C translator used in this system.
-For a more convenient interface, see the manual page for csc(1).
-
-.SH OPTIONS
-
-Enter
-.B chicken\ \-help
-for a list of supported command-line options.
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_PREFIX
-Is used as a prefix directory for support files, include-files and libraries.
-
-.TP
-.B CHICKEN_INCLUDE_PATH
-Contains one or more pathnames where the compiler should additionally look for
-include-files, separated by
-.B \;
-characters.
-
-.TP
-.B CHICKEN_OPTIONS
-Holds a string of default compiler options that should apply to every 
invocation of
-.B chicken
-\.
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH AUTHORS
-
-The CHICKEN Team.
-
-.SH SEE ALSO
-
-.BR csc(1)
-.BR chicken-bug(1)
diff --git a/chicken.mdoc b/chicken.mdoc
new file mode 100644
index 0000000..7dea200
--- /dev/null
+++ b/chicken.mdoc
@@ -0,0 +1,268 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CHICKEN 1
+.Os
+.Sh NAME
+.Nm chicken
+.Nd A Scheme-to-C translator
+.Sh SYNOPSIS
+.Nm
+.Op Ar FILENAME \(ba OPTION ...
+.Sh DESCRIPTION
+.Nm
+is a compiler and interpreter for the programming language Scheme
+supporting most of the features as described in the
+Revised^5 Report on the Algorithmic Language Scheme.
+The
+.Nm
+program is the basic Scheme-to-C translator used in this system.
+For a more convenient interface, see
+.Xr csc 1 .
+.Pp
+.Ar FILENAME
+should be a complete source file name with extension, or
+.Dq -
+for standard input.
+.Ar OPTION
+may be one of the following:
+.Pp
+General options:
+.Bl -tag -width Ds
+.It Fl help
+display usage and exit
+.It Fl version
+display compiler version and exit
+.It Fl release
+print release number and exit
+.It Fl verbose
+display information on compilation progress
+.El
+.Pp
+File and pathname options:
+.Bl -tag -width Ds
+.It Fl output-file Ar FILENAME
+specifies output-filename, default is
+.Dq out.c .
+.It Fl include-path Ar PATHNAME
+specifies alternative path for included files
+.It Fl to-stdout
+write compiled file to stdout instead of file
+.El
+.Pp
+Language options:
+.Bl -tag -width Ds
+.It Fl feature Ar SYMBOL
+register feature identifier
+It Fl no-feature Ar SYMBOL
+disable built-in feature identifier
+.El
+.Pp
+Syntax related options:
+.Bl -tag -width Ds
+.It Fl case-insensitive
+don't preserve case of read symbols
+.It Fl keyword-style Ar STYLE
+allow alternative keyword syntax
+.Po prefix, suffix or none Pc
+.It Fl no-parentheses-synonyms
+disables list delimiter synonyms
+.It Fl no-symbol-escape
+disables support for escaped symbols
+.It Fl r5rs-syntax
+disables the CHICKEN extensions to R5RS syntax
+.It Fl compile-syntax
+macros are made available at run-time
+.It Fl emit-import-library Ar MODULE
+write compile-time module information into separate file
+.It Fl emit-all-import-libraries
+emit import-libraries for all defined modules
+.It Fl no-module-registration
+do not generate module registration code
+It Fl no-compiler-syntax
+disable expansion of compiler-macros
+.It Fl module
+wrap compiled code into implicit module
+.El
+.Pp
+Translation options:
+.Bl -tag -width Ds
+.It Fl explicit-use
+do not use units
+.Sq library
+and
+.Sq eval
+by default
+.It Fl check-syntax
+stop compilation after macro-expansion
+.It Fl analyze-only
+stop compilation after first analysis pass
+.El
+.Pp
+Debugging options:
+.Bl -tag -width Ds
+.It Fl no-warnings
+disable warnings
+.It Fl debug-level Ar NUMBER
+set level of available debugging information
+.It Fl no-trace
+disable tracing information
+.It Fl profile
+executable emits profiling information
+.It Fl profile-name Ar FILENAME
+name of the generated profile information file
+.It Fl accumulate-profile
+executable emits profiling information in append mode
+.It Fl no-lambda-info
+omit additional procedure-information
+.It Fl types Ar FILENAME
+load additional type database
+.It Fl emit-type-file Ar FILENAME
+write type-declaration information into file
+.El
+.Pp
+Optimization options:
+.Bl -tag -width Ds
+.It Fl optimize-level Ar NUMBER
+enable certain sets of optimization options
+.It Fl optimize-leaf-routines
+enable leaf routine optimization
+.It Fl no-usual-integrations
+standard procedures may be redefined
+.It Fl unsafe
+disable all safety checks
+.It Fl local
+assume globals are only modified in current file
+.It Fl block
+enable block-compilation
+.It Fl disable-interrupts
+disable interrupts in compiled code
+.It Fl fixnum-arithmetic
+assume all numbers are fixnums
+.It Fl disable-stack-overflow-checks
+disables detection of stack-overflows
+.It Fl inline
+enable inlining
+.It Fl inline-limit Ar LIMIT
+set inlining threshold
+.It Fl inline-global
+enable cross-module inlining
+.It Fl specialize
+perform type-based specialization of primitive calls
+.It Fl emit-inline-file Ar FILENAME
+ generate file with globally inlinable procedures
+.Po implies Fl inline Fl local Pc
+.It Fl consult-inline-file Ar FILENAME
+explicitly load inline file
+.It Fl no-argc-checks
+disable argument count checks
+.It Fl no-bound-checks
+disable bound variable checks
+.It Fl no-procedure-checks
+disable procedure call checks
+.It Fl no-procedure-checks-for-usual-bindings
+disable procedure call checks only for usual bindings
+.It Fl no-procedure-checks-for-toplevel-bindings
+disable procedure call checks for toplevel bindings
+.It Fl strict-types
+assume variable do not change their type
+.It Fl clustering
+combine groups of local procedures into dispatch loop
+.It Fl lfa2
+perform additional lightweight flow-analysis pass
+.El
+.Pp
+Configuration options:
+.Bl -tag -width Ds
+.It Fl unit Ar NAME
+compile file as a library unit
+.It Fl uses Ar NAME
+declare library unit as used.
+.It Fl heap-size Ar NUMBER
+specifies heap-size of compiled executable
+.It Fl nursery Ar NUMBER Fl stack-size Ar NUMBER
+specifies nursery size of compiled executable
+.It Fl extend Ar FILENAME
+load file before compilation commences
+.It Fl prelude Ar EXPRESSION
+add expression to front of source file
+.It Fl postlude Ar EXPRESSION
+add expression to end of source file
+.It Fl prologue Ar FILENAME
+include file before main source file
+.It Fl epilogue Ar FILENAME
+include file after main source file
+.It Fl dynamic
+compile as dynamically loadable code
+.It Fl require-extension Ar NAME
+require and import extension NAME
+.El
+.Pp
+Obscure options:
+.Bl -tag -width Ds
+.It Fl debug Ar MODES
+display debugging output for the given modes
+.It Fl raw
+do not generate implicit init- and exit code
+.It Fl emit-external-prototypes-first
+emit prototypes for callbacks before foreign declarations
+.It Fl ignore-repository
+do not refer to repository for extensions
+.It Fl setup-mode
+prefer the current directory when locating extensions
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_INSTALL_PREFIX
+.It Ev CHICKEN_PREFIX
+Is used as a prefix directory for support files, include-files and libraries.
+.It Ev CHICKEN_INCLUDE_PATH
+Contains one or more pathnames where the compiler should additionally look for
+include-files, separated by \; characters.
+.It Ev CHICKEN_OPTIONS
+Holds a string of default compiler options that should apply to every 
invocation of
+.Nm .
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr chicken-install 1 ,
+.Xr chicken-uninstall 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/csc.1 b/csc.1
deleted file mode 100644
index 416321e..0000000
--- a/csc.1
+++ /dev/null
@@ -1,58 +0,0 @@
-.\" dummy line
-.TH CSC 1 "19 Sep 2001"
-
-.SH NAME
-
-csc \- driver program for the CHICKEN Scheme compiler
-
-.SH SYNOPSIS
-
-.B csc
-[
-.I filename
-|
-.I option ...
-]
-
-.SH DESCRIPTION
-
-.I csc
-is a program that invokes the
-.I CHICKEN
-compiler and the host systems C compiler to generate
-an executable from a Scheme source file or C files generated by 
-.I CHICKEN
-For a list of options enter
-.B csc\ \-help
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CSC_OPTIONS
-Can hold default options that should be passed to every invocation of
-.B csc
-
-.TP
-.B CHICKEN_PREFIX
-An alternative installation prefix, where the Scheme-to-C translator 
-and any support files and libraries are located. Defaults to the installation
-time prefix given when configuring the system.
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHOR
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken(1)
-.BR chicken-bug(1)
diff --git a/csc.mdoc b/csc.mdoc
new file mode 100644
index 0000000..fa3a0e6
--- /dev/null
+++ b/csc.mdoc
@@ -0,0 +1,378 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CSC 1
+.Os
+.Sh NAME
+.Nm csc
+.Nd driver program for the CHICKEN Scheme compiler
+.Sh SYNOPSIS
+.Nm
+.Op Ar FILENAME \(ba OPTION ...
+.Sh DESCRIPTION
+.Nm
+is a program that invokes the CHICKEN compiler and the host systems C compiler 
to generate
+an executable from a Scheme source file or C files generated by CHICKEN.
+.Pp
+.Ar FILENAME
+is a Scheme source file name with optional extension or a C/C++/Objective-C 
source,
+object or library file name with extension.
+.Ar OPTION
+may be one of the following:
+.Pp
+General options:
+.Bl -tag -width Ds
+.It Fl h, Fl help
+display usage text and exit
+.It Fl v, Fl verbose
+show compiler notes and tool-invocations
+.It Fl vv
+display information about translation progress
+.It Fl vvv
+display information about all compilation stages
+.It Fl version
+display Scheme compiler version and exit
+.It Fl release
+display release number and exit
+.El
+.Pp
+File and pathname options:
+.Bl -tag -width Ds
+.It Fl o Ar FILENAME, Fl output-file Ar FILENAME
+specifies target executable name
+.It Fl I Ar PATHNAME, Fl include-path Ar PATHNAME
+specifies alternative path for included files
+.It Fl to-stdout
+write compiler to stdout
+.Po implies -t Pc
+.It Fl s, Fl shared, Fl dynamic
+generate dynamically loadable shared object file
+.El
+.Pp
+Language options:
+.Bl -tag -width Ds
+.It Fl D, Fl D Ar SYMBOL, Fl feature Ar SYMBOL
+register feature identifier
+.It Fl no-feature Ar SYMBOL
+disable builtin feature identifier
+.It Fl c++
+compile via a C++ source file
+.Pq .cpp
+.It Fl objc
+compile via Objective-C source file
+.Pq \&.m
+.El
+.Pp
+Syntax related options:
+.Bl -tag -width Ds
+.It Fl i, Fl case-insensitive
+don't preserve case of read symbols
+.It Fl K, Fl keyword-style Ar STYLE
+enable alternative keyword-syntax
+.Po prefix, suffix or none Pc
+.It Fl no-parentheses-synonyms
+disables list delimiter synonyms
+.It Fl no-symbol-escape
+disables support for escaped symbols
+.It Fl r5rs-syntax
+disables the CHICKEN extensions to R5RS syntax
+.It Fl compile-syntax
+macros are made available at run-time
+.It Fl j Ar MODULE, Fl emit-import-library Ar MODULE
+write compile-time module information into separate file
+.It Fl J, Fl emit-all-import-libraries
+emit import-libraries for all defined modules
+.It Fl no-module-registration
+do not generate module registration code
+.It Fl no-compiler-syntax
+disable expansion of compiler-macros
+.It Fl M, Fl module
+wrap compiled code into implicit module
+.El
+.Pp
+Translation options:
+.Bl -tag -width Ds
+.It Fl x, Fl explicit-use
+do not use units
+.Sq library
+and
+.Sq eval
+by default
+.It Fl P, Fl check-syntax
+stop compilation after macro-expansion
+.It Fl A, Fl analyze-only
+stop compilation after first analysis pass
+.El
+.Pp
+Debugging options:
+.Bl -tag -width Ds
+.It Fl w, Fl no-warnings
+disable warnings
+.It Fl d0, Fl d1, Fl d2, Fl debug-level Ar NUMBER
+set level of available debugging information
+.It Fl no-trace
+disable rudimentary debugging information
+.It Fl profile
+executable emits profiling information
+.It Fl accumulate-profile
+executable emits profiling information in append mode
+.It Fl profile-name Ar FILENAME
+name of the generated profile information file
+.It Fl types Ar FILENAME
+load additional type database
+.El
+.Pp
+Optimization options:
+.Bl -tag -width Ds
+.It Fl O, Fl O0, Fl O1, Fl O2, Fl O3, Fl O4, Fl O5, Fl optimize-level Ar NUMBER
+enable certain sets of optimization options
+.It Fl optimize-leaf-routines
+enable leaf routine optimization
+.It Fl no-usual-integrations
+standard procedures may be redefined
+.It Fl u, Fl unsafe
+disable safety checks
+.It Fl local
+assume globals are only modified in current file
+.It Fl b, Fl block
+enable block-compilation
+.It Fl disable-interrupts
+disable interrupts in compiled code
+.It Fl f, Fl fixnum-arithmetic
+assume all numbers are fixnums
+.It Fl disable-stack-overflow-checks
+disables detection of stack-overflows
+.It Fl inline
+enable inlining
+.It Fl inline-limit Ar LIMIT
+set inlining threshold
+.It Fl inline-global
+enable cross-module inlining
+.It Fl specialize
+perform type-based specialization of primitive calls
+.It Fl oi Ar FILENAME, Fl emit-inline-file Ar FILENAME
+generate file with globally inlinable procedures
+.Po implies Fl inline Fl local Pc
+.It Fl consult-inline-file Ar FILENAME
+explicitly load inline file
+.It Fl ot Ar FILENAME, Fl emit-type-file Ar FILENAME
+write type-declaration information into file
+.It Fl no-argc-checks
+disable argument count checks
+.It Fl no-bound-checks
+disable bound variable checks
+.It Fl no-procedure-checks
+disable procedure call checks
+.It Fl no-procedure-checks-for-usual-bindings
+disable procedure call checks only for usual bindings
+.It Fl no-procedure-checks-for-toplevel-bindings
+disable procedure call checks for toplevel bindings
+.It Fl strict-types
+assume variable do not change their type
+.It Fl clustering
+combine groups of local procedures into dispatch loop
+.It Fl lfa2
+perform additional lightweight flow-analysis pass
+.El
+.Pp
+Configuration options:
+.Bl -tag -width Ds
+.It Fl unit Ar NAME
+compile file as a library unit
+.It Fl uses Ar NAME
+declare library unit as used.
+.It Fl heap-size Ar NUMBER
+specifies heap-size of compiled executable
+.It Fl nursery Ar NUMBER Fl stack-size Ar NUMBER
+specifies nursery size of compiled executable
+.It Fl X Ar FILENAME, Fl extend Ar FILENAME
+load file before compilation commences
+.It Fl prelude Ar EXPRESSION
+add expression to beginning of source file
+.It Fl postlude Ar EXPRESSION
+add expression to end of source file
+.It Fl prologue Ar FILENAME
+include file before main source file
+.It Fl epilogue Ar FILENAME
+include file after main source file
+.It Fl e, Fl embedded
+compile as embedded
+.Po don't generate
+.Sq Fn main
+.Pc
+.It Fl gui
+compile as GUI application
+.It Fl R Ar NAME, Fl require-extension Ar NAME
+require extension and import in compiled code
+.It Fl dll, Fl library
+compile multiple units into a dynamic library
+.It Fl deploy
+deploy self-contained application bundle
+.El
+.Pp
+Options to other passes:
+.Bl -tag -width Ds
+.It Fl C Ar OPTION
+pass option to C compiler
+.It Fl L Ar OPTION
+pass option to linker
+.It Fl I Ns Ar <DIR>
+pass
+.Dq -I<DIR>
+to C compiler
+.Po add include path Pc
+.It Fl L Ns Ar <DIR>
+pass
+.Dq -L<DIR>
+to linker
+.Po add library path Pc
+.It Fl k
+keep intermediate files
+.It Fl c
+stop after compilation to object files
+.It Fl t
+stop after translation to C
+.It Fl cc Ar COMPILER
+select other C compiler than the default
+.It Fl cxx Ar COMPILER
+select other C++ compiler than the default
+.It Fl ld Ar COMPILER
+select other linker than the default
+.It Fl l Ns Ar LIBNAME
+link with given library
+.Po
+.Sq libLIBNAME
+on UNIX,
+.Sq LIBNAME.lib
+on Windows
+.Pc
+.It Fl static-libs
+link with static CHICKEN libraries
+.It Fl static
+generate completely statically linked executable
+.It Fl F Ns Ar <DIR>
+pass
+.Dq -F<DIR>
+to C compiler
+.Po add framework header path on Mac OS X Pc
+.It Fl framework Ar NAME
+passed to linker on Mac OS X
+.It Fl rpath Ar PATHNAME
+add directory to runtime library search path
+.It Fl Wl,...
+pass linker options
+.It Fl strip
+strip resulting binary
+.El
+.Pp
+Inquiry options:
+.Bl -tag -width Ds
+.It Fl home
+show home-directory
+.Po where support files go Pc
+.It Fl cflags
+show required C-compiler flags and exit
+.It Fl ldflags
+show required linker flags and exit
+.It Fl libs
+show required libraries and exit
+.It Fl cc-name
+show name of default C compiler used
+.It Fl cxx-name
+show name of default C++ compiler used
+.It Fl ld-name
+show name of default linker used
+.It Fl dry-run
+just show commands executed, don't run them
+.Po implies Sq Fl v
+.Pc .
+.El
+.Pp
+Obscure options:
+.Bl -tag -width Ds
+.It Fl debug Ar MODES
+display debugging output for the given modes
+.It Fl compiler Ar PATHNAME
+use other compiler than default
+.Sq chicken
+.It Fl raw
+do not generate implicit init- and exit code
+.It Fl emit-external-prototypes-first
+emit prototypes for callbacks before foreign declarations
+.It Fl ignore-repository
+do not refer to repository for extensions
+.It Fl keep-shadowed-macros
+do not remove shadowed macro
+.It Fl host
+compile for host when configured for cross-compiling
+.It Fl private-repository
+load extensions from executable path
+.It Fl deployed
+link support file to be used from a deployed executable
+.Po sets
+.Sq rpath
+accordingly, if supported on this platform
+.Pc
+.It Fl no-elevation
+embed manifest on Windows to supress elevation warnings for programs named
+.Sq install
+or
+.Sq setup
+.El
+.Pp
+Options can be collapsed if unambiguous, so
+.Dq -vkfO
+is the same as
+.Dq -v -k -fixnum-arithmetic -optimize .
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_PREFIX
+.It Ev CSC_OPTIONS
+Can hold default options that should be passed to every invocation of
+.Nm
+.It Ev CHICKEN_PREFIX
+The installation prefix where CHICKEN Scheme and its support files and
+libraries are located. Defaults to the installation time prefix given
+when configuring the system.
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/csi.1 b/csi.1
deleted file mode 100644
index e860a5c..0000000
--- a/csi.1
+++ /dev/null
@@ -1,78 +0,0 @@
--.\" dummy line
-.TH CSI 1 "20 May 2008"
-
-.SH NAME
-
-The
-.I CHICKEN
-Scheme interpreter
-
-.SH SYNOPSIS
-
-.B csi
-[
-.I pathname
-|
-.I option ...
-]
-
-.SH DESCRIPTION
-
-.I csi
-is an interpreter for the programming language
-.I Scheme
-supporting most of the features as described in the
-.I Revised^5 Report on
-.I the Algorithmic Language Scheme
-\.
-.I csi
-is implemented as a program compiled with the
-.B chicken
-compiler.
-
-.SH OPTIONS
-
-Enter
-.B csi \-help
-for a list of supported command-line options.
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_INCLUDE_PATH
-Contains one or more pathnames where the interpreter should also look for 
include-files, separated by 
-.B \;
-characters.
-
-.TP
-.B CHICKEN_PREFIX
-Is used as a prefix directory for support files, include-files and libraries.
-
-.TP
-.B CSI_OPTIONS
-When set to a string of command-line options, then the options are passed 
implicitly
-to every direct or indirect invocation of
-.I csi
-.br
-Note that runtime options of the form
-.B \-\:\.\.\.
-can not be passed using this method.
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHOR
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken(1)
-.BR chicken-bug(1)
diff --git a/csi.mdoc b/csi.mdoc
new file mode 100644
index 0000000..8ef4531
--- /dev/null
+++ b/csi.mdoc
@@ -0,0 +1,147 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt CSI 1
+.Os
+.Sh NAME
+.Nm csi
+.Nd The CHICKEN Scheme interpreter
+.Sh SYNOPSIS
+.Nm
+.Op Ar PATHNAME \(ba OPTION  ...
+.Sh DESCRIPTION
+.Nm
+is an interpreter for the programming language Scheme
+supporting most of the features as described in the
+Revised^5 Report on the Algorithmic Language Scheme.
+.Nm
+is implemented as a program compiled with the
+CHICKEN compiler.
+.Pp
+.Ar FILENAME
+is a Scheme source file name with optional extension.
+.Ar OPTION
+may be  one of the following:
+.Bl -tag -width Ds
+.It Fl h, Fl help. Fl -help
+display usage and exit
+.It Fl version
+display version and exit
+.It Fl release
+print release number and exit
+.It Fl i, Fl case-insensitive
+enable case-insensitive reading
+.It Fl e Ar EXPRESSION Ns , Fl eval Ar EXPRESSION
+evaluate given expression
+.It Fl p Ar EXPRESSION Ns , Fl print Ar EXPRESSION
+evaluate and print result(s)
+.It Fl P Ar EXPRESSION Ns , Fl pretty-print Ar EXPRESSION
+evaluate and print result(s) prettily
+.It Fl D Ar SYMBOL Ns , Fl feature Ar SYMBOL
+register feature identifier
+.It Fl no-feature Ar SYMBOL
+disable built-in feature identifier
+.It Fl q Ns , Fl quiet
+do not print banner
+.It Fl n Ns , Fl no-init
+do not load initialization file
+.Sq .csirc
+.It Fl b Ns , Fl batch
+terminate after command-line processing
+.It Fl w Ns , Fl no-warnings
+disable all warnings
+.It Fl K Ar STYLE Ns , Fl keyword-style Ar STYLE
+enable alternative keyword-syntax
+.Po prefix, suffix or none Pc
+.It Fl no-parentheses-synonyms
+disables list delimiter synonyms
+.It fl no-symbol-escape
+disables support for escaped symbols
+.It Fl r5rs-syntax
+disables the CHICKEN extensions to R5RS syntax
+.It Fl s Ar PATHNAME Ns , Fl script Ar PATHNAME
+use interpreter for shell scripts
+.It Fl ss Ar PATHNAME
+shell script with
+.Sq main
+procedure
+.It Fl sx Ar PATHNAME
+same as
+.Sq Fl s ,
+but print each expression as it is evaluated
+.It Fl setup-mode
+prefer the current directory when locating extensions
+.It Fl R Ar NAME Ns , Fl require-extension Ar NAME
+require extension and import before executing code
+.It Fl I Ar PATHNAME Ns , Fl include-path Ar PATHNAME
+add
+.Ar PATHNAME
+to include path
+.It Fl -
+ignore all following options
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_INSTALL_PREFIX
+.It Ev CHICKEN_INCLUDE_PATH
+Contains one or more pathnames where the interpreter should also look for 
include-files, separated by
+.Sq \&;
+characters.
+.It Ev CHICKEN_PREFIX
+The installation prefix where CHICKEN Scheme and its support files and
+libraries are located. Defaults to the installation time prefix given
+when configuring the system.
+.It Ev CSI_OPTIONS
+When set to a string of command-line options, then the options are passed 
implicitly
+to every direct or indirect invocation of
+.Nm
+.br
+Note that runtime options of the form
+.Sq \&-
+.Sq \&:
+.Sq \&.
+.Sq \&.\&.
+can not be passed using this method.
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr csc 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/defaults.make b/defaults.make
index 1b11241..c512fe7 100644
--- a/defaults.make
+++ b/defaults.make
@@ -223,6 +223,7 @@ A ?= .a
 # EXE ?=
 SO ?= .so
 ASM ?= .S
+MAN ?= .mdoc
 
 # special files
 
diff --git a/feathers.1 b/feathers.1
deleted file mode 100644
index 493fcf5..0000000
--- a/feathers.1
+++ /dev/null
@@ -1,78 +0,0 @@
-.\" dummy line
-.TH FEATHERS 1 "13 Aug 2008"
-
-.SH NAME
-
-feathers \- a simple source-level debugger for CHICKEN Scheme
-
-.SH SYNOPSIS
-
-feathers [OPTION ...] [PROGRAM ARGUMENTS ...]
-
-.SH DESCRIPTION
-
-.I feathers
-runs a program compiled with CHICKEN Scheme and allows basic source-level
-debugging like setting breakpoints, single-stepping and inspection of
-procedure arguments and global variables.
-
-The Scheme code must be compiled with debug-level 3 for debugging to be
-possible. Communication with the debugger takes place by exchanging
-messages over a TCP socket, the address and port being given by the
-environment variable
-.B CHICKEN_DEBUGGER
-which holds a connection address of the form
-.B <ADDRESS>:<PORT>
-.
-
-.SH OPTIONS
-
-.TP
-.B \-help
-Shows a list of supported command-line options.
-
-.TP
-.B \-n
-Do not load the default startup file
-.B \.feathers
-
-.TP
-.B \-port PORT
-Select a different TCP port than the default (9999)
-
-.TP
-.B \-dir DIRECTORY
-Add
-.B DIRECTORY
-to the list of searched paths for locating source files
-
-.SH ENVIRONMENT\ VARIABLES
-
-.TP
-.B CHICKEN_DEBUGGER
-Should hold a TCP server address and port where the debugger is listening.
-This variable is set by the debugger when a program is run from it, and
-defaults to
-.B localhost:9999
-
-.SH DOCUMENTATION
-
-More information can be found in the
-.I CHICKEN\ User's\ Manual
-
-.SH BUGS
-Submit bug reports by e-mail to
-.I address@hidden
-, preferrably using the
-.B chicken\-bug
-tool.
-
-.SH AUTHORS
-The CHICKEN Team
-
-.SH SEE ALSO
-.BR chicken-uninstall(1)
-.BR chicken-status(1)
-.BR chicken(1)
-.BR csc(1)
-.BR chicken-bug(1)
diff --git a/feathers.mdoc b/feathers.mdoc
new file mode 100644
index 0000000..76e00ac
--- /dev/null
+++ b/feathers.mdoc
@@ -0,0 +1,94 @@
+.\"  Copyright (c) 2007-2016, The CHICKEN Team
+.\"  All rights reserved.
+.\"
+.\"  Redistribution and use in source and binary forms, with or without
+.\"  modification, are permitted provided that the following conditions
+.\"  are met:
+.\"  1. Redistributions of source code must retain the above copyright
+.\"     notice, this list of conditions and the following disclaimer.
+.\"  2. Redistributions in binary form must reproduce the above copyright
+.\"     notice, this list of conditions and the following disclaimer in the
+.\"     documentation and/or other materials provided with the distribution.
+.\"  3. The name of the authors may not be used to endorse or promote products
+.\"     derived from this software without specific prior written permission.
+.\"
+.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+.\"  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\"  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\"  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\"  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\"  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\"  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\"  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\"  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\"  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd Mar 25, 2016
+.Dt FEATHERS 1
+.Os
+.Sh NAME
+.Nm feathers
+.Nd a simple source-level debugger for CHICKEN Scheme
+.Sh SYNOPSIS
+.Nm
+.Op Ar OPTION ...
+.Op Ar PROGRAM Ar ARGUMENTS ...
+.Sh DESCRIPTION
+.Nm
+runs a program compiled with CHICKEN Scheme and allows basic source-level
+debugging like setting breakpoints, single-stepping and inspection of
+procedure arguments and global variables.
+.Pp
+The Scheme code must be compiled with debug-level 3 for debugging to be
+possible. Communication with the debugger takes place by exchanging
+messages over a TCP socket, the address and port being given by the
+environment variable
+.Ev CHICKEN_DEBUGGER
+which holds a connection address of the form
+.Ao ADDRESS Ac Ns : Ao PORT Ac .
+.Pp
+The program accepts following arguments:
+.Bl -tag -width Ds
+.It Fl help
+Shows a list of supported command-line options.
+.It Fl n
+Do not load the default startup file
+.Pa .feathers
+.It Fl d
+TODO: Document this
+.It Fl dir Ar DIRECTORY
+Add
+.Ar DIRECTORY
+to the list of searched paths for locating source files
+.It Fl port Ar PORT
+Select a different TCP port than the default
+.Pq 9999
+.El
+.Sh ENVIRONMENT
+Following environment variables change the behaviour of
+.Nm
+.Bl -tag -width CHICKEN_DEBUGGER
+.It Ev CHICKEN_DEBUGGER
+Should hold a TCP server address and port where the debugger is listening.
+This variable is set by the debugger when a program is run from it, and
+defaults to localhost:9999
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr chicken 1 ,
+.Xr chicken-bug 1 ,
+.Xr csc 1 ,
+.Xr csi 1
+.Pp
+More information can be found in the
+.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
+.Sh AUTHORS
+.An The CHICKEN Team
+.Sh BUGS
+Submit bug reports by e-mail to
+.Mt address@hidden ,
+preferrably using the
+.Xr chicken-bug 1
+tool.
diff --git a/rules.make b/rules.make
index d61e5d4..2a4cf31 100644
--- a/rules.make
+++ b/rules.make
@@ -60,8 +60,8 @@ ALWAYS_STATIC_UTILITY_PROGRAM_OBJECTS_1 = \
 
 ## TODO: Shouldn't these manpages match their program names (ie CSI_PROGRAM 
etc)?
 MANPAGES = \
-       chicken.1 csc.1 csi.1 chicken-install.1 chicken-uninstall.1 \
-       chicken-status.1 chicken-profile.1 chicken-bug.1 feathers.1
+       chicken csc csi chicken-install chicken-uninstall \
+       chicken-status chicken-profile chicken-bug feathers
 
 # Not all programs built are installed(?) This is the master list that takes
 # care of which programs should actually be installed/uninstalled
@@ -417,7 +417,7 @@ install-other-files:
        $(MAKEDIR_COMMAND) $(MAKEDIR_COMMAND_OPTIONS) "$(DESTDIR)$(IDATADIR)"
        $(foreach obj, $(MANPAGES), \
                $(INSTALL_PROGRAM) $(INSTALL_PROGRAM_FILE_OPTIONS) \
-               $(SRCDIR)$(obj) "$(DESTDIR)$(IMAN1DIR)" $(NL))
+               $(SRCDIR)$(obj)$(MAN) "$(DESTDIR)$(IMAN1DIR)$(SEP)$(obj).1" 
$(NL))
        $(MAKEDIR_COMMAND) $(MAKEDIR_COMMAND_OPTIONS) 
"$(DESTDIR)$(IDOCDIR)$(SEP)manual"
        -$(INSTALL_PROGRAM) $(INSTALL_PROGRAM_FILE_OPTIONS) 
$(SRCDIR)manual-html$(SEP)* "$(DESTDIR)$(IDOCDIR)$(SEP)manual"
        $(INSTALL_PROGRAM) $(INSTALL_PROGRAM_FILE_OPTIONS) $(SRCDIR)README 
"$(DESTDIR)$(IDOCDIR)"
-- 
2.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]