| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" |
| 2 |
"http://www.w3.org/TR/REC-html40/loose.dtd"> |
| 3 |
|
| 4 |
<HTML> |
| 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 |
<HEAD> |
| 31 |
<TITLE>1.3 Establish The Source Tree</TITLE> |
| 32 |
<STYLE TYPE="text/css"> <!-- A {text-decoration: none} // --> </STYLE> |
| 33 |
</HEAD> |
| 34 |
<BODY BACKGROUND="binary/background.gif" |
| 35 |
BGCOLOR="#FFFFFF" |
| 36 |
TEXT="#000000" |
| 37 |
VLINK="#660000" |
| 38 |
LINK="#FF0000" |
| 39 |
ALINK="#CC0000"> |
| 40 |
|
| 41 |
<TABLE WIDTH="490"> |
| 42 |
<TR> |
| 43 |
<TD WIDTH="130" VALIGN="top"> |
| 44 |
<IMG SRC="binary/d_clear.gif" ALT="" WIDTH="130" HEIGHT="1"><BR> |
| 45 |
|
| 46 |
<FONT SIZE="2"> |
| 47 |
<BR> |
| 48 |
|
| 49 |
<A HREF="http://www.ross.net/" |
| 50 |
TARGET="rosshome" |
| 51 |
onClick="window.open('','rosshome','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 52 |
> |
| 53 |
<IMG SRC="binary/rossnet_logo.gif" |
| 54 |
WIDTH="64" HEIGHT="32" |
| 55 |
BORDER="0" ALT="RossNet" |
| 56 |
HSPACE="0" VSPACE="1"></A><BR> |
| 57 |
<BR> |
| 58 |
|
| 59 |
<A HREF="../index.shtml" |
| 60 |
TARGET="funnelweb" |
| 61 |
onClick="window.open('','funnelweb','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 62 |
> |
| 63 |
<IMG SRC="binary/linklogo.gif" |
| 64 |
WIDTH="64" HEIGHT="32" |
| 65 |
BORDER="0" ALT="FunnelWeb" |
| 66 |
HSPACE="0" VSPACE="1"></A><BR> |
| 67 |
<BR> |
| 68 |
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD BGCOLOR="#000000"> |
| 69 |
<A HREF="../reference/index.html" |
| 70 |
TARGET="funnelwebreference" |
| 71 |
onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 72 |
><FONT COLOR="#FFFFFF"><B>Reference</B></FONT></A><BR> |
| 73 |
<BR> |
| 74 |
<A HREF="../tutorial/index.html" |
| 75 |
TARGET="funnelwebtutorial" |
| 76 |
onClick="window.open('','funnelwebtutorial','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 77 |
><FONT COLOR="#FFFFFF"><B>Tutorial</B></FONT></A><BR> |
| 78 |
<BR> |
| 79 |
<A HREF="index.html"><FONT COLOR="#FFFFFF"><B>Developer</B></FONT></A><BR> |
| 80 |
<A HREF="compile.html"><FONT COLOR="#FFFFFF">1 Compile</FONT></A><BR> |
| 81 |
<A HREF="design.html"><FONT COLOR="#FFFFFF">2 Design</FONT></A><BR> |
| 82 |
<A HREF="implement.html"><FONT COLOR="#FFFFFF">3 Implement</FONT></A><BR> |
| 83 |
<A HREF="modify.html"><FONT COLOR="#FFFFFF">4 Modify</FONT></A><BR> |
| 84 |
<A HREF="misc.html"><FONT COLOR="#FFFFFF">5 Misc</FONT></A><BR> |
| 85 |
<A HREF="gpl.html"><FONT COLOR="#FFFFFF">6 Licence</FONT></A><BR> |
| 86 |
|
| 87 |
<BR> |
| 88 |
<A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR> |
| 89 |
</FONT> |
| 90 |
</TD></TR></TABLE> |
| 91 |
|
| 92 |
|
| 93 |
</TD> |
| 94 |
<TD WIDTH="360" VALIGN="top"> |
| 95 |
<FONT SIZE="3"> |
| 96 |
|
| 97 |
|
| 98 |
<A HREF="index.html"><IMG SRC="binary/title.gif" |
| 99 |
WIDTH="316" HEIGHT="24" |
| 100 |
BORDER="0" ALT="FunnelWeb Developer Manual" |
| 101 |
HSPACE="0" VSPACE="0"></A> |
| 102 |
<P><FONT SIZE="5">1.3 Establish The Source Tree</FONT><BR> |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
<P>At this stage, we will assume that you have |
| 107 |
somehow obtained a set of files that are supposed |
| 108 |
to be FunnelWeb, and that they are sitting on a |
| 109 |
disk on the machine on which you wish to compile |
| 110 |
FunnelWeb. |
| 111 |
|
| 112 |
<P>The next thing you have to do is to make |
| 113 |
sure that the FunnelWeb directory tree has been |
| 114 |
correctly unpacked. The directory tree should look |
| 115 |
like this. |
| 116 |
|
| 117 |
<P> |
| 118 |
<PRE> |
| 119 |
fwdir - Root FunnelWeb directory. |
| 120 |
admin - Administrative files. |
| 121 |
answers - Answers to test suite. |
| 122 |
results - For test results. |
| 123 |
scripts - Test scripts. |
| 124 |
sources - Source code. |
| 125 |
tests - Test suite. |
| 126 |
web - The FunnelWeb web. |
| 127 |
</PRE> |
| 128 |
|
| 129 |
<P>The following sections describe the contents |
| 130 |
of each directory in alphabetical order. Check the |
| 131 |
contents to make sure that you have everything. Do |
| 132 |
not become fussed if your configuration is not |
| 133 |
quite as specified, as it is very easy for |
| 134 |
installation guides such as this one to go out of |
| 135 |
date. |
| 136 |
|
| 137 |
<P><BR><FONT SIZE="4"><STRONG>Admin Directory</STRONG></FONT><BR> |
| 138 |
|
| 139 |
|
| 140 |
<P>The <SAMP>admin</SAMP> directory contains |
| 141 |
administrative files to do with licensing and |
| 142 |
such. It is also a catch-all directory for files |
| 143 |
that don't belong anywhere else. At the time of |
| 144 |
writing, it is not clear exactly what will be in |
| 145 |
the <SAMP>admin</SAMP> directory. Why not take a |
| 146 |
look? |
| 147 |
|
| 148 |
<P><BR><FONT SIZE="4"><STRONG>Answers Directory</STRONG></FONT><BR> |
| 149 |
|
| 150 |
|
| 151 |
<P>The <SAMP>answers</SAMP> directory contains the |
| 152 |
"correct answers" to all |
| 153 |
the regression testing input files. The regression test |
| 154 |
scripts compare these files to the files generated in the |
| 155 |
<SAMP>results</SAMP> directory. |
| 156 |
|
| 157 |
<P> |
| 158 |
<PRE> |
| 159 |
an01.lis ... an04.lis |
| 160 |
ex01.lis ... ex16.lis |
| 161 |
ex01.out ... ex10.out |
| 162 |
ex11.tex ... ex16.tex |
| 163 |
generate.lis |
| 164 |
hi01.lis ... hi10.lis |
| 165 |
hi01.out ... hi05.out |
| 166 |
hi06a.out |
| 167 |
hi06b.out |
| 168 |
hi07a.out |
| 169 |
hi07b.out |
| 170 |
hi08.out ... hi10.out |
| 171 |
pr01.lis ... pr10.lis |
| 172 |
sc01.lis ... sc29.lis |
| 173 |
tg01.lis ... tg09.lis |
| 174 |
tg01.out ... tg09.out |
| 175 |
wv01.lis ... wv06.lis |
| 176 |
wv01.tex ... wv06.tex |
| 177 |
</PRE> |
| 178 |
|
| 179 |
<P><BR><FONT SIZE="4"><STRONG>Results Directory</STRONG></FONT><BR> |
| 180 |
|
| 181 |
|
| 182 |
<P>The <SAMP>results</SAMP> directory exists as a target |
| 183 |
directory for the output files generated by FunnelWeb during |
| 184 |
regression testing. This directory is distributed empty and |
| 185 |
should be empty at the start of regression testing. However, |
| 186 |
it is permissible for the <SAMP>results</SAMP> directory to |
| 187 |
contain files generated during a previous test run, as the |
| 188 |
regression testing scripts delete specific unwanted files |
| 189 |
before each test anyway. |
| 190 |
|
| 191 |
<P><BR><FONT SIZE="4"><STRONG>Scripts Directory</STRONG></FONT><BR> |
| 192 |
|
| 193 |
|
| 194 |
<P>The <SAMP>scripts</SAMP> directory stores the FunnelWeb |
| 195 |
command shell scripts that are used to perform regression |
| 196 |
testing. |
| 197 |
|
| 198 |
<P> |
| 199 |
<PRE> |
| 200 |
master.fws - The master test script. |
| 201 |
test_gen.fws - Script to generate tricky input files. |
| 202 |
test_l.fws - Test FunnelWeb with +L. |
| 203 |
test_ld.fws - Test FunnelWeb with +L +B... |
| 204 |
test_lo.fws - Test FunnelWeb with +L +O. |
| 205 |
test_lo2.fws - Test FunnelWeb with +L +O (2 outfiles). |
| 206 |
test_lot.fws - Test FunnelWeb with +L +O +T. |
| 207 |
test_lt.fws - Test FunnelWeb with +L +T. |
| 208 |
</PRE> |
| 209 |
|
| 210 |
<P><BR><FONT SIZE="4"><STRONG>Sources Directory</STRONG></FONT><BR> |
| 211 |
|
| 212 |
|
| 213 |
<P>The <SAMP>sources</SAMP> directory contains <I>all</I> |
| 214 |
of the C source files required to build a FunnelWeb binary |
| 215 |
executable. In the following list, files given without an |
| 216 |
extension represent both <SAMP>.c</SAMP> and <SAMP>.h</SAMP> |
| 217 |
files. |
| 218 |
|
| 219 |
<PRE> |
| 220 |
analyse - The analyser. |
| 221 |
as - Assertions. |
| 222 |
clock - A clock abstraction. |
| 223 |
command - The shell command interpreter. |
| 224 |
data - Shared data structures and global vars. |
| 225 |
dump - Dump internal data structures. |
| 226 |
environ.h - Machine-dependent, program-ind header. |
| 227 |
help - Module to write out help messages. |
| 228 |
help_gnu - Function to write out the GNU license. |
| 229 |
help_gnu.txt - The GNU license in text form. |
| 230 |
help_gnu.ctx - The GNU license in C code form. |
| 231 |
list - A list abstraction. |
| 232 |
lister - Module to manage the listing file. |
| 233 |
machin - Module to hold machine-dependent, |
| 234 |
program-dependent stuff. |
| 235 |
main.c - The main() program. |
| 236 |
mapper - Module to read files into memory. |
| 237 |
memory - Memory management. |
| 238 |
misc - Miscellaneous functions. |
| 239 |
option - Command line option processing. |
| 240 |
parser - The parser. |
| 241 |
scanner - The scanner. |
| 242 |
section - A section number abstraction. |
| 243 |
style.h - A machine-independent, |
| 244 |
program-independent header file. |
| 245 |
table - A table abstraction. |
| 246 |
tangle - The tangler. |
| 247 |
texhead - Module to write out TeX header |
| 248 |
in documentation files. |
| 249 |
texhead.ctx - The TeX header in C code form. |
| 250 |
texhead.tex - The TeX header in TeX form. |
| 251 |
weave - The weaver. |
| 252 |
writfile - Output abstraction. |
| 253 |
</PRE> |
| 254 |
|
| 255 |
<P>The "<TT>.txt</TT>", and "<TT>.tex</TT>" files do not |
| 256 |
participate in the compilation, but are considered part of |
| 257 |
the source code as they were used to generate the |
| 258 |
"<TT>.ctx</TT>" files. The "<TT>.ctx</TT>" files are |
| 259 |
included by <SAMP>.c</SAMP> files of the same name. They do not |
| 260 |
need to be compiled themselves. |
| 261 |
|
| 262 |
<P><BR><FONT SIZE="4"><STRONG>Tests Directory</STRONG></FONT><BR> |
| 263 |
|
| 264 |
|
| 265 |
<P>The <SAMP>tests</SAMP> directory stores all the input |
| 266 |
files of the regression test suite. These come in two kinds: |
| 267 |
FunnelWeb input files with extensions of "<TT>.fw</TT>", and |
| 268 |
FunnelWeb include files with extensions of "<TT>.fwi</TT>". |
| 269 |
|
| 270 |
<P> |
| 271 |
<PRE> |
| 272 |
FunnelWeb Input Files: |
| 273 |
an01.fw ... an04.fw - Analyser tests. |
| 274 |
ex01.fw ... ex16.fw - Examples from the tut man. |
| 275 |
generate.fw - Generates tricky input files. |
| 276 |
hi01.fw ... hi10.fw - Examples from hints. |
| 277 |
pr01.fw ... pr10.fw - Parser tests. |
| 278 |
sc01_note.fw - Explains absence of sc01.fw |
| 279 |
sc02.fw ... sc29.fw - Scanner tests. |
| 280 |
tg01.fw ... tg09.fw - Tangler tests. |
| 281 |
wv01.fw ... wv06.fw - Weaver tests. |
| 282 |
|
| 283 |
FunnelWeb Include Files: |
| 284 |
ex09a.fwi |
| 285 |
sc13a.fwi ... sc13f.fwi |
| 286 |
sc15a.fwi |
| 287 |
tg08a.fwi |
| 288 |
</PRE> |
| 289 |
|
| 290 |
<P><BR><FONT SIZE="4"><STRONG>Web Directory</STRONG></FONT><BR> |
| 291 |
|
| 292 |
|
| 293 |
<P>This directory is for the FunnelWeb webs if you want to |
| 294 |
keep a copy on your local disk so you can surf it quickly. |
| 295 |
|
| 296 |
|
| 297 |
<P> |
| 298 |
<TABLE WIDTH="100%"> |
| 299 |
<TR> |
| 300 |
<TD ALIGN="left" VALIGN="bottom"><A HREF="compile_ftp.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD> |
| 301 |
<TD ALIGN="center" VALIGN="bottom"><A HREF="compile.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD> |
| 302 |
<TD ALIGN="right" VALIGN="bottom"><A HREF="compile_compile.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD> |
| 303 |
</TR> |
| 304 |
</TABLE> |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
<P> |
| 309 |
<HR> |
| 310 |
<FONT SIZE="2"> |
| 311 |
<A HREF="mailto:[email protected]">Webmaster</A> |
| 312 |
<A HREF="copyright.html">Copyright © Ross N. Williams 1992,1999. All rights reserved.</A><BR> |
| 313 |
</FONT> |
| 314 |
|
| 315 |
</FONT> |
| 316 |
</TD> |
| 317 |
</TR> |
| 318 |
</TABLE> |
| 319 |
|
| 320 |
|
| 321 |
</BODY> |
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
</HTML> |