coreutils man documentation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-06-08 10:00:31 +00:00
parent d4d6e6c0ae
commit 52c423baef
2 changed files with 36 additions and 2 deletions

View File

@ -1,6 +1,6 @@
SubDir OBOS_TOP src bin coreutils man ;
Man2Docs
local manpages =
basename.1
cat.1
chgrp.1
@ -92,4 +92,38 @@ whoami.1
yes.1
;
Includes [ FGristFiles coreutils.xml ] : [ FGristFiles basename.xml cat.xml date.xml cut.xml ] ;
Man2Docs $(manpages) ;
rule GenerateChapterXML
{
local sources = $(3) ;
local template = [ FGristFiles $(2) ] ;
local target = [ FGristFiles $(1) ] ;
MakeLocate $(target) : [ FDirName $(OBOS_OBJECT_TARGET) documentation Shell_Tools ] ;
SEARCH on $(template) = $(SEARCH_SOURCE) ;
local xmls = [ FGristFiles $(sources:S=.xml) ] ;
Includes $(target) : $(xmls) ;
Depends files : $(target) ;
Depends $(target) : $(template) ;
XMLS on $(target) = "<xi:include xmlns:xi=\"http://www.w3.org/2001/XInclude\" href=\""$(xmls:BS)"\" />\
" ;
GenerateChapterXML1 $(target) : $(template) ;
LocalClean clean : $(target) ;
}
actions GenerateChapterXML1
{
head -5 $(2) > $(1) ;
cat << EOF >> $(1)
$(XMLS)
EOF
tail -2 $(2) >> $(1) ;
}
GenerateChapterXML coreutils.xml :
coreutils.src
: $(manpages) ;