summaryrefslogtreecommitdiff
path: root/ecos/doc/sgml/makemakefile
blob: cc7b2c4fd954c1b12a00ca0df29c66c7dad20b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#!/bin/sh

touch ecos-ref.sgml
touch makefile
chmod +w ecos-ref.sgml 
chmod +w makefile

sgmldir="`dirname $0`"
doclist="${sgmldir}/doclist"
toplvl="${sgmldir}/../.."

cat > makefile <<EOF
#=============================================================================
#
#    makefile
#
#    For building the eCos docs
#
#=============================================================================
# ####ECOSGPLCOPYRIGHTBEGIN####                                             
# -------------------------------------------                               
# This file is part of eCos, the Embedded Configurable Operating System.    
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
#
# eCos is free software; you can redistribute it and/or modify it under     
# the terms of the GNU General Public License as published by the Free      
# Software Foundation; either version 2 or (at your option) any later       
# version.                                                                  
#
# eCos is distributed in the hope that it will be useful, but WITHOUT       
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License     
# for more details.                                                         
#
# You should have received a copy of the GNU General Public License         
# along with eCos; if not, write to the Free Software Foundation, Inc.,     
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             
#
# As a special exception, if other files instantiate templates or use       
# macros or inline functions from this file, or you compile this file       
# and link it with other works to produce a work based on this file,        
# this file does not by itself cause the resulting work to be covered by    
# the GNU General Public License. However the source code for this file     
# must still be made available in accordance with section (3) of the GNU    
# General Public License v2.                                                
#
# This exception does not invalidate any other reasons why a work based     
# on this file might be covered by the GNU General Public License.          
# -------------------------------------------                               
# ####ECOSGPLCOPYRIGHTEND####                                               
#=============================================================================
#####DESCRIPTIONBEGIN####
#
# Author(s):     jlarmour
# Date:          2002-02-05
#####DESCRIPTIONEND####
#=============================================================================

TOPLEVEL   := ${toplvl}/packages
EOF
/bin/echo MAIN_SGML   := ecos-ref.sgml >> makefile
/bin/echo -n OTHER_SGML   :=  >> makefile

cat >ecos-ref.sgml <<EOF
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [

<!-- Begin Document Specific Declarations -->
<!ENTITY ui "&micro;ITRON">
<!ENTITY versiondir CDATA "v2_0">
<!ENTITY version CDATA "2.0">
<!ENTITY lt SDATA "[lt    ]">
EOF

PACKAGEVER=${1:-'current'}

for i in `cat ${doclist}`; do
  line="`echo $i | sed 's/#.*//;'`"
  if (test ! -z $line); then
   /bin/echo -n " ${toplvl}/packages/$i" | sed "s@/current/@/${PACKAGEVER}/@g" >> makefile
   entityi="`echo $i | sed 's@\+@x@g; s@/@-@g; s@\.@-@g; s@_@-@g; s@-current-doc@@g; s@-current@@g'`"
   echo "<!ENTITY $entityi SYSTEM \"${toplvl}/packages/$i\">" | sed "s@/current/@/${PACKAGEVER}/@g" >> ecos-ref.sgml
  fi
done

# Go through again but find GIFs and PNGs to copy
for i in `for j in \`cat ${doclist}\` ; do dirname $j ; done | sort | uniq` ; do
  diri=`echo ${toplvl}/packages/$i | sed "s@/current/@/${PACKAGEVER}/@g"`
  dirigifs=`ls $diri/*.gif $diri/*.png 2>/dev/null | tr '\n' ' '`
  if [ x"$dirigifs" != x ]; then
        copyfiles="$copyfiles $dirigifs"
  fi
done

cat >> makefile <<EOF

MAIN_HTML  := ecos-ref.html
MAIN_PDF   := ecos-ref.pdf
PICTURES   :=
COPYFILES  := $copyfiles

include \$(TOPLEVEL)/pkgconf/rules.doc
EOF

cat >> ecos-ref.sgml <<EOF
<!-- End Document Specific Declarations -->
]>

<BOOK ID="ECOS-REF">
  <bookinfo>
    <TITLE>eCos Reference Manual</TITLE>

    <copyright>
      <year>1998</year>
      <year>1999</year>
      <year>2000</year>
      <year>2001</year>
      <year>2002</year>
      <year>2003</year>
      <year>2004</year>
      <year>2005</year>
      <year>2006</year>
      <year>2007</year>
      <year>2008</year>
      <year>2009</year>
      <year>2010</year>
      <year>2011</year>
      <year>2012</year>
      <year>2013</year>
      <holder>Free Software Foundation, Inc.</holder>
    </copyright>

    <legalnotice>
	<title>Documentation licensing terms</title>
