From 6c2f1846eca6d799538af0cb505b38e736d9dc74 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 5 Dec 2006 22:29:48 +1300 Subject: [PATCH] Pre-process the PHPdoc initialisation to make it more workable in another build location. --- debian/.gitignore | 1 + debian/{rscds-phpdoc.ini => rscds-phpdoc.ini.in} | 6 +++--- debian/rules | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) rename debian/{rscds-phpdoc.ini => rscds-phpdoc.ini.in} (93%) diff --git a/debian/.gitignore b/debian/.gitignore index d3c73b9e..a133bef0 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1,3 +1,4 @@ files html rscds +rscds-phpdoc.ini diff --git a/debian/rscds-phpdoc.ini b/debian/rscds-phpdoc.ini.in similarity index 93% rename from debian/rscds-phpdoc.ini rename to debian/rscds-phpdoc.ini.in index 2f9810a5..dd95ee7f 100644 --- a/debian/rscds-phpdoc.ini +++ b/debian/rscds-phpdoc.ini.in @@ -52,7 +52,7 @@ defaultpackagename = RSCDS ;; where should the documentation be written? ;; legal values: a legal path -target = /home/andrew/projects/rscds/debian/html +target = ##projectroot##/debian/html ;; Which files should be parsed out as special documentation files, such as README, ;; INSTALL and CHANGELOG? This overrides the default files found in @@ -71,14 +71,14 @@ readmeinstallchangelog = README, INSTALL, CHANGELOG, NEWS, FAQ, LICENSE ;; legal values: directory paths separated by commas ;directory = /path1,/path2,.,..,subdirectory ;directory = /home/jeichorn/cvs/pear -directory = /home/andrew/projects/rscds/inc,/home/andrew/projects/rscds/htdocs +directory = ##projectroot##/inc,##projectroot##/htdocs ;; template base directory (the equivalent directory of /phpDocumentor) ;templatebase = /path/to/my/templates ;; directory to find any example files in through @example and {@example} tags ;examplesdir = /path/to/my/templates -examplesdir = /home/andrew/projects/rscds/examples +examplesdir = ##projectroot##/examples ;; comma-separated list of files, directories or wildcards ? and * (any wildcard) to ignore ;; legal values: any wildcard strings separated by commas diff --git a/debian/rules b/debian/rules index c003368d..adf64460 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,10 @@ build: inc htdocs debian/$(package)-phpdoc.ini cd ~andrew/projects/phpdoc/phpDocumentor-1.2.3 && ./phpdoc -c ~andrew/projects/$(package)/debian/$(package)-phpdoc.ini touch build +# PHPDoc architecture sucks. Badly. +debian/$(package)-phpdoc.ini: debian/$(package)-phpdoc.ini.in + sed -e"s@##packageroot##@`pwd`" debian/$(package)-phpdoc.ini + clean: $(checkdir) rm -f build