--- /dev/null
+.TH DEPTRACK 1 "1 February 2003" "Version @VERSION@" "PHP dependency tracker"
+.SH NAME
+deptrack \- a PHP dependency tracker
+.SH SYNOPSIS
+.B deptrack
+[\fB-h\fR]
+.br
+.B deptrack
+[\fB-d\fR] [\fB-f\fR \fIconfig\fR] \fIroot\fR
+.SH DESCRIPTION
+\fBdeptrack\fR is a script that allows you to analyse the dependencies of a set
+of PHP files and store the results in a MySQL database. Prior to running \fBdeptrack\fR you should have created the tables to store the dependencies and have a configured \fI~/.deptrackrc\fR file.
+.SH OPTIONS
+.IP "\fB-h\fR"
+Display syntax help.
+.IP "\fB-f\fR"
+Use \fIconfig\fR instead of ~/.deptrackrc
+.IP "\fB-d\fR"
+Enable debug mode.
+.SH COPYRIGHT
+Copyright \(co 2002-2003 Jeremy Lainé
+.PP
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
+
--- /dev/null
+#
+# Table structure for table `dep`
+#
+
+CREATE TABLE dep (
+ id int(8) NOT NULL auto_increment,
+ dir int(6) NOT NULL default '0',
+ page int(6) NOT NULL default '0',
+ dep int(6) NOT NULL default '0',
+ type enum('include','image','link') NOT NULL default 'include',
+ PRIMARY KEY (id)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Table structure for table `dir`
+#
+
+CREATE TABLE dir (
+ id int(6) NOT NULL auto_increment,
+ path varchar(255) NOT NULL default '',
+ PRIMARY KEY (id),
+ UNIQUE KEY path (path)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Table structure for table `file`
+#
+
+CREATE TABLE file (
+ id int(6) NOT NULL auto_increment,
+ path varchar(255) NOT NULL default '',
+ type enum('dead','page','include','image') NOT NULL default 'dead',
+ dir int(6) NOT NULL default '0',
+ PRIMARY KEY (id),
+ UNIQUE KEY path (path)
+) TYPE=MyISAM;
+
--- /dev/null
+# default values for ~/.deptrackrc
+# $Id$
+
+# database
+db_db = "deptrack"
+db_host = "localhost"
+db_pwd = ""
+db_user = "deptrack"
+
+# files and masks
+include_path = "."
+mask_img = "\.(png|gif|jpg)$"
+mask_inc = "\.inc(\.php)?$"
+mask_php = "(?<!\.inc)\.php$"
+