<para>This material may be distributed only subject to the terms
and conditions set forth in the Open Publication License, v1.0
or later (the latest version is presently available at
<ulink url="http://www.opencontent.org/openpub/">http://www.opencontent.org/openpub/</ulink>).
</para>
<para>
Distribution of substantively modified versions of this
document is prohibited without the explicit permission of the
copyright holder.</para>
<para>
Distribution of the work or derivative of the work in any
standard (paper) book form is prohibited unless prior
permission is obtained from the copyright holder.
</para>
    </legalnotice>
    <legalnotice>
      <title>Trademarks</title>
<para>Altera&reg; and Excalibur&trade; are trademarks of Altera Corporation.</para>
<para>AMD&reg; is a registered trademark of Advanced Micro Devices, Inc.</para>
<para>ARM&reg;, StrongARM&reg;, Thumb&reg;, ARM7&trade;, ARM9&trade;  is a registered trademark of Advanced RISC Machines, Ltd.</para>
<para>Cirrus Logic&reg; and Maverick&trade; are registered trademarks of Cirrus Logic, Inc.</para>
<para>Cogent&trade; is a trademark of Cogent Computer Systems, Inc.</para>
<para>Compaq&reg; is a registered trademark of the Compaq Computer Corporation.</para>
<para>eCos&reg; is a registered trademark of eCosCentric Limited.</para>
<para>Fujitsu&reg; is a registered trademark of Fujitsu Limited.</para>
<para>IBM&reg;, and PowerPC&trade; are trademarks of International Business Machines Corporation.</para>
<para>IDT&reg; is a registered trademark of Integrated Device Technology Inc.</para>
<para>Intel&reg;, i386&trade;, Pentium&reg;, StrataFlash&reg; and XScale&trade; are trademarks of Intel Corporation.</para>
<para>Intrinsyc&reg; and Cerf&trade; are trademarks of Intrinsyc Software, Inc.</para>
<para>Linux&reg; is a registered trademark of Linus Torvalds. </para>
<para>Matsushita&trade; and Panasonic&reg; are trademarks of the Matsushita Electric Industrial Corporation.</para>
<para>Microsoft&reg;, Windows&reg;, Windows NT&reg; and Windows XP&reg; are registered trademarks of Microsoft Corporation, Inc. </para>
<para>MIPS&reg;, MIPS32&trade; MIPS64&trade;, 4K&trade, 5K&trade; Atlas&trade; and Malta&trade; are trademarks of MIPS Technologies, Inc.</para>
<para>Motorola&reg;, ColdFire&reg; is a trademark of Motorola, Inc.</para>
<para>NEC&reg; V800&trade;, V850&trade;, V850/SA1&trade;, V850/SB1&trade;, VR4300&trade;, and VRC4375&trade; are trademarks of NEC Corporation.</para>
<para>PMC-Sierra&reg; RM7000&trade; and Ocelot&trade; are trademarks of PMC-Sierra Incorporated. </para>
<para>Red Hat, RedBoot&trade;, GNUPro&reg;, and Insight&trade; are trademarks of Red Hat, Inc. </para>
<para>Samsung&reg; and CalmRISC&trade; are trademarks or registered trademarks of Samsung, Inc. </para>
<para>Sharp&reg; is a registered trademark of Sharp Electronics Corp.</para>
<para>SPARC&reg; is a registered trademark of SPARC International, Inc., and is used under license by Sun Microsystems, Inc. </para>
<para>Sun Microsystems&reg; and Solaris&reg; are registered trademarks of Sun Microsystems, Inc. </para>
<para>SuperH&trade; and Renesas&trade; are trademarks owned by Renesas Technology Corp.</para>
<para>Texas Instruments&reg;, OMAP&trade; and Innovator&trade; are trademarks of Texas Instruments Incorporated.</para>
<para>Toshiba&reg; is a registered trademark of the Toshiba Corporation.</para>
<para>UNIX&reg; is a registered trademark of The Open Group. </para>
<para>All other brand and product names, trademarks, and copyrights are the
property of their respective owners. </para>
      </legalnotice>
      <legalnotice>
<title>Warranty</title>
<para>eCos and RedBoot are open source software, covered by a
modified version of the <ulink url="http://www.gnu.org/copyleft/gpl.html">GNU
General Public Licence</ulink>,
and you are welcome to change it and/or distribute copies of it under certain
conditions. See <ulink
url="http://ecos.sourceware.org/license-overview.html">http://ecos.sourceware.org/license-overview.html
</ulink> for more information about the license.</para>
<para>eCos and RedBoot software have NO WARRANTY. </para>
<para>Because this software is licensed free of charge, there are no warranties
for it, to the extent permitted by applicable law. Except when otherwise stated
in writing, the copyright holders and/or other parties provide the software
&ldquo;as is&rdquo; without warranty of any kind, either expressed or implied,
including, but not limited to, the implied warranties of merchantability and
fitness for a particular purpose. The entire risk as to the quality and performance
of the software is with you. Should the software prove defective, you assume
the cost of all necessary servicing, repair or correction.</para>
<para> In no event, unless required by applicable law or agreed to in writing,
will any copyright holder, or any other party who may modify and/or redistribute
the program as permitted above, be liable to you for damages, including any
general, special, incidental or consequential damages arising out of the use
or inability to use the program (including but not limited to loss of data
or data being rendered inaccurate or losses sustained by you or third parties
or a failure of the program to operate with any other programs), even if such
holder or other party has been advised of the possibility of such damages.
</para>
      </legalnotice>
  </bookinfo>
<toc id="ecos-toc"></toc>
EOF

for i in `cat ${doclist}`; do
  line="`echo $i | sed 's/#.*//;'`"
  if (test ! -z $line); then
   entityi="`echo $i | sed 's@\+@x@g; s@/@-@g; s@\.@-@g; s@_@-@g; s@-current-doc@@g; s@-current@@g'`"
   # special kludge
   if [ "`basename $i`" != "tcpip-manpages.sgml" -a \
	"`basename $i`" != "snmp-manpages.sgml" -a \
	"`basename $i`" != "libipsec.sgml" -a \
	"`basename $i`" != "libipsec-manpages.sgml" -a \
	"`basename $i`" != "openbsd-manpages-bridge.sgml" -a \
	"`basename $i`" != "openbsd-manpages-netintro.sgml" -a \
	"`basename $i`" != "openbsd-manpages-stp.sgml" -a \
	"`basename $i`" != "porting.sgml" ]; then
     echo "&$entityi;" >> ecos-ref.sgml
   fi
  fi
done

echo '</book>' >> ecos-ref.sgml