|
|
Here is a brief overview of how to set up a project tree for use with toc2.
First, unpack the toc2 distribution (or check it out from Subversion). From that distribution you should copy the toc2 directory and following files to your project tree, renaming them as shown here:
Now edit configure to look like this:
#!/bin/bash
# ^^^ toc2 needs a genuine Bash shell, not a cheap work-alike.
export PACKAGE_NAME=MyProject
export PACKAGE_VERSION=0.0.1
export TOC2_HOME=${PWD}/toc2
# versions before 20070629:
#. ${TOC2_HOME}/sbin/toconfigure "$@"
# newer versions:
. ${TOC2_HOME}/sbin/toc2_bootstrap.sh "$@"
Edit the top-level Makefile so that it looks like this:
#!/usr/bin/make -f include toc2.makeDon't worry that the file toc2.make doesn't yet exist - it will be automatically created. Now edit toc2.MyProject.make.at to look like the following: hello: @echo "Hello, world! $(toc2.emoticons.okay)" all: helloThat file is really a Makefile, so it must follow makefile requirements when it comes to spacing and tabs. Now run the configure script: $ ./configure ...and run make: $ make ... Hello, world! :-)Here's a brief summary of what all of those files are for:
|
| toc is developed in conjunction with: s11n.net, SpiderApe, & wanderinghorse.net. | Site design adapted from a design by Sumanasa.com |