AC_INIT(Makefile.am)
PACKAGE=deptrack
-VERSION=0.3
+VERSION=0.3.0
dnl
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
AC_SUBST(VERSION)
dnl subdirectories
-SUBDIRS=
+SUBDIRS="doc src"
AC_SUBST(SUBDIRS)
AC_CONFIG_SUBDIRS(SUBDIRS)
dnl output
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([deptrack deptrack.1])
+AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
+AC_CONFIG_FILES([doc/deptrack.1])
+AC_CONFIG_FILES([src/deptrack])
AC_OUTPUT
+++ /dev/null
-.TH DEPTRACK 1 "1 February 2003" "Version @VERSION@" "PHP dependency tracker"
-.SH NAME
-deptrack \- a PHP dependency tracker
-.SH SYNOPSIS
-.B deptrack
-.SH DESCRIPTION
-\fBdeptrack\fR is a script that allows you to analyse the dependencies of a set
-of PHP files and store the result in a MySQL database.
+++ /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$"
-
# return program syntax
sub syntax {
print "Syntax:\n",
- " deptrack.pl [options] root_directory\n\n",
+ " deptrack [options] root_directory\n\n",
" Options:\n",
" -h - this help message\n",
" -f <file> - use <file> as config file\n",