added a MIT license file

added a rule to transform a file with a stylesheet
search paths, xslsheet are set with variables, this can be changed
dependency with coreutils.xml is included (don't know another mean atm)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12668 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-05-15 01:48:58 +00:00
parent f35b607dd6
commit 586a6dbe43
3 changed files with 57 additions and 2 deletions

34
src/documentation/Jamfile Normal file
View File

@ -0,0 +1,34 @@
SubDir OBOS_TOP src documentation ;
XSLTPROC ?= xsltproc ;
rule Doc2HTML
{
local source = [ FGristFiles $(1) ] ;
local target = $(1:S=.html) ;
SEARCH on $(source) = $(SEARCH_SOURCE) ;
MakeLocate $(target) : [ FDirName $(OBOS_DISTRO_TARGET) beos documentation Shell\ Tools ] ;
Depends $(target) : $(source) ;
LocalDepends doc_files : $(target) ;
XSLPROCPATHS on $(target) = $(XSLPATHS:J=\ ) ;
Doc2HTML1 $(target) : $(source) ;
LocalClean clean : $(target) ;
}
actions Doc2HTML1
{
$(XSLTPROC) -xinclude -path "$(XSLPROCPATHS)" -o "$(1)" $(HTMLXSLSHEET) $(2) ;
}
XSLPATHS = [ FDirName $(OBOS_OBJECT_TARGET) documentation Shell_Tools ] [ FDirName $(OBOS_TOP) src bin coreutils man ] ;
HTMLXSLSHEET = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ;
Doc2HTML
Shell_Tools-Guide.xml
;
Includes [ FGristFiles Shell_Tools-Guide.xml ] : <src!bin!coreutils!man>coreutils.xml ;
SEARCH on <src!bin!coreutils!man>coreutils.xml = [ FDirName $(OBOS_TOP) src bin coreutils man ] ;

View File

@ -22,7 +22,7 @@
<!ENTITY coreutils SYSTEM "coreutils.xml">
<!-- license -->
<!ENTITY gfdl SYSTEM "license.xml">
<!ENTITY license SYSTEM "license.xml">
<!-- Text Macros -->
<!ENTITY haikuorg '<ulink url="http://www.haiku-os.org">Haiku</ulink>'>
@ -63,6 +63,6 @@
<!--
The License
-->
&gfdl;
&license;
</book>

View File

@ -0,0 +1,21 @@
<!--
<!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook XML V4.2//EN'>
-->
<appendix id="license">
<title>MIT License</title>
<sect1>
<para>
Copyright (c) 2003-2005, Haiku, Inc.
</para>
<para>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
</para>
<para>
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
</para>
<para>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</para>
</sect1>
</appendix>