Pre-process the PHPdoc initialisation to make it more workable in another

build location.
This commit is contained in:
Andrew McMillan 2006-12-05 22:29:48 +13:00
parent 70372992cb
commit 6c2f1846ec
3 changed files with 8 additions and 3 deletions

1
debian/.gitignore vendored
View File

@ -1,3 +1,4 @@
files
html
rscds
rscds-phpdoc.ini

View File

@ -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 <installdir>/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

4
debian/rules vendored
View File

@ -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.in >debian/$(package)-phpdoc.ini
clean:
$(checkdir)
rm -f build