Convert all documentation files to AsciiDoc and rename ccache.txt to manual.txt

This commit is contained in:
Joel Rosdahl 2010-04-28 20:44:33 +02:00
parent d0c58fe92b
commit 40af60caec
7 changed files with 133 additions and 104 deletions

4
.gitignore vendored
View File

@ -1,10 +1,12 @@
*.html
*.o
*.xml
*~
.deps
Makefile
NEWS.html
autom4te.cache
ccache
ccache-*.tar.*
ccache.1
ccache.html
ccache.xml

68
INSTALL
View File

@ -1,68 +0,0 @@
BUILDING CODE FROM A RELEASE ARCHIVE
====================================
PREREQUISITES
-------------
To build ccache, you need:
- A C compiler (for instance GCC)
It is also recommended that you have:
- zlib <http://www.zlib.net> (if you don't have zlib installed, ccache will
use a bundled copy)
INSTALLATION
------------
To compile and install ccache, run these commands:
./configure
make
make install
You may set the installation directory and other parameters by options to
"./configure". To see them, run "./configure --help".
There are two ways to use ccache. You can either prefix your compile commands
with "ccache" or you can create a symbolic link between ccache and the names of
your compilers. The first method is most convenient if you just want to try out
ccache or wish to use it for some specific projects. The second method is most
useful for when you wish to use ccache for all your compiles.
To install for usage by the first method just copy ccache to somewhere in your
path.
To install for the second method do something like this:
cp ccache /usr/local/bin/
ln -s ccache /usr/local/bin/gcc
ln -s ccache /usr/local/bin/g++
ln -s ccache /usr/local/bin/cc
ln -s ccache /usr/local/bin/c++
This will work as long as /usr/local/bin comes before the path to the compiler
(e.g. gcc, which is usually in /usr/bin). After installing you may wish to run
"which gcc" to make sure that the correct link is being used.
Note! Do not use hard links, use symbolic links. Hard links will cause
"interesting" problems.
BUILDING CODE FROM THE SOURCE CODE REPOSITORY
=============================================
In addition to the prerequisites mentioned above, you also need:
- asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
- autoconf (http://www.gnu.org/software/autoconf/)
To debug and run the performance test suite you'll also need:
- perl (http://www.perl.org/)
- python (http://www.python.org/)
Run "./autogen.sh" and then follow the steps mentioned under INSTALLATION
above.

72
INSTALL.txt Normal file
View File

@ -0,0 +1,72 @@
ccache installation
===================
Building code from a release archive
------------------------------------
Prerequisites
~~~~~~~~~~~~~
To build ccache, you need:
- A C compiler (for instance GCC)
It is also recommended that you have:
- zlib <http://www.zlib.net> (if you don't have zlib installed, ccache will
use a bundled copy)
Installation
~~~~~~~~~~~~
To compile and install ccache, run these commands:
./configure
make
make install
You may set the installation directory and other parameters by options to
``./configure''. To see them, run ``./configure --help''.
There are two ways to use ccache. You can either prefix your compilation
commands with ``ccache'' or you can create a symbolic link (named as your
compiler) to ccache. The first method is most convenient if you just want to
try out ccache or wish to use it for some specific projects. The second method
is most useful for when you wish to use ccache for all your compilations.
To install for usage by the first method just copy ccache to somewhere in your
path.
To install for the second method, do something like this:
cp ccache /usr/local/bin/
ln -s ccache /usr/local/bin/gcc
ln -s ccache /usr/local/bin/g++
ln -s ccache /usr/local/bin/cc
ln -s ccache /usr/local/bin/c++
And so forth. This will work as long as ``/usr/local/bin'' comes before the
path to the compiler (which is usually in ``/usr/bin''). After installing you
may wish to run ``which gcc'' to make sure that the correct link is being used.
NOTE: Do not use a hard link, use a symbolic link. A hard link will cause
``interesting'' problems.
Building code from the source code repository
---------------------------------------------
In addition to the prerequisites mentioned above, you also need:
- AsciiDoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
- Autoconf (http://www.gnu.org/software/autoconf/)
To debug and run the performance test suite you'll also need:
- Perl (http://www.perl.org/)
- Python (http://www.python.org/)
Run "./autogen.sh" and then follow the steps mentioned under "Installation"
above.

View File

@ -14,10 +14,6 @@ CPPFLAGS = @CPPFLAGS@ -I.
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
ASCIIDOC = asciidoc
XSLTPROC = xsltproc
MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl
libs = @LIBS@ -lm
sources = \
@ -32,29 +28,22 @@ headers = \
objs = $(all_sources:.c=.o)
files_to_clean = $(objs) *~ ccache$(EXEEXT) ccache.1
generated_docs = ccache.1 INSTALL.html manual.html NEWS.html README.html
files_to_clean = $(objs) ccache$(EXEEXT) *~
.PHONY: all
all: ccache$(EXEEXT)
.PHONY: docs
docs: ccache.1 ccache.html NEWS.html
docs: $(generated_docs)
ccache$(EXEEXT): $(objs)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs) $(libs)
ccache.xml: ccache.txt
$(ASCIIDOC) -d manpage -b docbook $<
ccache.html: ccache.txt
$(ASCIIDOC) -a toc -b xhtml11 $<
ccache.1: ccache.xml
ccache.1: manual.xml
$(XSLTPROC) --nonet $(MANPAGE_XSL) $<
NEWS.html: NEWS.txt
$(ASCIIDOC) -a toc -b xhtml11 $<
.PHONY: install
install: all
$(installcmd) -d $(DESTDIR)$(bindir)
@ -88,4 +77,10 @@ installcheck:
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
.txt.html:
$(ASCIIDOC) -a toc -b xhtml11 $<
.txt.xml: manual.txt
$(ASCIIDOC) -d manpage -b docbook $<
@include_dev_mk@

View File

@ -1,7 +1,8 @@
CCACHE
======
ccache README
=============
ABOUT
About
-----
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching
@ -13,13 +14,19 @@ Please see the manual page and documentation at http://ccache.samba.org for
more information.
INSTALLATION
Documentation
-------------
See the ccache(1) man page. It's also avaiable as manual.txt and manual.html.
Installation
------------
See the INSTALL file.
See INSTALL.txt or INSTALL.html.
WEB SITE
Web site
--------
The main ccache web site is here:
@ -27,7 +34,7 @@ The main ccache web site is here:
http://ccache.samba.org
MAILING LIST
Mailing list
------------
There is a mailing list for discussing usage and development of ccache:
@ -37,7 +44,7 @@ There is a mailing list for discussing usage and development of ccache:
Anyone is welcome to join.
BUG REPORTS
Bug reports
-----------
To submit a bug report or to search for existing reports, please visit this web
@ -46,7 +53,7 @@ page:
http://ccache.samba.org/bugs.html
SOURCE CODE REPOSITORY
Source code repository
----------------------
To get the very latest version of ccache directly from the source code
@ -59,17 +66,17 @@ You can also browse the repository:
http://gitweb.samba.org/?p=ccache.git
HISTORY
History
-------
ccache was originally written by Andrew Tridgell and is currently maintained by
Joel Rosdahl. ccache started out as a re-implementation of Erik Thiele's
"compilercache" (see http://www.erikyyy.de/compilercache/) in C.
Joel Rosdahl. ccache started out as a reimplementation of Erik Thiele's
``compilercache'' (see http://www.erikyyy.de/compilercache/) in C.
See also the NEWS file.
COPYRIGHT
Copyright
---------
Copyright (C) 2002-2007 Andrew Tridgell

View File

@ -1,17 +1,28 @@
# GNU make syntax reigns in this file.
CFLAGS += -Werror
CPPFLAGS += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
ASCIIDOC = asciidoc
XSLTPROC = xsltproc
MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl
version = $(shell sed -n 's/^\#define CCACHE_VERSION "\(.*\)"/\1/p' \
$(srcdir)/ccache.h)
dist_dir = ccache-$(version)
dist_archive_tar_bz2 = ccache-$(version).tar.bz2
dist_archive_tar_gz = ccache-$(version).tar.gz
generated_docs = ccache.1 INSTALL.html manual.html NEWS.html README.html
built_dist_files = $(generated_docs)
files_to_clean += $(dist_archive_tar_bz2) $(dist_archive_tar_gz) .deps/*
files_to_clean += $(built_dist_files)
source_dist_files = \
$(sources) $(headers) zlib/*.c zlib/*.h \
config.h.in configure configure-dev dev.mk.in install-sh Makefile.in \
test.sh COPYING INSTALL NEWS README
built_dist_files = ccache.1
test.sh COPYING INSTALL.txt NEWS.txt README.txt
dist_files = \
$(addprefix $(srcdir)/, $(source_dist_files)) \
$(built_dist_files)
@ -49,6 +60,15 @@ distcheck: $(dist_archive_tar_bz2)
$(MAKE) installcheck) && \
rm -rf $$tmpdir
.PHONY: docs
docs: $(generated_docs)
%.html: %.txt
$(ASCIIDOC) -a toc -b xhtml11 $<
%.xml: %.txt
$(ASCIIDOC) -d manpage -b docbook $<
.PHONY: check-syntax
check-syntax:
$(CC) @CPPFLAGS@ -I. $(CFLAGS) -S -o /dev/null $(CHK_SOURCES)

View File

@ -64,10 +64,11 @@ To install for usage by the first method just make sure *ccache* is in your path
To install for the second method, do something like this:
ln -s /usr/local/bin/ccache /usr/local/bin/gcc
ln -s /usr/local/bin/ccache /usr/local/bin/g++
ln -s /usr/local/bin/ccache /usr/local/bin/cc
ln -s /usr/local/bin/ccache /usr/local/bin/c++
cp ccache /usr/local/bin/
ln -s ccache /usr/local/bin/gcc
ln -s ccache /usr/local/bin/g++
ln -s ccache /usr/local/bin/cc
ln -s ccache /usr/local/bin/c++
And so forth. This will work as long as +/usr/local/bin+ comes before the path
to the compiler (which is usually in +/usr/bin+). After installing you may wish