From 586a6dbe4344186c893ac91a6d60749d06dfdd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 15 May 2005 01:48:58 +0000 Subject: [PATCH] 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 --- src/documentation/Jamfile | 34 +++++++++++++++++++++++++ src/documentation/Shell_Tools-Guide.xml | 4 +-- src/documentation/license.xml | 21 +++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 src/documentation/Jamfile create mode 100644 src/documentation/license.xml diff --git a/src/documentation/Jamfile b/src/documentation/Jamfile new file mode 100644 index 0000000000..cac93c1d48 --- /dev/null +++ b/src/documentation/Jamfile @@ -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 ] : coreutils.xml ; +SEARCH on coreutils.xml = [ FDirName $(OBOS_TOP) src bin coreutils man ] ; diff --git a/src/documentation/Shell_Tools-Guide.xml b/src/documentation/Shell_Tools-Guide.xml index ab7311d065..9f8c551867 100644 --- a/src/documentation/Shell_Tools-Guide.xml +++ b/src/documentation/Shell_Tools-Guide.xml @@ -22,7 +22,7 @@ - + Haiku'> @@ -63,6 +63,6 @@ -&gfdl; +&license; diff --git a/src/documentation/license.xml b/src/documentation/license.xml new file mode 100644 index 0000000000..abb64287cf --- /dev/null +++ b/src/documentation/license.xml @@ -0,0 +1,21 @@ + + + + MIT License + + + Copyright (c) 2003-2005, Haiku, Inc. + + +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: + + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + +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. + + +