Open Source

Projects
Patches

System Integration

Notes
SRPMs

fctk

Templates for generating a new project and XSLT code to generate getopt() C code, man pages, HTML documentation, Debian package specifications, RPM specifications, etc. from one XML description

Overview

The Flyn Computing Template Kit (fctk) is a collection of fmt-ptrn templates, XSLT templates, and project descriptions. These tools are used at Flyn Computing for development. The collection of templates use XML and the priciple of not repeating oneself. For example, this description comes from an XML file that is used to generate the fctk package's man page, HTML documentation, RPM specification, Debian package specifications, etc.

Nasty Details

Using np with the included project template, gnu_c:

np foo gnu_c

...will create the following directory tree:

.:
AUTHORS    INSTALL      TODO          dry         missing        src
COPYING    Makefile.am  configure.in  include     mkinstalldirs
ChangeLog  NEWS         debian        install-sh  scripts
 
./debian:
changelog  control  copyright  rules
 
./dry:
Makefile.am  foo.xml
 
./include:
Makefile.am
 
./scripts:
Makefile.am
 
./src:
Makefile.am  foo.c

Each file that is created provides a reasonable starting point for a GNU C project. Dry/foo.xml is used by dry/Makefile to create getopt() C code, man pages, etc.

Project directory structure:

xslt
XSLT templates to generate getopt() C code, man pages, HTML documentation, Debian package specifications, RPM specifications, etc. from one XML description.
templates
Templates for use with nf.
projects
Project descriptions for use with np
fctk
Auxillary files which are referenced by some of the other templates. These should go in /etc/fctk/
Email: www@flyn.org — ✉ 6110 Campfire Court; Columbia, Maryland 21045; USA