Project Overview:
CDOC is a small Linux shell utility for creating and documenting basic C++ projects in a Linux shell environment.
It is able to create a starter C++ project template, including the main and utility cpp files as well as the Makefile and a template starter README file. Using the markup conventions in these files, CDOC is able to generate HTM documentation for the project and C++ classes. CDOC is also compatible for C projects.
Pre-requisites:
- Ensure that g++ is installed in your Linux environment.
Installation Guide:
- Download the installation gzipped tarball file ending with the suffix '.tar.gz'.
- create the following folders within your Linux shell environment:
$HOME/dev/src (i.e. ~/dev/src)
$HOME/dev/bin (i.e. ~/dev/bin)
$HOME/dev/common (i.e. ~/dev/common)
- Ensure that your $PATH environment variable points to $HOME/dev/bin. This normally involves editing your ~/.profile file to include the string ':~/dev/bin' in your export $PATH command, e.g. 'export PATH=./:$PATH:~/somedir:~/dev/bin:/usr/bin', where the semi-colon is the path separator.
- Create the following folder: $HOME/dev/src/cdoc.
- Copy the installation gzipped tarball file into the 'cdoc' folder.
- In a shell terminal, cd to the cdoc folder.
- Enter the command 'gzip -d <filename-of-gzipped-tarball>'.</filename-of-gzipped-tarball>
- Enter the command 'tar -xvf <filename-of-tarball>'.</filename-of-tarball>
- The previous 2 steps should have extracted the contents of the installation gzipped tarball into the cdoc folder.
- Move the contents of the common folder under cdoc to ~/dev/common.
- Enter the command 'make' in the 'cdoc' folder.
- Upon successful compilation enter the command 'cdoc'.
- To create a new test project cd to ~/dev/src.
- Create a new project folder by entering 'mkdir <project-name>'.</project-name>
- Enter the new folder by entering 'cd <project-name>'.</project-name>
- Enter 'cdoc'.
- Enter 'h' for a list of commands.
- Enter 'cp' to create a new project.
- Enter 'q' to quit out of cdoc.
- Enter 'make' at the command line.
- After successful compilation, enter the project-name to run the newly compiled program.
- To document the newly compiled program, enter 'cdoc'.
- Enter 'dp' to document the project.
- Enter 'y' to overwrite any existing .htm files.
- Enter 'q' to quit out of cdoc.
- The .htm files should now be present in the cdoc folder with index.htm as the main htm page.
The wiki uses Markdown syntax.
Project Members: