NAME

csbug - a simple bug tracking system


SYNOPSIS

csbug [-b bugnum] [-d bugrootdir] op [op-args...]


DESCRIPTION

csbug is a simple bug system.


OPTIONS

-b bugnum

Specify the bug to which the operation op is to be applied. The environment variable $CSBUG_BUGNUM contains the default bug number.

-d bugrootdir

Specify the root directory of the bug data. The default may be controlled by the $CSBUG_ROOT environment variable, which in turn defaults to $HOME/var/bugs.


OPERATIONS

The following operations are supported.

ATTACH {file|URL}...

Attach the named files or URLs to the bug.

CHILDREN {+|-}n...

Add or delete bug numbers of bugs this bug waits on. Use GET CHILDREN to obtain the current list.

CLONE

Duplicate a bug. Print the number of the new bug.

COMMENT <mail-item

Add the mail item on stdandard input to the bug as a comment.

GET field

Print the value of the supplied field on the standard output. The following field names are special:

BUG-PATH

Print the full pathname of the bug.

CHILDREN

Print other bugs that this bug depends upon. This requires the sqlite package: http://freshmeat.net/projects/sqlite/

COMMENT-PATHS

Print the full pathname to each comment file.

COMMENT:

Print the number of comments.

COMMENT:n

Print comment number n. Comments count from 1.

FIELDS [-sh]

Print the defined fields and their values.

PARENTS

Print the list of other bugs waiting on this bug.

HTML [section...]

Emit HTML markup for various bug sections on the standard output. If no sections are specified, the following are printed: hacker COMMENTS ATTACHMENTS. Lower case sections are field names. The following special sections are supported:

COMMENT:n

The full listing of comment #n.

COMMENTS

The Subject: lines of the comments to the bug.

attachments

The attachments to the bug.

LIST

List all bug numbers.

NEW headline

Create a new bug with the specified headline. Print:

        bugnum

on the standard output, where bugnum is the bug number of the new bug.

PARENTS {+|-}n...

Add or delete bug numbers of bugs waiting on this bug. Use GET PARENTS to obtain the current list.

ROOT

Print the root directory of the bug database.

SET field value

Set the value of the specified field to the specified value.

SQL sql-statement

Perform an SQL query on the bug database. This requires the sqlite package: http://freshmeat.net/projects/sqlite/


ENVIRONMENT

$CSBUG_ROOT, the root directory of the bug data. Default: $HOME/var/bugs

CSBUG_BUGNUM, the default bug number for per-bug operations.

$TMPDIR, where temporary files reside. Default: /tmp


SEE ALSO

sqlite(1)


AUTHOR

Cameron Simpson <cs@zip.com.au> 28jun2005