Hex Artifact Content
Not logged in

Artifact 17cd032afecbc996857a5cdcf6fef42978a72492:

Wiki page [Cookbook] by anonymous on 2009-01-27 21:45:22.

0000: 44 20 32 30 30 39 2d 30 31 2d 32 37 54 32 31 3a  D 2009-01-27T21:
0010: 34 35 3a 32 32 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b  45:22.L Cookbook
0020: 0a 50 20 36 39 62 32 39 31 66 36 34 64 65 31 35  .P 69b291f64de15
0030: 37 66 39 37 38 37 35 33 38 34 61 38 33 30 33 66  7f97875384a8303f
0040: 66 65 33 30 62 61 62 39 61 39 64 0a 55 20 61 6e  fe30bab9a9d.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 31 37 33 37 34 0a  onymous.W 17374.
0060: 3c 68 31 3e 46 6f 73 73 69 6c 20 43 6f 6f 6b 62  <h1>Fossil Cookb
0070: 6f 6f 6b 3c 2f 68 31 3e 0d 0a 54 68 65 20 3c 63  ook</h1>..The <c
0080: 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65  ite>Fossil</cite
0090: 3e 20 43 6f 6f 6b 62 6f 6f 6b 20 69 73 20 61 20  > Cookbook is a 
00a0: 63 6f 6c 6c 65 63 74 69 6f 6e 20 6f 66 20 74 61  collection of ta
00b0: 73 6b 2d 6f 72 69 65 6e 74 65 64 20 69 6e 73 74  sk-oriented inst
00c0: 72 75 63 74 69 6f 6e 73 20 66 6f 72 20 69 6e 74  ructions for int
00d0: 65 72 6d 65 64 69 61 74 65 20 75 73 65 72 73 20  ermediate users 
00e0: 77 68 6f 20 77 69 73 68 20 74 6f 20 64 6f 20 6d  who wish to do m
00f0: 6f 72 65 20 74 68 61 6e 20 62 61 73 69 63 20 6f  ore than basic o
0100: 70 65 72 61 74 69 6f 6e 73 20 77 69 74 68 20 74  perations with t
0110: 68 65 69 72 20 3c 63 69 74 65 3e 46 6f 73 73 69  heir <cite>Fossi
0120: 6c 3c 2f 63 69 74 65 3e 20 72 65 70 6f 73 69 74  l</cite> reposit
0130: 6f 72 69 65 73 2e 20 20 54 68 65 20 5b 54 75 74  ories.  The [Tut
0140: 6f 72 69 61 6c 7c 74 75 74 6f 72 69 61 6c 5d 20  orial|tutorial] 
0150: 69 73 20 61 20 6d 6f 72 65 20 73 75 69 74 61 62  is a more suitab
0160: 6c 65 20 70 6c 61 63 65 20 66 6f 72 20 6e 65 77  le place for new
0170: 63 6f 6d 65 72 73 20 74 72 79 69 6e 67 20 74 6f  comers trying to
0180: 20 6c 65 61 72 6e 20 74 68 65 20 62 61 73 69 63   learn the basic
0190: 20 63 6f 6e 63 65 70 74 73 20 74 6f 20 67 6f 20   concepts to go 
01a0: 66 69 72 73 74 20 62 65 66 6f 72 65 20 74 61 63  first before tac
01b0: 6b 6c 69 6e 67 20 74 68 65 73 65 20 72 65 63 69  kling these reci
01c0: 70 65 73 2e 0d 0a 0d 0a 3c 68 32 3e 49 6e 64 65  pes.....<h2>Inde
01d0: 78 3c 2f 68 32 3e 0d 0a 3c 75 6c 3e 0d 0a 20 20  x</h2>..<ul>..  
01e0: 3c 6c 69 3e 20 53 65 72 76 65 72 20 72 65 63 69  <li> Server reci
01f0: 70 65 73 3a 0d 0a 20 20 20 20 3c 75 6c 3e 0d 0a  pes:..    <ul>..
0200: 20 20 20 20 20 20 3c 6c 69 3e 20 20 3c 61 20 68        <li>  <a h
0210: 72 65 66 3d 22 23 43 47 49 22 3e 55 73 69 6e 67  ref="#CGI">Using
0220: 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63   <cite>Fossil</c
0230: 69 74 65 3e 27 73 20 42 75 69 6c 74 2d 49 6e 20  ite>'s Built-In 
0240: 43 47 49 3c 2f 61 3e 0d 0a 20 20 20 20 3c 2f 75  CGI</a>..    </u
0250: 6c 3e 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72  l>..  <li> <a hr
0260: 65 66 3d 22 23 65 6e 76 22 3e 55 73 69 6e 67 20  ef="#env">Using 
0270: 45 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  Environment vari
0280: 61 62 6c 65 73 3c 2f 61 3e 0d 0a 20 20 3c 6c 69  ables</a>..  <li
0290: 3e 20 3c 61 20 68 72 65 66 3d 22 23 63 73 73 22  > <a href="#css"
02a0: 3e 45 78 61 6d 70 6c 65 20 43 53 53 3c 2f 61 3e  >Example CSS</a>
02b0: 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65 66  ..  <li> <a href
02c0: 3d 22 23 73 6f 75 72 63 65 2d 68 69 6c 69 67 68  ="#source-hiligh
02d0: 74 22 3e 53 6f 75 72 63 65 20 68 69 67 68 6c 69  t">Source highli
02e0: 67 68 74 69 6e 67 3c 2f 61 3e 0d 0a 3c 2f 75 6c  ghting</a>..</ul
02f0: 3e 0d 0a 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65  >....<h2><a name
0300: 3d 22 43 47 49 22 3e 55 73 69 6e 67 20 3c 63 69  ="CGI">Using <ci
0310: 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e  te>Fossil</cite>
0320: 27 73 20 42 75 69 6c 74 2d 49 6e 20 43 47 49 3c  's Built-In CGI<
0330: 2f 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f  /a></h2>..<h3>Mo
0340: 74 69 76 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20  tivation</h3>.. 
0350: 20 2a 20 20 59 6f 75 20 77 61 6e 74 20 74 6f 20   *  You want to 
0360: 73 68 61 72 65 20 61 20 72 65 70 6f 73 69 74 6f  share a reposito
0370: 72 79 20 74 68 72 6f 75 67 68 20 79 6f 75 72 20  ry through your 
0380: 65 78 69 73 74 69 6e 67 20 77 65 62 20 69 6e 66  existing web inf
0390: 72 61 73 74 72 75 63 74 75 72 65 2e 0d 0a 20 20  rastructure...  
03a0: 2a 20 20 59 6f 75 20 77 61 6e 74 20 74 6f 20 73  *  You want to s
03b0: 68 61 72 65 20 6d 6f 72 65 20 74 68 61 6e 20 6f  hare more than o
03c0: 6e 65 20 72 65 70 6f 73 69 74 6f 72 79 20 61 74  ne repository at
03d0: 20 74 68 65 20 73 61 6d 65 20 74 69 6d 65 2e 0d   the same time..
03e0: 0a 0d 0a 3c 68 33 3e 50 72 6f 62 6c 65 6d 3c 2f  ...<h3>Problem</
03f0: 68 33 3e 0d 0a 55 6e 6c 69 6b 65 20 73 6f 6d 65  h3>..Unlike some
0400: 20 6f 74 68 65 72 20 64 69 73 74 72 69 62 75 74   other distribut
0410: 65 64 20 53 43 4d 73 2c 20 3c 63 69 74 65 3e 46  ed SCMs, <cite>F
0420: 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 63 61 6e  ossil</cite> can
0430: 20 6f 6e 6c 79 20 63 6c 6f 6e 65 2c 20 70 75 73   only clone, pus
0440: 68 2c 20 70 75 6c 6c 20 61 6e 64 20 61 6e 64 20  h, pull and and 
0450: 6f 74 68 65 72 77 69 73 65 20 69 6e 74 65 72 61  otherwise intera
0460: 63 74 20 74 68 72 6f 75 67 68 20 72 65 70 6f 73  ct through repos
0470: 69 74 6f 72 69 65 73 20 6f 76 65 72 20 48 54 54  itories over HTT
0480: 50 2e 20 20 54 68 69 73 20 63 61 6e 20 62 65 20  P.  This can be 
0490: 73 69 6d 70 6c 79 20 61 6e 64 20 65 61 73 69 6c  simply and easil
04a0: 79 20 6d 61 6e 61 67 65 64 20 74 68 72 6f 75 67  y managed throug
04b0: 68 20 75 73 65 20 6f 66 20 74 68 65 20 3c 63 6f  h use of the <co
04c0: 64 65 3e 66 6f 73 73 69 6c 20 73 65 72 76 65 72  de>fossil server
04d0: 3c 2f 63 6f 64 65 3e 20 61 6e 64 2f 6f 72 20 3c  </code> and/or <
04e0: 63 6f 64 65 3e 66 6f 73 73 69 6c 20 75 69 3c 2f  code>fossil ui</
04f0: 63 6f 64 65 3e 20 63 6f 6d 6d 61 6e 64 73 2c 20  code> commands, 
0500: 6f 66 20 63 6f 75 72 73 65 2c 20 62 75 74 20 74  of course, but t
0510: 68 69 73 20 69 73 20 72 65 61 6c 6c 79 20 6f 6e  his is really on
0520: 6c 79 20 61 64 65 71 75 61 74 65 20 66 6f 72 20  ly adequate for 
0530: 61 64 2d 68 6f 63 20 72 65 70 6f 73 69 74 6f 72  ad-hoc repositor
0540: 79 20 73 68 61 72 69 6e 67 2e 20 20 43 6f 6e 73  y sharing.  Cons
0550: 69 64 65 72 2c 20 66 6f 72 20 65 78 61 6d 70 6c  ider, for exampl
0560: 65 2c 20 73 68 61 72 69 6e 67 20 74 65 6e 20 72  e, sharing ten r
0570: 65 70 6f 73 69 74 6f 72 69 65 73 2e 20 20 55 73  epositories.  Us
0580: 69 6e 67 20 74 68 65 20 62 75 69 6c 74 2d 69 6e  ing the built-in
0590: 20 73 65 72 76 65 72 20 77 6f 75 6c 64 20 72 65   server would re
05a0: 71 75 69 72 65 20 79 6f 75 20 74 6f 20 6f 70 65  quire you to ope
05b0: 6e 20 74 65 6e 20 70 6f 72 74 73 20 69 6e 20 79  n ten ports in y
05c0: 6f 75 72 20 66 69 72 65 77 61 6c 6c 20 74 6f 20  our firewall to 
05d0: 70 65 72 6d 69 74 20 61 63 63 65 73 73 2e 20 20  permit access.  
05e0: 41 6e 79 20 73 65 72 69 6f 75 73 20 73 68 61 72  Any serious shar
05f0: 69 6e 67 20 77 69 6c 6c 20 72 65 71 75 69 72 65  ing will require
0600: 20 73 6f 6d 65 74 68 69 6e 67 20 6d 6f 72 65 20   something more 
0610: 72 6f 62 75 73 74 20 61 6e 64 20 70 65 72 6d 61  robust and perma
0620: 6e 65 6e 74 2e 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c  nent.....<h3>Sol
0630: 75 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 3c 63 69 74  ution</h3>..<cit
0640: 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20  e>Fossil</cite> 
0650: 73 75 70 70 6f 72 74 73 20 74 68 72 65 65 20 64  supports three d
0660: 69 66 66 65 72 65 6e 74 20 77 61 79 73 20 74 6f  ifferent ways to
0670: 20 73 68 61 72 65 20 72 65 70 6f 73 69 74 6f 72   share repositor
0680: 69 65 73 2e 20 20 46 6f 72 20 61 64 2d 68 6f 63  ies.  For ad-hoc
0690: 20 73 68 61 72 69 6e 67 20 3c 63 6f 64 65 3e 66   sharing <code>f
06a0: 6f 73 73 69 6c 20 73 65 72 76 65 72 2f 75 69 3c  ossil server/ui<
06b0: 2f 63 6f 64 65 3e 20 69 73 20 6d 6f 72 65 20 74  /code> is more t
06c0: 68 61 6e 20 61 64 65 71 75 61 74 65 2e 20 20 46  han adequate.  F
06d0: 6f 72 20 6d 6f 72 65 20 72 6f 62 75 73 74 20 73  or more robust s
06e0: 6f 6c 75 74 69 6f 6e 73 2c 20 68 6f 77 65 76 65  olutions, howeve
06f0: 72 2c 20 74 68 65 20 75 73 65 20 6f 66 20 3c 63  r, the use of <c
0700: 69 74 65 3e 28 78 29 69 6e 65 74 64 3c 2f 63 69  ite>(x)inetd</ci
0710: 74 65 3e 20 6f 72 20 43 47 49 20 73 75 70 70 6f  te> or CGI suppo
0720: 72 74 20 69 73 20 69 6e 64 69 63 61 74 65 64 2e  rt is indicated.
0730: 0d 0a 0d 0a 53 65 74 74 69 6e 67 20 75 70 20 66  ....Setting up f
0740: 6f 73 73 69 6c 20 66 6f 72 20 43 47 49 20 73 75  ossil for CGI su
0750: 70 70 6f 72 74 20 69 73 20 73 69 6d 70 6c 65 2e  pport is simple.
0760: 20 20 28 53 65 74 74 69 6e 67 20 75 70 20 79 6f    (Setting up yo
0770: 75 72 20 77 65 62 20 73 65 72 76 65 72 20 66 6f  ur web server fo
0780: 72 20 43 47 49 20 73 75 70 70 6f 72 74 20 6d 61  r CGI support ma
0790: 79 20 6f 72 20 6d 61 79 20 6e 6f 74 20 62 65 20  y or may not be 
07a0: 73 69 6d 70 6c 65 2c 20 62 75 74 20 69 74 20 69  simple, but it i
07b0: 73 20 6f 75 74 20 6f 66 20 73 63 6f 70 65 20 6f  s out of scope o
07c0: 66 20 74 68 69 73 20 72 65 63 69 70 65 2e 20 20  f this recipe.  
07d0: 43 6f 6e 73 75 6c 74 20 79 6f 75 72 20 77 65 62  Consult your web
07e0: 20 73 65 72 76 65 72 2f 73 65 72 76 69 63 65 20   server/service 
07f0: 70 72 6f 76 69 64 65 72 27 73 20 64 6f 63 75 6d  provider's docum
0800: 65 6e 74 61 74 69 6f 6e 20 66 6f 72 20 74 68 69  entation for thi
0810: 73 2e 29 0d 0a 0d 0a 3c 68 34 3e 55 4e 49 58 3c  s.)....<h4>UNIX<
0820: 2f 68 34 3e 0d 0a 20 20 31 2e 20 20 46 69 6e 64  /h4>..  1.  Find
0830: 20 79 6f 75 72 20 43 47 49 20 73 63 72 69 70 74   your CGI script
0840: 73 20 64 69 72 65 63 74 6f 72 79 20 28 69 66 20  s directory (if 
0850: 61 70 70 6c 69 63 61 62 6c 65 29 2e 20 20 54 68  applicable).  Th
0860: 69 73 20 69 73 20 63 6f 6d 6d 6f 6e 6c 79 20 73  is is commonly s
0870: 6f 6d 65 74 68 69 6e 67 20 6c 69 6b 65 20 3c 62  omething like <b
0880: 61 73 65 3e 2f 63 67 69 2d 62 69 6e 2f 2c 20 62  ase>/cgi-bin/, b
0890: 75 74 20 64 6f 65 73 20 6e 6f 74 20 68 61 76 65  ut does not have
08a0: 20 74 6f 20 62 65 2e 0d 0a 20 20 32 2e 20 20 49   to be...  2.  I
08b0: 6e 73 69 64 65 20 74 68 61 74 20 64 69 72 65 63  nside that direc
08c0: 74 6f 72 79 20 62 75 69 6c 64 20 61 20 73 63 72  tory build a scr
08d0: 69 70 74 20 66 69 6c 65 20 77 68 69 63 68 20 6c  ipt file which l
08e0: 6f 6f 6b 73 20 6c 69 6b 65 20 74 68 69 73 3a 3c  ooks like this:<
08f0: 62 72 3e 3c 63 6f 64 65 3e 3c 70 72 65 3e 20 20  br><code><pre>  
0900: 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20  #! /usr/bin/env 
0910: 66 6f 73 73 69 6c 3c 62 72 3e 20 20 72 65 70 6f  fossil<br>  repo
0920: 73 69 74 6f 72 79 3a 20 2f 66 75 6c 6c 2f 70 61  sitory: /full/pa
0930: 74 68 2f 74 6f 2f 72 65 70 6f 73 69 74 6f 72 79  th/to/repository
0940: 2f 66 69 6c 65 2e 66 73 6c 3c 2f 70 72 65 3e 3c  /file.fsl</pre><
0950: 2f 63 6f 64 65 3e 0d 0a 20 20 33 2e 20 20 45 6e  /code>..  3.  En
0960: 73 75 72 65 20 74 68 61 74 20 74 68 65 20 73 63  sure that the sc
0970: 72 69 70 74 20 66 69 6c 65 20 73 6f 20 67 65 6e  ript file so gen
0980: 65 72 61 74 65 64 20 69 73 20 73 65 74 20 65 78  erated is set ex
0990: 65 63 75 74 61 62 6c 65 20 66 6f 72 20 74 68 65  ecutable for the
09a0: 20 43 47 49 20 75 73 65 72 20 61 63 63 6f 75 6e   CGI user accoun
09b0: 74 2e 0d 0a 20 20 34 2e 20 20 45 6e 73 75 72 65  t...  4.  Ensure
09c0: 20 74 68 61 74 20 65 76 65 72 79 20 64 69 72 65   that every dire
09d0: 63 74 6f 72 79 20 69 6e 20 74 68 65 20 70 61 74  ctory in the pat
09e0: 68 20 6c 65 61 64 69 6e 67 20 74 6f 20 74 68 65  h leading to the
09f0: 20 72 65 70 6f 73 69 74 6f 72 79 20 69 73 20 20   repository is  
0a00: 62 72 6f 77 73 65 61 62 6c 65 20 28 63 68 6d 6f  browseable (chmo
0a10: 64 20 2b 78 29 20 74 6f 20 74 68 65 20 43 47 49  d +x) to the CGI
0a20: 20 75 73 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a   user account...
0a30: 20 20 35 2e 20 20 45 6e 73 75 72 65 20 74 68 61    5.  Ensure tha
0a40: 74 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79  t the repository
0a50: 20 66 69 6c 65 20 69 73 20 72 65 61 64 61 62 6c   file is readabl
0a60: 65 20 3c 65 6d 3e 61 6e 64 3c 2f 65 6d 3e 20 77  e <em>and</em> w
0a70: 72 69 74 61 62 6c 65 20 74 6f 20 74 68 65 20 43  ritable to the C
0a80: 47 49 20 75 73 65 72 20 61 63 63 6f 75 6e 74 2e  GI user account.
0a90: 0d 0a 0d 0a 54 68 65 20 66 6f 6c 6c 6f 77 69 6e  ....The followin
0aa0: 67 20 3c 63 69 74 65 3e 62 61 73 68 3c 2f 63 69  g <cite>bash</ci
0ab0: 74 65 3e 20 73 63 72 69 70 74 20 63 61 6e 20 62  te> script can b
0ac0: 65 20 72 75 6e 20 66 72 6f 6d 20 77 69 74 68 69  e run from withi
0ad0: 6e 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20  n the directory 
0ae0: 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 3c  containing the <
0af0: 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74  cite>Fossil</cit
0b00: 65 3e 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20  e> repositories 
0b10: 74 6f 20 62 65 20 73 68 61 72 65 64 20 28 61 6e  to be shared (an
0b20: 64 2c 20 6f 66 20 63 6f 75 72 73 65 2c 20 61 6c  d, of course, al
0b30: 74 65 72 65 64 20 66 6f 72 20 79 6f 75 72 20 73  tered for your s
0b40: 65 74 75 70 29 20 74 6f 20 73 65 74 20 73 6f 6d  etup) to set som
0b50: 65 20 6f 66 20 74 68 65 20 63 6f 6e 73 74 72 61  e of the constra
0b60: 69 6e 74 73 20 61 62 6f 76 65 20 75 70 20 61 75  ints above up au
0b70: 74 6f 6d 61 74 69 63 61 6c 6c 79 3a 0d 0a 0d 0a  tomatically:....
0b80: 3c 6e 6f 77 69 6b 69 3e 3c 66 6f 6e 74 20 66 61  <nowiki><font fa
0b90: 63 65 3d 22 6d 6f 6e 6f 73 70 61 63 65 22 3e 0d  ce="monospace">.
0ba0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
0bb0: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 20 3c  52a2a">&nbsp;1 <
0bc0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
0bd0: 72 3d 22 23 30 30 30 30 66 66 22 3e 23 21 20 2f  r="#0000ff">#! /
0be0: 75 73 72 2f 62 69 6e 2f 65 6e 76 20 62 61 73 68  usr/bin/env bash
0bf0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
0c00: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0c10: 61 22 3e 26 6e 62 73 70 3b 32 20 3c 2f 66 6f 6e  a">&nbsp;2 </fon
0c20: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
0c30: 30 30 38 62 38 62 22 3e 43 47 49 5f 52 4f 4f 54  008b8b">CGI_ROOT
0c40: 3c 2f 66 6f 6e 74 3e 3d 2f 75 73 72 2f 6c 69 62  </font>=/usr/lib
0c50: 2f 66 6f 73 73 69 6c 3c 62 72 3e 0d 0a 3c 66 6f  /fossil<br>..<fo
0c60: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0c70: 61 22 3e 26 6e 62 73 70 3b 33 20 3c 2f 66 6f 6e  a">&nbsp;3 </fon
0c80: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
0c90: 30 30 38 62 38 62 22 3e 52 45 50 4f 53 49 54 4f  008b8b">REPOSITO
0ca0: 52 59 5f 4f 57 4e 45 52 3c 2f 66 6f 6e 74 3e 3d  RY_OWNER</font>=
0cb0: 6d 69 63 68 61 65 6c 3c 62 72 3e 0d 0a 3c 66 6f  michael<br>..<fo
0cc0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0cd0: 61 22 3e 26 6e 62 73 70 3b 34 20 3c 2f 66 6f 6e  a">&nbsp;4 </fon
0ce0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
0cf0: 30 30 38 62 38 62 22 3e 43 47 49 5f 47 52 4f 55  008b8b">CGI_GROU
0d00: 50 3c 2f 66 6f 6e 74 3e 3d 77 77 77 2d 64 61 74  P</font>=www-dat
0d10: 61 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  a<br>..<font col
0d20: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0d30: 73 70 3b 35 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;5 </font><fon
0d40: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
0d50: 22 3e 3c 62 3e 69 66 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>if</b></fon
0d60: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
0d70: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
0d80: 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  >[</b></font>&nb
0d90: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
0da0: 23 36 61 35 61 63 64 22 3e 60 77 68 6f 61 6d 69  #6a5acd">`whoami
0db0: 60 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  `</font>&nbsp;<f
0dc0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
0dd0: 32 61 22 3e 3c 62 3e 3d 3c 2f 62 3e 3c 2f 66 6f  2a"><b>=</b></fo
0de0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
0df0: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 27  olor="#ff00ff">'
0e00: 72 6f 6f 74 27 3c 2f 66 6f 6e 74 3e 26 6e 62 73  root'</font>&nbs
0e10: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
0e20: 61 35 32 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e  a52a2a"><b>]</b>
0e30: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
0e40: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0e50: 61 22 3e 26 6e 62 73 70 3b 36 20 3c 2f 66 6f 6e  a">&nbsp;6 </fon
0e60: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
0e70: 61 35 32 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c  a52a2a"><b>then<
0e80: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
0e90: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
0ea0: 32 61 32 61 22 3e 26 6e 62 73 70 3b 37 20 3c 2f  2a2a">&nbsp;7 </
0eb0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
0ec0: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
0ed0: 35 32 61 32 61 22 3e 3c 62 3e 66 6f 72 3c 2f 62  52a2a"><b>for</b
0ee0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 72 65  ></font>&nbsp;re
0ef0: 70 6f 73 69 74 6f 72 79 20 3c 66 6f 6e 74 20 63  pository <font c
0f00: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
0f10: 62 3e 69 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26  b>in</b></font>&
0f20: 6e 62 73 70 3b 2a 2e 66 73 6c 3c 62 72 3e 0d 0a  nbsp;*.fsl<br>..
0f30: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
0f40: 32 61 32 61 22 3e 26 6e 62 73 70 3b 38 20 3c 2f  2a2a">&nbsp;8 </
0f50: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
0f60: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
0f70: 35 32 61 32 61 22 3e 3c 62 3e 64 6f 3c 2f 62 3e  52a2a"><b>do</b>
0f80: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
0f90: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0fa0: 61 22 3e 26 6e 62 73 70 3b 39 20 3c 2f 66 6f 6e  a">&nbsp;9 </fon
0fb0: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  t>&nbsp;&nbsp;&n
0fc0: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
0fd0: 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e  color="#008b8b">
0fe0: 53 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e 3d 3c 66  SOURCE</font>=<f
0ff0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
1000: 63 64 22 3e 60 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  cd">`</font><fon
1010: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
1020: 22 3e 3c 62 3e 70 77 64 3c 2f 62 3e 3c 2f 66 6f  "><b>pwd</b></fo
1030: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1040: 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 6f 6e 74  #6a5acd">`</font
1050: 3e 2f 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  >/<font color="#
1060: 61 30 32 30 66 30 22 3e 24 72 65 70 6f 73 69 74  a020f0">$reposit
1070: 6f 72 79 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ory</font><br>..
1080: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1090: 32 61 32 61 22 3e 31 30 20 3c 2f 66 6f 6e 74 3e  2a2a">10 </font>
10a0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
10b0: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  p;&nbsp;<font co
10c0: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 44 45  lor="#008b8b">DE
10d0: 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e  STINATION</font>
10e0: 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  =<font color="#a
10f0: 30 32 30 66 30 22 3e 24 43 47 49 5f 52 4f 4f 54  020f0">$CGI_ROOT
1100: 3c 2f 66 6f 6e 74 3e 2f 3c 66 6f 6e 74 20 63 6f  </font>/<font co
1110: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 7b  lor="#a020f0">${
1120: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
1130: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 72 65 70  or="#a020f0">rep
1140: 6f 73 69 74 6f 72 79 3c 2f 66 6f 6e 74 3e 3c 66  ository</font><f
1150: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1160: 32 61 22 3e 3c 62 3e 25 3c 2f 62 3e 3c 2f 66 6f  2a"><b>%</b></fo
1170: 6e 74 3e 2e 66 73 6c 3c 66 6f 6e 74 20 63 6f 6c  nt>.fsl<font col
1180: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 7d 3c 2f  or="#a020f0">}</
1190: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
11a0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
11b0: 3e 31 31 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >11 </font>&nbsp
11c0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  ;&nbsp;&nbsp;&nb
11d0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
11e0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f  #a52a2a"><b>echo
11f0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  </b></font><font
1200: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22   color="#ff00ff"
1210: 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66  >&nbsp;</font><f
1220: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1230: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
1240: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
1250: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 23 21  lor="#ff00ff">#!
1260: 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20 66 6f   /usr/bin/env fo
1270: 73 73 69 6c 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  ssil</font><font
1280: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
1290: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f  ><b>&quot;</b></
12a0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
12b0: 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70  ="#ff00ff">&nbsp
12c0: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
12d0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
12e0: 3e 26 67 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >&gt;</b></font>
12f0: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
1300: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 44 45 53  r="#a020f0">$DES
1310: 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c  TINATION</font><
1320: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
1330: 3d 22 23 61 35 32 61 32 61 22 3e 31 32 20 3c 2f  ="#a52a2a">12 </
1340: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
1350: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  ;&nbsp;&nbsp;<fo
1360: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
1370: 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f  a"><b>echo</b></
1380: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1390: 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70  ="#ff00ff">&nbsp
13a0: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
13b0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
13c0: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
13d0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
13e0: 66 66 30 30 66 66 22 3e 72 65 70 6f 73 69 74 6f  ff00ff">reposito
13f0: 72 79 3a 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  ry: </font><font
1400: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
1410: 3e 24 53 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e 3c  >$SOURCE</font><
1420: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
1430: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
1440: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  b></font><font c
1450: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26  olor="#ff00ff">&
1460: 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  nbsp;</font><fon
1470: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
1480: 22 3e 3c 62 3e 26 67 74 3b 26 67 74 3b 3c 2f 62  "><b>&gt;&gt;</b
1490: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
14a0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
14b0: 66 30 22 3e 24 44 45 53 54 49 4e 41 54 49 4f 4e  f0">$DESTINATION
14c0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
14d0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
14e0: 61 22 3e 31 33 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">13 </font>&nb
14f0: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  sp;&nbsp;&nbsp;&
1500: 6e 62 73 70 3b 63 68 6f 77 6e 20 3c 66 6f 6e 74  nbsp;chown <font
1510: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
1520: 3e 24 52 45 50 4f 53 49 54 4f 52 59 5f 4f 57 4e  >$REPOSITORY_OWN
1530: 45 52 3c 2f 66 6f 6e 74 3e 3a 3c 66 6f 6e 74 20  ER</font>:<font 
1540: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
1550: 24 43 47 49 5f 47 52 4f 55 50 3c 2f 66 6f 6e 74  $CGI_GROUP</font
1560: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
1570: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 53 4f  or="#a020f0">$SO
1580: 55 52 43 45 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  URCE</font><br>.
1590: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
15a0: 35 32 61 32 61 22 3e 31 34 20 3c 2f 66 6f 6e 74  52a2a">14 </font
15b0: 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  >&nbsp;&nbsp;&nb
15c0: 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  sp;&nbsp;<font c
15d0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
15e0: 62 3e 63 68 6d 6f 64 3c 2f 62 3e 3c 2f 66 6f 6e  b>chmod</b></fon
15f0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
1600: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 36 36  lor="#ff00ff">66
1610: 34 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  4</font>&nbsp;<f
1620: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
1630: 66 30 22 3e 24 53 4f 55 52 43 45 3c 2f 66 6f 6e  f0">$SOURCE</fon
1640: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
1650: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 35  lor="#a52a2a">15
1660: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
1670: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
1680: 63 68 6f 77 6e 20 72 6f 6f 74 3a 72 6f 6f 74 20  chown root:root 
1690: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30  <font color="#a0
16a0: 32 30 66 30 22 3e 24 44 45 53 54 49 4e 41 54 49  20f0">$DESTINATI
16b0: 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  ON</font><br>..<
16c0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
16d0: 61 32 61 22 3e 31 36 20 3c 2f 66 6f 6e 74 3e 26  a2a">16 </font>&
16e0: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70  nbsp;&nbsp;&nbsp
16f0: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
1700: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
1710: 63 68 6d 6f 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  chmod</b></font>
1720: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
1730: 72 3d 22 23 66 66 30 30 66 66 22 3e 37 35 35 3c  r="#ff00ff">755<
1740: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e  /font>&nbsp;<fon
1750: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
1760: 22 3e 24 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f  ">$DESTINATION</
1770: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
1780: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
1790: 3e 31 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >17 </font>&nbsp
17a0: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
17b0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
17c0: 64 6f 6e 65 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  done</b></font><
17d0: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
17e0: 3d 22 23 61 35 32 61 32 61 22 3e 31 38 20 3c 2f  ="#a52a2a">18 </
17f0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1800: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 6c  ="#a52a2a"><b>el
1810: 73 65 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72  se</b></font><br
1820: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
1830: 23 61 35 32 61 32 61 22 3e 31 39 20 3c 2f 66 6f  #a52a2a">19 </fo
1840: 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 73  nt>&nbsp;&nbsp;s
1850: 75 64 6f 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  udo <font color=
1860: 22 23 61 30 32 30 66 30 22 3e 24 30 3c 2f 66 6f  "#a020f0">$0</fo
1870: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
1880: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
1890: 2a 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  *</font><br>..<f
18a0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
18b0: 32 61 22 3e 32 30 20 3c 2f 66 6f 6e 74 3e 3c 66  2a">20 </font><f
18c0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
18d0: 32 61 22 3e 3c 62 3e 66 69 3c 2f 62 3e 3c 2f 66  2a"><b>fi</b></f
18e0: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 2f 66 6f 6e 74  ont><br>..</font
18f0: 3e 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 0d 0a 3c 68  ></nowiki>....<h
1900: 34 3e 57 69 6e 64 6f 77 73 3c 2f 68 34 3e 0d 0a  4>Windows</h4>..
1910: 3c 70 3e 57 68 69 6c 65 20 69 74 20 69 73 20 66  <p>While it is f
1920: 61 72 20 66 72 6f 6d 20 61 20 70 65 72 66 65 63  ar from a perfec
1930: 74 20 73 65 74 20 6f 66 20 69 6e 73 74 72 75 63  t set of instruc
1940: 74 69 6f 6e 73 2e 2e 20 68 65 72 65 20 61 72 65  tions.. here are
1950: 20 73 6f 6d 65 20 71 75 69 63 6b 20 6e 6f 74 65   some quick note
1960: 73 20 74 68 61 74 20 73 68 6f 75 6c 64 20 68 65  s that should he
1970: 6c 70 20 77 69 6e 64 6f 77 73 20 75 73 65 72 73  lp windows users
1980: 20 61 6c 6f 6e 67 20 74 68 65 20 77 61 79 2e 2e   along the way..
1990: 2e 3c 2f 70 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69  .</p>..<ul>..<li
19a0: 3e 79 6f 75 20 6e 65 65 64 20 66 6f 73 73 69 6c  >you need fossil
19b0: 2e 65 78 65 20 61 63 63 65 73 73 69 62 6c 65 20  .exe accessible 
19c0: 62 79 20 79 6f 75 72 20 77 65 62 20 73 65 72 76  by your web serv
19d0: 65 72 20 6f 72 20 6f 6e 20 79 6f 75 72 20 70 61  er or on your pa
19e0: 74 68 2e 2e 20 65 61 73 69 65 73 74 20 69 73 20  th.. easiest is 
19f0: 74 6f 20 6a 75 73 74 20 63 68 75 63 6b 20 69 74  to just chuck it
1a00: 20 69 6e 20 5c 25 53 59 53 54 45 4d 5f 52 4f 4f   in \%SYSTEM_ROO
1a10: 54 25 5c 20 28 75 73 75 61 6c 6c 79 20 63 3a 5c  T%\ (usually c:\
1a20: 77 69 6e 64 6f 77 73 5c 29 20 3c 2f 6c 69 3e 0d  windows\) </li>.
1a30: 0a 3c 6c 69 3e 61 73 73 75 6d 69 6e 67 20 79 6f  .<li>assuming yo
1a40: 75 20 61 72 65 20 72 75 6e 6e 69 6e 67 20 61 70  u are running ap
1a50: 61 63 68 65 2c 20 79 6f 75 20 6e 65 65 64 20 74  ache, you need t
1a60: 6f 20 65 69 74 68 65 72 20 61 64 64 20 74 68 65  o either add the
1a70: 20 45 78 65 63 43 47 49 20 74 6f 20 74 68 65 20   ExecCGI to the 
1a80: 6f 70 74 69 6f 6e 73 20 6f 6e 20 79 6f 75 72 20  options on your 
1a90: 44 6f 63 75 6d 65 6e 74 52 6f 6f 74 2c 20 6f 72  DocumentRoot, or
1aa0: 20 6d 61 6b 65 20 73 75 72 65 20 74 68 65 20 53   make sure the S
1ab0: 63 72 69 70 74 41 6c 69 61 73 20 64 69 72 65 63  criptAlias direc
1ac0: 74 69 76 65 20 69 73 20 73 65 74 20 61 6e 64 20  tive is set and 
1ad0: 70 75 74 20 79 6f 75 72 20 2e 63 67 69 20 66 69  put your .cgi fi
1ae0: 6c 65 73 20 69 6e 20 74 68 61 74 20 66 6f 6c 64  les in that fold
1af0: 65 72 2e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74  er..</li>..<li>t
1b00: 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 79  he contents of y
1b10: 6f 75 72 20 63 67 69 20 66 69 6c 65 20 6e 65 65  our cgi file nee
1b20: 64 73 20 74 6f 20 65 73 73 65 6e 74 69 61 6c 6c  ds to essentiall
1b30: 79 20 74 68 65 20 73 61 6d 65 20 61 73 20 61 62  y the same as ab
1b40: 6f 76 65 2e 2e 20 68 6f 77 65 76 65 72 20 70 61  ove.. however pa
1b50: 74 68 73 20 6e 65 65 64 73 20 74 6f 20 62 65 20  ths needs to be 
1b60: 77 69 6e 64 6f 77 73 20 66 72 69 65 6e 64 6c 79  windows friendly
1b70: 2e 2e 20 69 20 68 61 76 65 20 6d 61 64 65 20 73  .. i have made s
1b80: 75 72 65 20 74 68 61 74 20 61 6c 6c 20 66 6f 6c  ure that all fol
1b90: 64 65 72 73 20 6f 6e 20 6d 79 20 74 65 73 74 20  ders on my test 
1ba0: 62 6f 78 20 61 72 65 20 66 72 65 65 20 6f 66 20  box are free of 
1bb0: 73 70 61 63 65 73 2c 20 61 6e 64 20 61 73 20 73  spaces, and as s
1bc0: 75 63 68 20 74 68 69 73 20 66 69 6c 65 20 77 6f  uch this file wo
1bd0: 72 6b 73 20 66 6f 72 20 6d 65 20 28 6f 62 76 69  rks for me (obvi
1be0: 6f 75 73 6c 79 20 79 6f 75 72 20 70 61 74 68 73  ously your paths
1bf0: 20 6d 61 79 20 64 69 66 66 65 72 29 0d 0a 3c 70   may differ)..<p
1c00: 72 65 3e 0d 0a 23 21 20 66 6f 73 73 69 6c 2e 65  re>..#! fossil.e
1c10: 78 65 0d 0a 72 65 70 6f 73 69 74 6f 72 79 3a 20  xe..repository: 
1c20: 63 3a 2f 77 61 6d 70 2f 77 77 77 2f 64 65 76 2f  c:/wamp/www/dev/
1c30: 61 63 63 6f 75 6e 74 73 2e 66 6f 73 73 69 6c 0d  accounts.fossil.
1c40: 0a 3c 2f 70 72 65 3e 0d 0a 49 20 73 75 70 70 6f  .</pre>..I suppo
1c50: 73 65 20 79 6f 75 20 63 6f 75 6c 64 20 70 75 74  se you could put
1c60: 20 66 6f 73 73 69 6c 2e 65 78 65 20 73 6f 6d 65   fossil.exe some
1c70: 77 68 65 72 65 20 6d 6f 72 65 20 73 70 65 63 69  where more speci
1c80: 66 69 63 20 61 6e 64 20 73 65 74 20 74 68 65 20  fic and set the 
1c90: 70 61 74 68 20 74 6f 20 69 74 20 61 73 20 77 65  path to it as we
1ca0: 6c 6c 2c 20 62 75 74 20 73 69 6e 63 65 20 79 6f  ll, but since yo
1cb0: 75 20 61 72 65 20 70 72 6f 62 61 62 6c 79 20 75  u are probably u
1cc0: 73 69 6e 67 20 74 68 65 20 73 61 6d 65 20 65 78  sing the same ex
1cd0: 65 63 75 74 61 62 6c 65 20 66 6f 72 20 63 6d 64  ecutable for cmd
1ce0: 6c 69 6e 65 20 61 6e 64 20 63 67 69 20 69 74 20  line and cgi it 
1cf0: 6b 69 6e 64 20 6f 66 20 6a 75 73 74 20 6d 61 6b  kind of just mak
1d00: 65 73 20 73 65 6e 73 65 20 74 6f 20 70 75 74 20  es sense to put 
1d10: 69 74 20 73 6f 6d 65 77 68 65 72 65 20 6d 6f 72  it somewhere mor
1d20: 65 20 61 63 63 65 73 73 69 62 6c 65 3c 2f 6c 69  e accessible</li
1d30: 3e 0d 0a 3c 6c 69 3e 41 73 20 77 69 74 68 20 6d  >..<li>As with m
1d40: 6f 73 74 20 57 69 6e 64 6f 77 73 20 62 61 73 65  ost Windows base
1d50: 64 20 77 65 62 20 69 6e 73 74 72 75 63 74 69 6f  d web instructio
1d60: 6e 73 2c 20 70 65 72 6d 69 73 73 69 6f 6e 20 61  ns, permission a
1d70: 72 65 20 6e 6f 74 20 61 73 20 69 6d 70 6f 72 74  re not as import
1d80: 61 6e 74 2c 20 68 6f 77 65 76 65 72 20 61 74 20  ant, however at 
1d90: 74 68 65 20 6c 65 61 73 74 2c 20 79 6f 75 20 6e  the least, you n
1da0: 65 65 64 20 74 6f 20 6d 61 6b 65 20 73 75 72 65  eed to make sure
1db0: 20 74 68 61 74 20 79 6f 75 72 20 72 65 70 6f 73   that your repos
1dc0: 69 74 6f 72 79 20 69 73 20 6e 6f 74 20 66 6c 61  itory is not fla
1dd0: 67 67 65 64 20 72 65 61 64 2d 6f 6e 6c 79 2c 20  gged read-only, 
1de0: 61 73 20 79 6f 75 20 77 69 6c 6c 20 65 6e 63 6f  as you will enco
1df0: 75 6e 74 65 72 20 64 61 74 61 62 61 73 65 20 65  unter database e
1e00: 72 72 6f 72 73 20 69 66 20 69 74 20 69 73 2e 3c  rrors if it is.<
1e10: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 0d 0a 3c  /li>..</ul>....<
1e20: 68 33 3e 44 69 73 63 75 73 73 69 6f 6e 3c 2f 68  h3>Discussion</h
1e30: 33 3e 0d 0a 55 73 69 6e 67 20 74 68 65 20 43 47  3>..Using the CG
1e40: 49 20 73 65 72 76 65 72 20 69 73 20 74 68 65 20  I server is the 
1e50: 62 65 73 74 20 73 6f 6c 75 74 69 6f 6e 20 63 6f  best solution co
1e60: 6d 62 69 6e 69 6e 67 20 61 6e 20 65 78 69 73 74  mbining an exist
1e70: 69 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72  ing web infrastr
1e80: 75 63 74 75 72 65 20 61 6e 64 20 74 68 65 20 73  ucture and the s
1e90: 68 61 72 69 6e 67 20 6f 66 20 6d 61 6e 79 20 3c  haring of many <
1ea0: 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74  cite>Fossil</cit
1eb0: 65 3e 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e  e> repositories.
1ec0: 20 20 55 6e 6c 69 6b 65 20 74 68 65 20 61 64 2d    Unlike the ad-
1ed0: 68 6f 63 20 73 6f 6c 75 74 69 6f 6e 20 77 68 69  hoc solution whi
1ee0: 63 68 20 72 65 71 75 69 72 65 73 2c 20 69 6e 20  ch requires, in 
1ef0: 65 66 66 65 63 74 2c 20 61 20 73 65 70 61 72 61  effect, a separa
1f00: 74 65 20 70 6f 72 74 20 66 6f 72 20 65 61 63 68  te port for each
1f10: 20 73 69 6d 75 6c 74 61 6e 65 6f 75 73 6c 79 2d   simultaneously-
1f20: 73 68 61 72 65 64 20 72 65 70 6f 73 69 74 6f 72  shared repositor
1f30: 79 2c 20 61 6e 64 20 77 68 69 63 68 20 72 65 71  y, and which req
1f40: 75 69 72 65 73 20 73 65 76 65 72 61 6c 20 69 6e  uires several in
1f50: 73 74 61 6e 63 65 73 20 6f 66 20 66 6f 73 73 69  stances of fossi
1f60: 6c 20 72 75 6e 6e 69 6e 67 20 2d 2d 20 6f 6e 65  l running -- one
1f70: 20 66 6f 72 20 65 61 63 68 20 73 68 61 72 65 64   for each shared
1f80: 20 72 65 70 6f 73 69 74 6f 72 79 20 2d 2d 20 74   repository -- t
1f90: 68 65 20 43 47 49 20 61 70 70 72 6f 61 63 68 20  he CGI approach 
1fa0: 75 73 65 73 20 55 52 4c 73 20 74 6f 20 64 69 73  uses URLs to dis
1fb0: 74 69 6e 67 75 69 73 68 20 62 65 74 77 65 65 6e  tinguish between
1fc0: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 61 6e   repositories an
1fd0: 64 20 6f 6e 6c 79 20 28 62 72 69 65 66 6c 79 29  d only (briefly)
1fe0: 20 72 75 6e 73 20 61 20 63 6f 70 79 20 6f 66 20   runs a copy of 
1ff0: 66 6f 73 73 69 6c 20 77 68 65 6e 20 74 68 65 20  fossil when the 
2000: 72 65 70 6f 73 69 74 6f 72 79 20 69 73 20 61 63  repository is ac
2010: 74 75 61 6c 6c 79 20 61 63 63 65 73 73 65 64 2e  tually accessed.
2020: 0d 0a 0d 0a 53 68 61 72 69 6e 67 20 72 65 70 6f  ....Sharing repo
2030: 73 69 74 6f 72 69 65 73 20 77 69 74 68 20 43 47  sitories with CG
2040: 49 20 69 73 20 72 65 61 6c 6c 79 20 6f 6e 6c 79  I is really only
2050: 20 77 6f 72 74 68 20 74 68 65 20 65 66 66 6f 72   worth the effor
2060: 74 20 69 66 20 6d 6f 72 65 20 74 68 61 6e 20 6f  t if more than o
2070: 6e 65 20 72 65 70 6f 73 69 74 6f 72 79 20 69 73  ne repository is
2080: 20 62 65 69 6e 67 20 73 68 61 72 65 64 2c 20 68   being shared, h
2090: 6f 77 65 76 65 72 2e 20 20 57 69 74 68 20 6f 6e  owever.  With on
20a0: 6c 79 20 6f 6e 65 20 62 65 69 6e 67 20 73 68 61  ly one being sha
20b0: 72 65 64 2c 20 3c 63 6f 64 65 3e 66 6f 73 73 69  red, <code>fossi
20c0: 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64 65 3e 20  l server</code> 
20d0: 69 73 20 6c 69 6b 65 6c 79 20 6d 6f 72 65 20 74  is likely more t
20e0: 68 61 6e 20 61 64 65 71 75 61 74 65 20 6f 72 20  han adequate or 
20f0: 74 68 65 20 75 73 65 20 6f 66 20 28 78 29 69 6e  the use of (x)in
2100: 65 74 64 20 6d 61 79 20 62 65 20 69 6e 64 69 63  etd may be indic
2110: 61 74 65 64 2e 20 20 49 66 2c 20 68 6f 77 65 76  ated.  If, howev
2120: 65 72 2c 20 74 68 65 72 65 20 69 73 20 61 6c 72  er, there is alr
2130: 65 61 64 79 20 61 6e 20 65 78 69 73 74 69 6e 67  eady an existing
2140: 20 77 65 62 20 69 6e 66 72 61 73 74 72 75 63 74   web infrastruct
2150: 75 72 65 20 69 6e 20 70 6c 61 63 65 2c 20 43 47  ure in place, CG
2160: 49 20 73 74 69 6c 6c 20 6d 61 79 20 62 65 20 70  I still may be p
2170: 72 65 66 65 72 72 65 64 20 69 66 20 6f 6e 6c 79  referred if only
2180: 20 66 6f 72 20 63 6f 6e 73 69 73 74 65 6e 63 79   for consistency
2190: 20 61 6e 64 20 6d 61 69 6e 74 61 69 6e 61 62 69   and maintainabi
21a0: 6c 69 74 79 20 6f 66 20 74 68 65 20 73 79 73 74  lity of the syst
21b0: 65 6d 20 61 73 20 61 20 77 68 6f 6c 65 2e 0d 0a  em as a whole...
21c0: 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 65  ..<h2><a name="e
21d0: 6e 76 22 3e 55 73 69 6e 67 20 45 6e 76 69 72 6f  nv">Using Enviro
21e0: 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73 3c  nment variables<
21f0: 2f 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f  /a></h2>..<h3>Mo
2200: 74 69 76 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20  tivation</h3>.. 
2210: 20 2a 20 20 57 61 6e 74 20 74 6f 20 75 73 65 20   *  Want to use 
2220: 61 20 64 69 66 66 65 72 65 6e 74 20 65 64 69 74  a different edit
2230: 6f 72 20 66 6f 72 20 63 68 65 63 6b 69 6e 73 20  or for checkins 
2240: 28 55 6e 69 78 2f 57 69 6e 64 6f 77 73 29 0d 0a  (Unix/Windows)..
2250: 20 20 2a 20 20 55 73 65 20 61 20 70 72 6f 78 79    *  Use a proxy
2260: 20 69 66 20 79 6f 75 20 61 72 65 20 62 65 68 69   if you are behi
2270: 6e 64 20 61 20 66 69 72 65 77 61 6c 6c 0d 0a 0d  nd a firewall...
2280: 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68  .<h3>Solution</h
2290: 33 3e 0d 0a 45 6e 76 69 72 6f 6e 6d 65 6e 74 20  3>..Environment 
22a0: 76 61 72 69 61 62 6c 65 73 20 61 72 65 20 75 73  variables are us
22b0: 65 64 20 74 6f 20 63 75 73 74 6f 6d 69 7a 65 20  ed to customize 
22c0: 73 6f 6d 65 20 70 72 6f 67 72 61 6d 6d 65 20 62  some programme b
22d0: 65 68 61 76 69 6f 75 72 2e 20 4f 6e 20 4c 69 6e  ehaviour. On Lin
22e0: 75 78 2f 55 6e 69 78 20 74 68 65 79 20 63 61 6e  ux/Unix they can
22f0: 20 62 65 20 73 65 74 20 69 6e 20 79 6f 75 20 7e   be set in you ~
2300: 2f 2e 62 61 73 68 72 63 20 6f 72 20 65 76 65 6e  /.bashrc or even
2310: 20 6f 6e 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65   on command line
2320: 2e 20 4f 6e 20 57 69 6e 64 6f 77 73 20 74 68 65  . On Windows the
2330: 79 20 63 61 6e 20 62 65 20 73 65 74 20 69 6e 20  y can be set in 
2340: 74 68 65 20 73 79 73 74 65 6d 20 73 65 74 74 69  the system setti
2350: 6e 67 73 2e 0d 0a 0d 0a 3c 63 69 74 65 3e 46 6f  ngs.....<cite>Fo
2360: 73 73 69 6c 3c 2f 63 69 74 65 3e 20 63 68 65 63  ssil</cite> chec
2370: 6b 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  ks the following
2380: 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72   environment var
2390: 69 61 62 6c 65 73 3a 0d 0a 20 20 2a 20 20 56 49  iables:..  *  VI
23a0: 53 55 41 4c 2f 45 44 49 54 4f 52 0d 0a 20 20 2a  SUAL/EDITOR..  *
23b0: 20 20 68 74 74 70 5f 70 72 6f 78 79 0d 0a 20 20    http_proxy..  
23c0: 2a 20 20 54 4d 50 5f 44 49 52 0d 0a 20 20 2a 20  *  TMP_DIR..  * 
23d0: 20 47 41 54 45 57 41 59 5f 49 4e 54 45 52 46 41   GATEWAY_INTERFA
23e0: 43 45 0d 0a 20 20 2a 20 20 53 51 4c 49 54 45 5f  CE..  *  SQLITE_
23f0: 46 4f 52 43 45 5f 50 52 4f 58 59 5f 4c 4f 43 4b  FORCE_PROXY_LOCK
2400: 49 4e 47 0d 0a 20 20 2a 20 20 55 53 45 52 0d 0a  ING..  *  USER..
2410: 20 20 2a 20 20 55 53 45 52 4e 41 4d 45 0d 0a 0d    *  USERNAME...
2420: 0a 3c 62 3e 56 49 53 55 41 4c 2f 45 44 49 54 4f  .<b>VISUAL/EDITO
2430: 52 3c 2f 62 3e 20 63 6f 6e 74 61 69 6e 20 74 68  R</b> contain th
2440: 65 20 65 64 69 74 6f 72 20 6f 66 20 79 6f 75 72  e editor of your
2450: 20 63 68 6f 69 63 65 20 74 68 61 74 20 69 73 20   choice that is 
2460: 75 73 65 64 20 74 6f 20 77 72 69 74 65 20 74 68  used to write th
2470: 65 20 63 6f 6d 6d 69 74 20 66 69 6c 65 2e 0d 0a  e commit file...
2480: 0d 0a 3c 62 3e 54 4d 50 5f 44 49 52 3c 2f 62 3e  ..<b>TMP_DIR</b>
2490: 20 73 70 65 63 69 66 69 65 73 20 74 68 65 20 64   specifies the d
24a0: 69 72 65 63 74 6f 72 79 20 66 6f 72 20 74 65 6d  irectory for tem
24b0: 70 6f 72 61 72 79 20 66 69 6c 65 73 2e 0d 0a 0d  porary files....
24c0: 0a 3c 62 3e 47 41 54 45 57 41 59 5f 49 4e 54 45  .<b>GATEWAY_INTE
24d0: 52 46 41 43 45 3c 2f 62 3e 20 3f 3f 3f 0d 0a 0d  RFACE</b> ???...
24e0: 0a 3c 62 3e 53 51 4c 49 54 45 5f 46 4f 52 43 45  .<b>SQLITE_FORCE
24f0: 5f 50 52 4f 58 59 5f 4c 4f 43 4b 49 4e 47 3c 2f  _PROXY_LOCKING</
2500: 62 3e 20 3f 3f 3f 0d 0a 0d 0a 3c 62 3e 55 53 45  b> ???....<b>USE
2510: 52 3c 2f 62 3e 0d 0a 0d 0a 3c 62 3e 55 53 45 52  R</b>....<b>USER
2520: 4e 41 4d 45 3c 2f 62 3e 0d 0a 0d 0a 0d 0a 3c 68  NAME</b>......<h
2530: 32 3e 3c 61 20 6e 61 6d 65 3d 22 63 73 73 22 3e  2><a name="css">
2540: 3c 2f 61 3e 45 78 61 6d 70 6c 65 20 43 53 53 3c  </a>Example CSS<
2550: 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61  /h2>..<h3>Motiva
2560: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 20 64  tion</h3>..The d
2570: 65 66 61 75 6c 74 20 55 49 20 6d 61 79 20 6e 6f  efault UI may no
2580: 74 20 62 65 20 73 74 79 6c 69 73 68 20 69 6e 20  t be stylish in 
2590: 65 76 65 72 79 6f 6e 65 73 20 65 79 65 73 2e 0d  everyones eyes..
25a0: 0a 49 74 20 69 73 20 75 70 20 74 6f 20 79 6f 75  .It is up to you
25b0: 20 74 6f 20 63 68 61 6e 67 65 20 69 74 2e 20 53   to change it. S
25c0: 65 65 20 74 68 65 20 43 53 53 20 63 6f 64 65 20  ee the CSS code 
25d0: 62 65 6c 6f 77 20 66 72 6f 6d 20 74 68 69 73 20  below from this 
25e0: 73 69 74 65 20 5b 68 74 74 70 3a 2f 2f 66 6f 73  site [http://fos
25f0: 73 69 6c 2e 77 61 6e 64 65 72 69 6e 67 68 6f 72  sil.wanderinghor
2600: 73 65 2e 6e 65 74 2f 69 6e 64 65 78 2e 63 67 69  se.net/index.cgi
2610: 2f 69 6e 64 65 78 7c 57 61 6e 64 65 72 69 6e 67  /index|Wandering
2620: 20 48 6f 72 73 65 5d 0d 0a 0d 0a 3c 6e 6f 77 69   Horse]....<nowi
2630: 6b 69 3e 0d 0a 3c 70 72 65 3e 0d 0a 2f 2a 20 47  ki>..<pre>../* G
2640: 65 6e 65 72 61 6c 20 73 65 74 74 69 6e 67 73 20  eneral settings 
2650: 66 6f 72 20 74 68 65 20 65 6e 74 69 72 65 20 70  for the entire p
2660: 61 67 65 20 2a 2f 0d 0a 62 6f 64 79 20 7b 0d 0a  age */..body {..
2670: 20 20 6d 61 72 67 69 6e 3a 20 30 65 78 20 31 65    margin: 0ex 1e
2680: 78 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 30  x;..  padding: 0
2690: 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  px;..  backgroun
26a0: 64 2d 63 6f 6c 6f 72 3a 20 77 68 69 74 65 3b 0d  d-color: white;.
26b0: 0a 20 20 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 20  .  font-family: 
26c0: 22 73 61 6e 73 20 73 65 72 69 66 22 3b 0d 0a 7d  "sans serif";..}
26d0: 0d 0a 0d 0a 2f 2a 20 4d 61 6b 65 20 74 68 65 20  ..../* Make the 
26e0: 6c 69 6e 6b 73 20 69 6e 20 74 68 65 20 66 6f 6f  links in the foo
26f0: 74 65 72 20 6c 65 73 73 20 75 67 6c 79 2e 2e 2e  ter less ugly...
2700: 20 2a 2f 0d 0a 61 20 7b 20 63 6f 6c 6f 72 3a 20   */..a { color: 
2710: 23 30 30 30 66 36 61 3b 20 7d 0d 0a 61 3a 6c 69  #000f6a; }..a:li
2720: 6e 6b 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30  nk { color: #000
2730: 66 36 61 3b 20 7d 0d 0a 61 3a 76 69 73 69 74 65  f6a; }..a:visite
2740: 64 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  d { color: #000f
2750: 36 61 3b 20 7d 0d 0a 61 3a 68 6f 76 65 72 20 7b  6a; }..a:hover {
2760: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
2770: 72 3a 20 23 65 33 65 33 65 33 3b 20 7d 0d 0a 0d  r: #e3e3e3; }...
2780: 0a 0d 0a 68 72 20 7b 0d 0a 20 20 68 65 69 67 68  ...hr {..  heigh
2790: 74 3a 20 33 70 78 3b 0d 0a 20 20 62 6f 72 64 65  t: 3px;..  borde
27a0: 72 2d 74 6f 70 3a 20 6e 6f 6e 65 3b 20 2f 2a 31  r-top: none; /*1
27b0: 70 78 20 64 61 73 68 65 64 20 23 30 30 35 3b 2a  px dashed #005;*
27c0: 2f 0d 0a 20 20 62 6f 72 64 65 72 2d 62 6f 74 74  /..  border-bott
27d0: 6f 6d 3a 20 31 70 78 20 64 61 73 68 65 64 20 23  om: 1px dashed #
27e0: 30 30 35 3b 0d 0a 20 20 62 6f 72 64 65 72 2d 6c  005;..  border-l
27f0: 65 66 74 3a 20 6e 6f 6e 65 3b 0d 0a 20 20 62 6f  eft: none;..  bo
2800: 72 64 65 72 2d 72 69 67 68 74 3a 20 6e 6f 6e 65  rder-right: none
2810: 3b 0d 0a 7d 0d 0a 2f 2a 20 54 68 65 20 70 72 6f  ;..}../* The pro
2820: 6a 65 63 74 20 6c 6f 67 6f 20 69 6e 20 74 68 65  ject logo in the
2830: 20 75 70 70 65 72 20 6c 65 66 74 2d 68 61 6e 64   upper left-hand
2840: 20 63 6f 72 6e 65 72 20 6f 66 20 65 61 63 68 20   corner of each 
2850: 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 6c 6f 67  page */..div.log
2860: 6f 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20  o {..  display: 
2870: 74 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a 20 20 74  table-cell;..  t
2880: 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65  ext-align: cente
2890: 72 3b 0d 0a 20 20 76 65 72 74 69 63 61 6c 2d 61  r;..  vertical-a
28a0: 6c 69 67 6e 3a 20 62 6f 74 74 6f 6d 3b 0d 0a 20  lign: bottom;.. 
28b0: 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b   color: #000f6a;
28c0: 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 70 61  ..}..../* The pa
28d0: 67 65 20 74 69 74 6c 65 20 63 65 6e 74 65 72 65  ge title centere
28e0: 64 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20  d at the top of 
28f0: 65 61 63 68 20 70 61 67 65 20 2a 2f 0d 0a 64 69  each page */..di
2900: 76 2e 74 69 74 6c 65 20 7b 0d 0a 20 20 64 69 73  v.title {..  dis
2910: 70 6c 61 79 3a 20 74 61 62 6c 65 2d 63 65 6c 6c  play: table-cell
2920: 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20  ;..  font-size: 
2930: 32 65 6d 3b 0d 0a 20 20 66 6f 6e 74 2d 77 65 69  2em;..  font-wei
2940: 67 68 74 3a 20 62 6f 6c 64 3b 0d 0a 20 20 74 65  ght: bold;..  te
2950: 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72  xt-align: center
2960: 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30  ;..  color: #000
2970: 66 36 61 3b 0d 0a 20 20 76 65 72 74 69 63 61 6c  f6a;..  vertical
2980: 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 6f 6d 3b 0d  -align: bottom;.
2990: 0a 20 20 77 69 64 74 68 3a 20 31 30 30 25 3b 0d  .  width: 100%;.
29a0: 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 6c 6f 67  .}..../* The log
29b0: 69 6e 20 73 74 61 74 75 73 20 6d 65 73 73 61 67  in status messag
29c0: 65 20 69 6e 20 74 68 65 20 74 6f 70 20 72 69 67  e in the top rig
29d0: 68 74 2d 68 61 6e 64 20 63 6f 72 6e 65 72 20 2a  ht-hand corner *
29e0: 2f 0d 0a 64 69 76 2e 73 74 61 74 75 73 20 7b 0d  /..div.status {.
29f0: 0a 20 20 64 69 73 70 6c 61 79 3a 20 74 61 62 6c  .  display: tabl
2a00: 65 2d 63 65 6c 6c 3b 0d 0a 20 20 74 65 78 74 2d  e-cell;..  text-
2a10: 61 6c 69 67 6e 3a 20 72 69 67 68 74 3b 0d 0a 20  align: right;.. 
2a20: 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 6e 3a   vertical-align:
2a30: 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 63 6f 6c 6f   bottom;..  colo
2a40: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 20 20 66  r: #000f6a;..  f
2a50: 6f 6e 74 2d 73 69 7a 65 3a 20 30 2e 38 65 6d 3b  ont-size: 0.8em;
2a60: 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 68 65  ..}..../* The he
2a70: 61 64 65 72 20 61 63 72 6f 73 73 20 74 68 65 20  ader across the 
2a80: 74 6f 70 20 6f 66 20 74 68 65 20 70 61 67 65 20  top of the page 
2a90: 2a 2f 0d 0a 64 69 76 2e 68 65 61 64 65 72 20 7b  */..div.header {
2aa0: 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20 74 61 62  ..  display: tab
2ab0: 6c 65 3b 0d 0a 20 20 77 69 64 74 68 3a 20 31 30  le;..  width: 10
2ac0: 30 25 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67  0%;..  text-alig
2ad0: 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 7d 0d 0a 0d  n: center;..}...
2ae0: 0a 2f 2a 20 54 68 65 20 6d 61 69 6e 20 6d 65 6e  ./* The main men
2af0: 75 20 62 61 72 20 74 68 61 74 20 61 70 70 65 61  u bar that appea
2b00: 72 73 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66  rs at the top of
2b10: 20 74 68 65 20 70 61 67 65 20 62 65 6e 65 61 74   the page beneat
2b20: 68 0d 0a 2a 2a 20 74 68 65 20 68 65 61 64 65 72  h..** the header
2b30: 20 2a 2f 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e   */..div.mainmen
2b40: 75 20 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20  u {..  padding: 
2b50: 32 70 78 20 35 70 78 20 32 70 78 20 35 70 78 3b  2px 5px 2px 5px;
2b60: 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30  ..  font-size: 0
2b70: 2e 39 65 6d 3b 0d 0a 20 20 74 65 78 74 2d 61 6c  .9em;..  text-al
2b80: 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20  ign: center;..  
2b90: 6c 65 74 74 65 72 2d 73 70 61 63 69 6e 67 3a 20  letter-spacing: 
2ba0: 31 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75  1px;..  backgrou
2bb0: 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65  nd-color: #e3e3e
2bc0: 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30  3;..  color: #00
2bd0: 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64 65 72 3a  0f6a;..  border:
2be0: 20 31 70 78 20 69 6e 73 65 74 20 62 6c 61 63 6b   1px inset black
2bf0: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 73  ;..}..../* The s
2c00: 75 62 6d 65 6e 75 20 62 61 72 20 74 68 61 74 20  ubmenu bar that 
2c10: 2a 73 6f 6d 65 74 69 6d 65 73 2a 20 61 70 70 65  *sometimes* appe
2c20: 61 72 73 20 62 65 6c 6f 77 20 74 68 65 20 6d 61  ars below the ma
2c30: 69 6e 20 6d 65 6e 75 20 2a 2f 0d 0a 64 69 76 2e  in menu */..div.
2c40: 73 75 62 6d 65 6e 75 20 7b 0d 0a 20 20 70 61 64  submenu {..  pad
2c50: 64 69 6e 67 3a 20 32 70 78 20 35 70 78 20 32 70  ding: 2px 5px 2p
2c60: 78 20 35 70 78 3b 0d 0a 20 20 66 6f 6e 74 2d 73  x 5px;..  font-s
2c70: 69 7a 65 3a 20 30 2e 39 65 6d 3b 0d 0a 20 20 74  ize: 0.9em;..  t
2c80: 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65  ext-align: cente
2c90: 72 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64  r;..  background
2ca0: 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b  -color: #e3e3e3;
2cb0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  ..  color: #000f
2cc0: 36 61 3b 0d 0a 7d 0d 0a 64 69 76 2e 6d 61 69 6e  6a;..}..div.main
2cd0: 6d 65 6e 75 20 61 2c 20 64 69 76 2e 6d 61 69 6e  menu a, div.main
2ce0: 6d 65 6e 75 20 61 3a 76 69 73 69 74 65 64 2c 20  menu a:visited, 
2cf0: 64 69 76 2e 73 75 62 6d 65 6e 75 20 61 2c 20 64  div.submenu a, d
2d00: 69 76 2e 73 75 62 6d 65 6e 75 20 61 3a 76 69 73  iv.submenu a:vis
2d10: 69 74 65 64 20 7b 0d 0a 20 20 70 61 64 64 69 6e  ited {..  paddin
2d20: 67 3a 20 32 70 78 20 31 30 70 78 20 32 70 78 20  g: 2px 10px 2px 
2d30: 31 30 70 78 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  10px;..  color: 
2d40: 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 61 63 6b  #000f6a;..  back
2d50: 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65  ground-color: #e
2d60: 33 65 33 65 33 3b 0d 0a 20 20 74 65 78 74 2d 64  3e3e3;..  text-d
2d70: 65 63 6f 72 61 74 69 6f 6e 3a 20 6e 6f 6e 65 3b  ecoration: none;
2d80: 0d 0a 7d 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e  ..}..div.mainmen
2d90: 75 20 61 3a 68 6f 76 65 72 2c 20 64 69 76 2e 73  u a:hover, div.s
2da0: 75 62 6d 65 6e 75 20 61 3a 68 6f 76 65 72 20 7b  ubmenu a:hover {
2db0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 65 33 65 33  ..  color: #e3e3
2dc0: 65 33 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  e3;..  backgroun
2dd0: 64 2d 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61  d-color: #000f6a
2de0: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 41 6c 6c 20 70  ;..}..../* All p
2df0: 61 67 65 20 63 6f 6e 74 65 6e 74 20 66 72 6f 6d  age content from
2e00: 20 74 68 65 20 62 6f 74 74 6f 6d 20 6f 66 20 74   the bottom of t
2e10: 68 65 20 6d 65 6e 75 20 6f 72 20 73 75 62 6d 65  he menu or subme
2e20: 6e 75 20 64 6f 77 6e 20 74 6f 0d 0a 2a 2a 20 74  nu down to..** t
2e30: 68 65 20 66 6f 6f 74 65 72 20 2a 2f 0d 0a 64 69  he footer */..di
2e40: 76 2e 63 6f 6e 74 65 6e 74 20 7b 0d 0a 20 20 70  v.content {..  p
2e50: 61 64 64 69 6e 67 3a 20 30 65 78 20 31 65 78 20  adding: 0ex 1ex 
2e60: 30 65 78 20 32 65 78 3b 0d 0a 7d 0d 0a 0d 0a 2f  0ex 2ex;..}..../
2e70: 2a 20 53 6f 6d 65 20 70 61 67 65 73 20 68 61 76  * Some pages hav
2e80: 65 20 73 65 63 74 69 6f 6e 20 64 69 76 69 64 65  e section divide
2e90: 72 73 20 2a 2f 0d 0a 64 69 76 2e 73 65 63 74 69  rs */..div.secti
2ea0: 6f 6e 20 7b 0d 0a 20 20 6d 61 72 67 69 6e 2d 62  on {..  margin-b
2eb0: 6f 74 74 6f 6d 3a 20 30 70 78 3b 0d 0a 20 20 6d  ottom: 0px;..  m
2ec0: 61 72 67 69 6e 2d 74 6f 70 3a 20 31 65 6d 3b 0d  argin-top: 1em;.
2ed0: 0a 20 20 70 61 64 64 69 6e 67 3a 20 31 70 78 20  .  padding: 1px 
2ee0: 31 70 78 20 31 70 78 20 31 70 78 3b 0d 0a 20 20  1px 1px 1px;..  
2ef0: 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e 32 65 6d  font-size: 1.2em
2f00: 3b 0d 0a 20 20 66 6f 6e 74 2d 77 65 69 67 68 74  ;..  font-weight
2f10: 3a 20 62 6f 6c 64 3b 0d 0a 20 20 62 61 63 6b 67  : bold;..  backg
2f20: 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33  round-color: #e3
2f30: 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  e3e3;..  color: 
2f40: 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a 0d 0a 2f  #000f6a;..}..../
2f50: 2a 20 54 68 65 20 22 44 61 74 65 22 20 74 68 61  * The "Date" tha
2f60: 74 20 6f 63 63 75 72 73 20 6f 6e 20 74 68 65 20  t occurs on the 
2f70: 6c 65 66 74 20 68 61 6e 64 20 73 69 64 65 20 6f  left hand side o
2f80: 66 20 74 69 6d 65 6c 69 6e 65 73 20 2a 2f 0d 0a  f timelines */..
2f90: 64 69 76 2e 64 69 76 69 64 65 72 20 7b 0d 0a 20  div.divider {.. 
2fa0: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
2fb0: 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 20 63  r: #e3e3e3;..  c
2fc0: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a  olor: #000f6a;..
2fd0: 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 23 62    border: 1px #b
2fe0: 62 62 62 66 66 20 73 6f 6c 69 64 3b 0d 0a 20 20  bbbff solid;..  
2ff0: 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 65 6d 3b 20  font-size: 1em; 
3000: 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20 6e 6f 72  font-weight: nor
3010: 6d 61 6c 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a  mal;..  padding:
3020: 20 2e 32 35 65 6d 3b 0d 0a 20 20 6d 61 72 67 69   .25em;..  margi
3030: 6e 3a 20 2e 32 65 6d 20 30 20 2e 32 65 6d 20 30  n: .2em 0 .2em 0
3040: 3b 0d 0a 20 20 66 6c 6f 61 74 3a 20 6c 65 66 74  ;..  float: left
3050: 3b 0d 0a 20 20 63 6c 65 61 72 3a 20 6c 65 66 74  ;..  clear: left
3060: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 66  ;..}..../* The f
3070: 6f 6f 74 65 72 20 61 74 20 74 68 65 20 76 65 72  ooter at the ver
3080: 79 20 62 6f 74 74 6f 6d 20 6f 66 20 74 68 65 20  y bottom of the 
3090: 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 66 6f 6f  page */..div.foo
30a0: 74 65 72 20 7b 0d 0a 20 20 66 6f 6e 74 2d 73 69  ter {..  font-si
30b0: 7a 65 3a 20 30 2e 38 65 6d 3b 0d 0a 20 20 70 61  ze: 0.8em;..  pa
30c0: 64 64 69 6e 67 3a 20 32 70 78 20 35 70 78 20 32  dding: 2px 5px 2
30d0: 70 78 20 35 70 78 3b 0d 0a 20 20 74 65 78 74 2d  px 5px;..  text-
30e0: 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a  align: center;..
30f0: 20 20 6c 65 74 74 65 72 2d 73 70 61 63 69 6e 67    letter-spacing
3100: 3a 20 31 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72  : 1px;..  backgr
3110: 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65  ound-color: #e3e
3120: 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23  3e3;..  color: #
3130: 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64 65  000f6a;..  borde
3140: 72 3a 20 31 70 78 20 69 6e 73 65 74 20 62 6c 61  r: 1px inset bla
3150: 63 6b 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 4d 61 6b  ck;..}..../* Mak
3160: 65 20 74 68 65 20 6c 69 6e 6b 73 20 69 6e 20 74  e the links in t
3170: 68 65 20 66 6f 6f 74 65 72 20 6c 65 73 73 20 75  he footer less u
3180: 67 6c 79 2e 2e 2e 20 2a 2f 0d 0a 64 69 76 2e 66  gly... */..div.f
3190: 6f 6f 74 65 72 20 61 20 7b 20 63 6f 6c 6f 72 3a  ooter a { color:
31a0: 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 69 76   #000f6a; }..div
31b0: 2e 66 6f 6f 74 65 72 20 61 3a 6c 69 6e 6b 20 7b  .footer a:link {
31c0: 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b   color: #000f6a;
31d0: 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 20 61   }..div.footer a
31e0: 3a 76 69 73 69 74 65 64 20 7b 20 63 6f 6c 6f 72  :visited { color
31f0: 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 69  : #000f6a; }..di
3200: 76 2e 66 6f 6f 74 65 72 20 61 3a 68 6f 76 65 72  v.footer a:hover
3210: 20 7b 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f   { background-co
3220: 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 63 6f  lor: #000f6a; co
3230: 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 20 7d 0d  lor: #e3e3e3; }.
3240: 0a 0d 0a 2f 2a 20 76 65 72 62 61 74 69 6d 20 62  .../* verbatim b
3250: 6c 6f 63 6b 73 20 2a 2f 0d 0a 70 72 65 2e 76 65  locks */..pre.ve
3260: 72 62 61 74 69 6d 20 7b 0d 0a 20 20 20 62 61 63  rbatim {..   bac
3270: 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23  kground-color: #
3280: 66 35 66 35 66 35 3b 0d 0a 20 20 20 70 61 64 64  f5f5f5;..   padd
3290: 69 6e 67 3a 20 30 2e 35 65 6d 3b 0d 0a 7d 0d 0a  ing: 0.5em;..}..
32a0: 0d 0a 2f 2a 20 54 68 65 20 6c 61 62 65 6c 2f 76  ../* The label/v
32b0: 61 6c 75 65 20 70 61 69 72 73 20 6f 6e 20 28 66  alue pairs on (f
32c0: 6f 72 20 65 78 61 6d 70 6c 65 29 20 74 68 65 20  or example) the 
32d0: 76 69 6e 66 6f 20 70 61 67 65 20 2a 2f 0d 0a 74  vinfo page */..t
32e0: 61 62 6c 65 2e 6c 61 62 65 6c 2d 76 61 6c 75 65  able.label-value
32f0: 20 74 68 20 7b 0d 0a 20 20 76 65 72 74 69 63 61   th {..  vertica
3300: 6c 2d 61 6c 69 67 6e 3a 20 74 6f 70 3b 0d 0a 20  l-align: top;.. 
3310: 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 72 69 67   text-align: rig
3320: 68 74 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20  ht;..  padding: 
3330: 30 2e 32 65 78 20 32 65 78 3b 0d 0a 7d 0d 0a 0d  0.2ex 2ex;..}...
3340: 0a 2f 2a 20 46 6f 72 20 6d 61 72 6b 69 6e 67 20  ./* For marking 
3350: 69 6d 70 6f 72 74 61 6e 74 20 55 49 20 65 6c 65  important UI ele
3360: 6d 65 6e 74 73 20 77 68 69 63 68 20 73 68 6f 75  ments which shou
3370: 6c 64 6e 27 74 20 62 65 0d 0a 20 20 20 6c 69 67  ldn't be..   lig
3380: 68 74 6c 79 20 64 69 73 6d 69 73 73 65 64 2e 20  htly dismissed. 
3390: 49 20 6d 61 69 6e 6c 79 20 75 73 65 20 69 74 20  I mainly use it 
33a0: 74 6f 20 6d 61 72 6b 20 22 6e 6f 74 20 79 65 74  to mark "not yet
33b0: 0d 0a 20 20 20 69 6d 70 6c 65 6d 65 6e 74 65 64  ..   implemented
33c0: 22 20 70 61 72 74 73 20 6f 66 20 61 20 70 61 67  " parts of a pag
33d0: 65 2e 20 57 68 65 74 68 65 72 20 6f 72 20 6e 6f  e. Whether or no
33e0: 74 20 74 6f 20 68 61 76 65 0d 0a 20 20 20 61 20  t to have..   a 
33f0: 27 62 6f 72 64 65 72 27 20 61 74 74 72 69 62 75  'border' attribu
3400: 74 65 20 73 65 74 20 69 73 20 61 72 67 75 61 62  te set is arguab
3410: 6c 65 2e 20 2a 2f 0d 0a 2e 61 63 68 74 75 6e 67  le. */...achtung
3420: 20 7b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 66 66   {..  color: #ff
3430: 30 30 30 30 3b 0d 0a 20 20 62 61 63 6b 67 72 6f  0000;..  backgro
3440: 75 6e 64 3a 20 23 66 66 66 66 30 30 3b 0d 0a 20  und: #ffff00;.. 
3450: 20 62 6f 72 64 65 72 3a 20 31 70 78 20 73 6f 6c   border: 1px sol
3460: 69 64 20 23 66 66 30 30 30 30 3b 0d 0a 7d 0d 0a  id #ff0000;..}..
3470: 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64  ..table.fossil_d
3480: 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f  b_generic_query_
3490: 76 69 65 77 20 7b 0d 0a 20 20 62 6f 72 64 65 72  view {..  border
34a0: 2d 73 70 61 63 69 6e 67 3a 20 30 70 78 3b 0d 0a  -spacing: 0px;..
34b0: 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 73 6f    border: 1px so
34c0: 6c 69 64 20 62 6c 61 63 6b 3b 0d 0a 7d 0d 0a 74  lid black;..}..t
34d0: 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67  able.fossil_db_g
34e0: 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65  eneric_query_vie
34f0: 77 20 74 64 20 7b 0d 0a 20 20 70 61 64 64 69 6e  w td {..  paddin
3500: 67 3a 20 32 70 78 20 31 65 6d 20 32 70 78 20 31  g: 2px 1em 2px 1
3510: 65 6d 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f  em;..}..table.fo
3520: 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f  ssil_db_generic_
3530: 71 75 65 72 79 5f 76 69 65 77 20 74 72 20 7b 0d  query_view tr {.
3540: 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c  .}..table.fossil
3550: 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72  _db_generic_quer
3560: 79 5f 76 69 65 77 20 74 72 2e 65 76 65 6e 20 7b  y_view tr.even {
3570: 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20  ..  background: 
3580: 23 66 66 66 66 66 66 3b 0d 0a 7d 0d 0a 74 61 62  #ffffff;..}..tab
3590: 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e  le.fossil_db_gen
35a0: 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65 77 20  eric_query_view 
35b0: 74 72 2e 6f 64 64 20 7b 0d 0a 20 20 62 61 63 6b  tr.odd {..  back
35c0: 67 72 6f 75 6e 64 3a 20 23 65 35 65 35 65 35 3b  ground: #e5e5e5;
35d0: 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69  ..}..table.fossi
35e0: 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65  l_db_generic_que
35f0: 72 79 5f 76 69 65 77 20 74 72 2e 68 65 61 64 65  ry_view tr.heade
3600: 72 20 7b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  r {..  backgroun
3610: 64 3a 20 23 35 35 38 31 39 35 3b 0d 0a 20 20 66  d: #558195;..  f
3620: 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e 35 65 6d 3b  ont-size: 1.5em;
3630: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 66 66 66 66  ..  color: #ffff
3640: 66 66 3b 0d 0a 7d 0d 0a 3c 2f 70 72 65 3e 0d 0a  ff;..}..</pre>..
3650: 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 3c 68 32 3e 3c  </nowiki>..<h2><
3660: 61 20 6e 61 6d 65 3d 22 73 6f 75 72 63 65 2d 68  a name="source-h
3670: 69 6c 69 67 68 74 22 3e 53 6f 75 72 63 65 20 68  ilight">Source h
3680: 69 67 68 6c 69 67 68 74 69 6e 67 3c 2f 61 3e 3c  ighlighting</a><
3690: 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61  /h2>..<h3>Motiva
36a0: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20  tion</h3>..  *  
36b0: 59 6f 75 20 77 61 6e 74 20 74 6f 20 68 61 76 65  You want to have
36c0: 20 73 6f 75 72 63 65 20 63 6f 64 65 20 68 69 67   source code hig
36d0: 68 6c 69 67 68 74 69 6e 67 20 66 6f 72 20 74 68  hlighting for th
36e0: 65 20 66 69 6c 65 73 20 69 6e 20 79 6f 75 72 20  e files in your 
36f0: 72 65 70 6f 73 69 74 6f 72 79 0d 0a 0d 0a 3c 68  repository....<h
3700: 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a  3>Problem</h3>..
3710: 54 68 65 20 6d 61 69 6e 20 70 75 72 70 6f 73 65  The main purpose
3720: 20 6f 66 20 46 6f 73 73 69 6c 20 69 73 20 74 6f   of Fossil is to
3730: 20 64 6f 20 76 65 72 73 69 6f 6e 69 6e 67 20 74   do versioning t
3740: 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 2e 20  he source code. 
3750: 41 6c 74 68 6f 75 67 68 20 69 74 20 70 72 6f 76  Although it prov
3760: 69 64 65 73 20 61 20 73 74 61 6e 64 61 6c 6f 6e  ides a standalon
3770: 65 20 73 65 72 76 65 72 20 61 6e 64 20 6c 65 74  e server and let
3780: 73 20 79 6f 75 20 6e 61 76 69 67 61 74 65 20 74  s you navigate t
3790: 68 72 6f 75 67 68 20 74 68 65 20 72 65 70 6f 73  hrough the repos
37a0: 69 74 6f 72 79 20 66 69 6c 65 73 20 61 64 64 69  itory files addi
37b0: 74 69 6f 6e 61 6c 20 66 65 61 74 75 72 65 73 20  tional features 
37c0: 6c 69 6b 65 20 73 6f 75 72 63 65 20 63 6f 64 65  like source code
37d0: 20 68 69 67 68 6c 69 67 68 74 69 6e 67 20 66 72   highlighting fr
37e0: 6f 6d 20 6d 79 20 70 65 72 73 70 65 63 74 69 76  om my perspectiv
37f0: 65 20 28 49 20 61 6d 20 6e 6f 74 20 61 20 64 65  e (I am not a de
3800: 76 65 6c 6f 70 65 72 20 6f 66 20 46 6f 73 73 69  veloper of Fossi
3810: 6c 29 20 69 73 20 6f 75 74 20 6f 66 20 73 63 6f  l) is out of sco
3820: 70 65 20 66 6f 72 20 61 6e 20 53 43 4d 2e 20 4a  pe for an SCM. J
3830: 75 73 74 20 6b 65 65 70 20 74 68 65 20 55 6e 69  ust keep the Uni
3840: 78 20 70 72 69 6e 63 69 70 6c 65 3a 20 73 6d 61  x principle: sma
3850: 6c 6c 20 6c 69 74 74 6c 65 20 70 72 6f 67 72 61  ll little progra
3860: 6d 73 20 74 68 61 74 20 64 6f 20 74 68 65 69 72  ms that do their
3870: 20 74 61 73 6b 20 61 6e 64 20 64 6f 20 69 74 20   task and do it 
3880: 77 65 6c 6c 2e 0d 0a 0d 0a 48 6f 77 65 76 65 72  well.....However
3890: 20 74 6f 20 68 61 76 65 20 61 20 73 6f 75 72 63   to have a sourc
38a0: 65 20 63 6f 64 65 20 68 69 67 68 6c 69 67 68 74  e code highlight
38b0: 69 6e 67 20 69 6e 20 74 68 65 20 70 72 65 73 65  ing in the prese
38c0: 6e 74 65 64 20 77 65 62 20 70 61 67 65 73 20 77  nted web pages w
38d0: 6f 75 6c 64 20 73 74 69 6c 6c 20 62 65 20 64 65  ould still be de
38e0: 73 69 72 61 62 6c 65 2e 0d 0a 0d 0a 3c 68 33 3e  sirable.....<h3>
38f0: 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54  Solution</h3>..T
3900: 68 65 72 65 20 61 72 65 20 74 77 6f 20 73 63 65  here are two sce
3910: 6e 61 72 69 6f 73 20 68 6f 77 20 74 6f 20 69 6d  narios how to im
3920: 70 6c 65 6d 65 6e 74 20 73 75 63 68 20 61 20 66  plement such a f
3930: 65 61 74 75 72 65 3a 0d 0a 20 20 20 2a 20 20 46  eature:..   *  F
3940: 6f 73 73 69 6c 20 70 69 70 65 73 20 74 68 65 20  ossil pipes the 
3950: 73 6f 75 72 63 65 20 63 6f 64 65 20 74 68 72 6f  source code thro
3960: 75 67 68 20 61 20 66 69 6c 74 65 72 20 62 65 66  ugh a filter bef
3970: 6f 72 65 20 73 65 6e 64 69 6e 67 20 69 74 20 74  ore sending it t
3980: 6f 20 74 68 65 20 62 72 6f 77 73 65 72 2e 20 54  o the browser. T
3990: 68 65 20 66 69 6c 74 65 72 20 63 6f 75 6c 64 20  he filter could 
39a0: 62 65 20 64 65 66 69 6e 65 64 20 61 73 20 61 20  be defined as a 
39b0: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6f 70  configuration op
39c0: 74 69 6f 6e 20 74 6f 20 46 6f 73 73 69 6c 2e 20  tion to Fossil. 
39d0: 4f 6e 65 20 73 6f 6c 75 74 69 6f 6e 20 66 6f 72  One solution for
39e0: 20 74 68 69 73 20 6d 69 67 68 74 20 62 65 20 74   this might be t
39f0: 68 65 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70  he <a href="http
3a00: 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 73  ://www.gnu.org/s
3a10: 6f 66 74 77 61 72 65 2f 73 72 63 2d 68 69 67 68  oftware/src-high
3a20: 6c 69 74 65 22 3e 47 4e 55 20 53 6f 75 72 63 65  lite">GNU Source
3a30: 20 63 6f 64 65 20 48 69 67 68 6c 69 67 68 74 69   code Highlighti
3a40: 6e 67 3c 2f 61 3e 20 70 72 6f 67 72 61 6d 2e 0d  ng</a> program..
3a50: 0a 20 20 20 2a 20 20 55 73 65 20 61 20 4a 61 76  .   *  Use a Jav
3a60: 61 73 63 72 69 70 74 20 6c 69 62 72 61 72 79 20  ascript library 
3a70: 74 68 61 74 20 72 65 6e 64 65 72 73 20 74 68 65  that renders the
3a80: 20 63 6f 64 65 20 77 69 74 68 69 6e 20 79 6f 75   code within you
3a90: 72 20 62 72 6f 77 73 65 72 2e 20 4f 6e 65 20 73  r browser. One s
3aa0: 6f 6c 75 74 69 6f 6e 20 66 6f 72 20 74 68 69 73  olution for this
3ab0: 20 6d 69 67 68 74 20 62 65 20 3c 61 20 68 72 65   might be <a hre
3ac0: 66 3d 22 68 74 74 70 3a 2f 2f 63 6f 64 65 2e 67  f="http://code.g
3ad0: 6f 6f 67 6c 65 2e 63 6f 6d 2f 70 2f 73 79 6e 74  oogle.com/p/synt
3ae0: 61 78 68 69 67 68 6c 69 67 68 74 65 72 22 3e 47  axhighlighter">G
3af0: 6f 6f 67 6c 65 20 53 79 6e 74 61 78 20 48 69 67  oogle Syntax Hig
3b00: 68 6c 69 67 68 74 65 72 3c 2f 61 3e 0d 0a 0d 0a  hlighter</a>....
3b10: 49 20 65 73 74 69 6d 61 74 65 20 74 68 61 74 20  I estimate that 
3b20: 74 68 65 20 3c 69 3e 70 69 70 65 3c 2f 69 3e 20  the <i>pipe</i> 
3b30: 73 6f 6c 75 74 69 6f 6e 20 6e 65 65 64 73 20 73  solution needs s
3b40: 6f 6d 65 20 6d 6f 72 65 20 77 6f 72 6b 2f 20 63  ome more work/ c
3b50: 6f 64 65 20 63 68 61 6e 67 65 73 2e 20 54 68 75  ode changes. Thu
3b60: 73 20 49 20 61 6d 20 73 6f 6c 65 6c 79 20 6c 6f  s I am solely lo
3b70: 6f 6b 69 6e 67 20 61 74 20 74 68 65 20 4a 61 76  oking at the Jav
3b80: 61 73 63 72 69 70 74 20 73 6f 6c 75 74 69 6f 6e  ascript solution
3b90: 2e 0d 0a 0d 0a 54 68 65 20 53 79 6e 74 61 78 48  .....The SyntaxH
3ba0: 69 67 68 6c 69 67 68 74 65 72 20 69 73 20 61 20  ighlighter is a 
3bb0: 6c 69 62 72 61 72 79 20 6f 66 20 73 6f 6d 65 20  library of some 
3bc0: 4a 61 76 61 73 63 72 69 70 74 20 66 69 6c 65 73  Javascript files
3bd0: 2c 20 61 20 6c 69 74 74 6c 65 20 46 6c 61 73 68  , a little Flash
3be0: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 61 6e 64   application and
3bf0: 20 61 20 43 53 53 20 66 69 6c 65 2e 20 54 68 65   a CSS file. The
3c00: 20 46 6c 61 73 68 20 61 70 70 6c 69 63 61 74 69   Flash applicati
3c10: 6f 6e 20 69 73 20 66 6f 72 20 63 6f 70 79 69 6e  on is for copyin
3c20: 67 20 74 6f 20 63 6c 69 70 62 6f 61 72 64 2c 20  g to clipboard, 
3c30: 70 72 69 6e 74 20 61 6e 64 20 76 69 65 77 20 73  print and view s
3c40: 6f 75 72 63 65 2e 20 59 6f 75 20 68 61 76 65 20  ource. You have 
3c50: 74 68 65 20 6f 70 74 69 6f 6e 20 74 6f 20 69 6e  the option to in
3c60: 63 6c 75 64 65 20 61 6c 6c 20 74 68 65 20 66 69  clude all the fi
3c70: 6c 65 73 20 69 6e 74 6f 20 79 6f 75 72 20 72 65  les into your re
3c80: 70 6f 73 69 74 6f 72 79 20 6f 72 20 75 73 65 20  pository or use 
3c90: 74 68 65 20 66 69 6c 65 73 20 68 6f 73 74 65 64  the files hosted
3ca0: 20 61 74 20 47 6f 6f 67 6c 65 2e 20 54 68 65 20   at Google. The 
3cb0: 6c 61 74 74 65 72 20 6d 61 79 20 6f 6e 6c 79 20  latter may only 
3cc0: 62 65 20 61 6e 20 6f 70 74 69 6f 6e 20 69 66 20  be an option if 
3cd0: 79 6f 75 20 61 72 65 20 63 6f 6e 6e 65 63 74 65  you are connecte
3ce0: 64 20 74 6f 20 69 6e 74 65 72 6e 65 74 20 61 6c  d to internet al
3cf0: 6c 20 74 68 65 20 74 69 6d 65 2e 0d 0a 0d 0a 46  l the time.....F
3d00: 6f 72 20 73 79 6e 74 61 78 20 68 69 67 68 6c 69  or syntax highli
3d10: 67 68 74 69 6e 67 20 74 6f 20 77 6f 72 6b 20 74  ghting to work t
3d20: 68 65 20 48 65 61 64 65 72 20 61 6e 64 20 46 6f  he Header and Fo
3d30: 6f 74 65 72 20 74 65 6d 70 6c 61 74 65 73 20 6e  oter templates n
3d40: 65 65 64 20 74 6f 20 62 65 20 6d 6f 64 69 66 69  eed to be modifi
3d50: 65 64 20 61 6e 64 20 61 20 6c 69 74 74 6c 65 20  ed and a little 
3d60: 63 6f 64 65 20 63 68 61 6e 67 65 20 68 61 73 20  code change has 
3d70: 74 6f 20 62 65 20 61 70 70 6c 69 65 64 20 74 6f  to be applied to
3d80: 20 74 68 65 20 46 6f 73 73 69 6c 20 73 6f 75 72   the Fossil sour
3d90: 63 65 73 2e 0d 0a 54 68 65 20 65 78 61 6d 70 6c  ces...The exampl
3da0: 65 73 20 62 65 6c 6f 77 20 61 73 73 75 6d 65 20  es below assume 
3db0: 79 6f 75 20 68 61 76 65 20 61 64 64 65 64 20 74  you have added t
3dc0: 68 65 20 73 79 6e 74 61 78 20 68 69 67 68 6c 69  he syntax highli
3dd0: 67 68 74 69 6e 67 20 6c 69 62 72 61 72 79 20 74  ghting library t
3de0: 6f 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72  o your repositor
3df0: 79 20 69 6e 74 6f 20 61 20 64 69 72 65 63 74 6f  y into a directo
3e00: 72 79 20 77 77 77 2f 73 63 72 69 70 74 73 2e 0d  ry www/scripts..
3e10: 0a 3c 70 3e 0d 0a 3c 62 3e 48 65 61 64 65 72 3c  .<p>..<b>Header<
3e20: 2f 62 3e 0d 0a 3c 70 72 65 3e 0d 0a 26 6c 74 3b  /b>..<pre>..&lt;
3e30: 68 74 6d 6c 26 67 74 3b 0d 0a 20 26 6c 74 3b 68  html&gt;.. &lt;h
3e40: 65 61 64 26 67 74 3b 0d 0a 20 26 6c 74 3b 74 69  ead&gt;.. &lt;ti
3e50: 74 6c 65 26 67 74 3b 24 26 6c 74 3b 70 72 6f 6a  tle&gt;$&lt;proj
3e60: 65 63 74 5f 6e 61 6d 65 26 67 74 3b 3a 20 24 26  ect_name&gt;: $&
3e70: 6c 74 3b 74 69 74 6c 65 26 67 74 3b 26 6c 74 3b  lt;title&gt;&lt;
3e80: 2f 74 69 74 6c 65 26 67 74 3b 0d 0a 20 26 6c 74  /title&gt;.. &lt
3e90: 3b 6c 69 6e 6b 20 72 65 6c 3d 22 61 6c 74 65 72  ;link rel="alter
3ea0: 6e 61 74 65 22 20 74 79 70 65 3d 22 61 70 70 6c  nate" type="appl
3eb0: 69 63 61 74 69 6f 6e 2f 72 73 73 2b 78 6d 6c 22  ication/rss+xml"
3ec0: 20 74 69 74 6c 65 3d 22 52 53 53 20 46 65 65 64   title="RSS Feed
3ed0: 22 0d 0a 20 20 20 20 20 20 20 68 72 65 66 3d 22  "..       href="
3ee0: 24 62 61 73 65 75 72 6c 2f 74 69 6d 65 6c 69 6e  $baseurl/timelin
3ef0: 65 2e 72 73 73 22 26 67 74 3b 0d 0a 20 26 6c 74  e.rss"&gt;.. &lt
3f00: 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79 6c 65  ;link rel="style
3f10: 73 68 65 65 74 22 20 68 72 65 66 3d 22 24 62 61  sheet" href="$ba
3f20: 73 65 75 72 6c 2f 73 74 79 6c 65 2e 63 73 73 22  seurl/style.css"
3f30: 20 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22   type="text/css"
3f40: 0d 0a 20 20 20 20 20 20 20 6d 65 64 69 61 3d 22  ..       media="
3f50: 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a 20 26 6c  screen"&gt;.. &l
3f60: 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79 6c  t;link rel="styl
3f70: 65 73 68 65 65 74 22 20 68 72 65 66 3d 22 24 62  esheet" href="$b
3f80: 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69 70 2f 77  aseurl/doc/tip/w
3f90: 77 77 2f 53 79 6e 74 61 78 48 69 67 68 6c 69 67  ww/SyntaxHighlig
3fa0: 68 74 65 72 2e 63 73 73 22 20 74 79 70 65 3d 22  hter.css" type="
3fb0: 74 65 78 74 2f 63 73 73 22 0d 0a 20 20 20 20 20  text/css"..     
3fc0: 20 20 6d 65 64 69 61 3d 22 73 63 72 65 65 6e 22    media="screen"
3fd0: 26 67 74 3b 0d 0a 20 26 6c 74 3b 2f 68 65 61 64  &gt;.. &lt;/head
3fe0: 26 67 74 3b 0d 0a 0d 0a 2e 20 2e 20 2e 0d 0a 3c  &gt;..... . ...<
3ff0: 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 3c 70 3e 0d 0a  /pre>..</p><p>..
4000: 3c 62 3e 46 6f 6f 74 65 72 3c 2f 62 3e 0d 0a 3c  <b>Footer</b>..<
4010: 70 72 65 3e 0d 0a 26 6c 74 3b 2f 64 69 76 26 67  pre>..&lt;/div&g
4020: 74 3b 0d 0a 26 6c 74 3b 64 69 76 20 63 6c 61 73  t;..&lt;div clas
4030: 73 3d 22 66 6f 6f 74 65 72 22 26 67 74 3b 0d 0a  s="footer"&gt;..
4040: 46 6f 73 73 69 6c 20 76 65 72 73 69 6f 6e 20 24  Fossil version $
4050: 6d 61 6e 69 66 65 73 74 5f 76 65 72 73 69 6f 6e  manifest_version
4060: 20 24 6d 61 6e 69 66 65 73 74 5f 64 61 74 65 0d   $manifest_date.
4070: 0a 26 67 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 26  .&gt;/div&gt;..&
4080: 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67 75 61  lt;script langua
4090: 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74 22 20  ge="javascript" 
40a0: 73 72 63 3d 22 24 62 61 73 65 75 72 6c 2f 64 6f  src="$baseurl/do
40b0: 63 2f 74 69 70 2f 77 77 77 2f 73 63 72 69 70 74  c/tip/www/script
40c0: 73 2f 73 68 43 6f 72 65 2e 6a 73 22 26 67 74 3b  s/shCore.js"&gt;
40d0: 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d  &lt;/script&gt;.
40e0: 0a 26 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67  .&lt;script lang
40f0: 75 61 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74  uage="javascript
4100: 22 20 73 72 63 3d 22 24 62 61 73 65 75 72 6c 2f  " src="$baseurl/
4110: 64 6f 63 2f 74 69 70 2f 77 77 77 2f 73 63 72 69  doc/tip/www/scri
4120: 70 74 73 2f 73 68 42 72 75 73 68 43 70 70 2e 6a  pts/shBrushCpp.j
4130: 73 22 26 67 74 3b 26 6c 74 3b 2f 73 63 72 69 70  s"&gt;&lt;/scrip
4140: 74 26 67 74 3b 0d 0a 26 6c 74 3b 73 63 72 69 70  t&gt;..&lt;scrip
4150: 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a 61 76 61  t language="java
4160: 73 63 72 69 70 74 22 26 67 74 3b 0d 0a 64 70 2e  script"&gt;..dp.
4170: 53 79 6e 74 61 78 48 69 67 68 6c 69 67 68 74 65  SyntaxHighlighte
4180: 72 2e 43 6c 69 70 62 6f 61 72 64 53 77 66 20 3d  r.ClipboardSwf =
4190: 20 27 24 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74   '$baseurl/doc/t
41a0: 69 70 2f 77 77 77 2f 73 63 72 69 70 74 73 2f 63  ip/www/scripts/c
41b0: 6c 69 70 62 6f 61 72 64 2e 73 77 66 27 3b 0d 0a  lipboard.swf';..
41c0: 64 70 2e 53 79 6e 74 61 78 48 69 67 68 6c 69 67  dp.SyntaxHighlig
41d0: 68 74 65 72 2e 48 69 67 68 6c 69 67 68 74 41 6c  hter.HighlightAl
41e0: 6c 28 27 63 6f 64 65 27 29 3b 0d 0a 26 6c 74 3b  l('code');..&lt;
41f0: 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a 26 6c 74  /script&gt;..&lt
4200: 3b 2f 62 6f 64 79 26 67 74 3b 26 6c 74 3b 2f 68  ;/body&gt;&lt;/h
4210: 74 6d 6c 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d  tml&gt;..</pre>.
4220: 0a 3c 2f 70 3e 3c 70 3e 0d 0a 3c 62 3e 46 6f 73  .</p><p>..<b>Fos
4230: 73 69 6c 2f 73 72 63 2f 69 6e 66 6f 2e 63 3c 2f  sil/src/info.c</
4240: 62 3e 20 66 75 6e 63 74 69 6f 6e 20 61 72 74 69  b> function arti
4250: 66 61 63 74 5f 70 61 67 65 0d 0a 3c 70 72 65 3e  fact_page..<pre>
4260: 0d 0a 69 66 28 20 7a 4d 69 6d 65 3d 3d 30 20 29  ..if( zMime==0 )
4270: 7b 0d 0a 20 20 20 20 40 20 26 6c 74 3b 70 72 65  {..    @ &lt;pre
4280: 20 6e 61 6d 65 3d 22 63 6f 64 65 22 20 63 6c 61   name="code" cla
4290: 73 73 3d 22 63 22 26 67 74 3b 0d 0a 20 20 20 20  ss="c"&gt;..    
42a0: 40 20 25 68 28 62 6c 6f 62 5f 73 74 72 28 26 63  @ %h(blob_str(&c
42b0: 6f 6e 74 65 6e 74 29 29 0d 0a 20 20 20 20 40 20  ontent))..    @ 
42c0: 26 6c 74 3b 2f 70 72 65 26 67 74 3b 0d 0a 3c 2f  &lt;/pre&gt;..</
42d0: 70 72 65 3e 0d 0a 3c 2f 70 3e 0d 0a 3c 68 33 3e  pre>..</p>..<h3>
42e0: 44 69 73 63 75 73 73 69 6f 6e 3c 2f 68 33 3e 0d  Discussion</h3>.
42f0: 0a 54 68 65 20 4a 61 76 61 73 63 72 69 70 74 20  .The Javascript 
4300: 73 6f 6c 75 74 69 6f 6e 20 72 65 71 75 69 72 65  solution require
4310: 73 20 61 20 6d 69 6e 69 6d 75 6d 20 74 6f 20 62  s a minimum to b
4320: 65 20 66 75 6c 6c 79 20 73 75 70 70 6f 72 74 65  e fully supporte
4330: 64 20 62 79 20 46 6f 73 73 69 6c 2e 20 4f 66 20  d by Fossil. Of 
4340: 63 6f 75 72 73 65 20 6d 79 20 6c 69 74 74 65 20  course my litte 
4350: 63 68 61 6e 67 65 20 6f 6e 6c 79 20 61 70 70 6c  change only appl
4360: 69 65 73 20 66 6f 72 20 43 2f 43 2b 2b 20 66 69  ies for C/C++ fi
4370: 6c 65 73 2e 20 42 75 74 20 6f 6e 6c 79 20 6c 69  les. But only li
4380: 74 74 6c 65 20 6d 6f 72 65 20 77 6f 72 6b 20 6e  ttle more work n
4390: 65 65 64 73 20 74 6f 20 62 65 20 64 6f 6e 65 20  eeds to be done 
43a0: 74 6f 20 67 65 74 20 74 68 65 20 65 78 74 65 6e  to get the exten
43b0: 73 69 6f 6e 20 6f 66 20 74 68 65 20 66 69 6c 65  sion of the file
43c0: 20 61 20 67 75 65 73 73 20 74 68 65 20 66 69 6c   a guess the fil
43d0: 65 20 74 79 70 65 2e 0d 0a 0d 0a 54 68 65 20 70  e type.....The p
43e0: 69 70 65 20 73 6f 6c 75 74 69 6f 6e 20 77 6f 75  ipe solution wou
43f0: 6c 64 20 61 6c 73 6f 20 62 65 20 6e 69 63 65 20  ld also be nice 
4400: 62 75 74 20 77 6f 75 6c 64 20 70 72 6f 62 61 62  but would probab
4410: 6c 79 20 6e 65 65 64 20 73 6f 6d 65 20 6d 6f 72  ly need some mor
4420: 65 20 77 6f 72 6b 20 74 68 61 6e 20 74 68 69 73  e work than this
4430: 20 6c 69 74 74 6c 65 20 70 61 74 63 68 2e 0a 5a   little patch..Z
4440: 20 32 37 31 30 37 34 35 38 30 32 36 39 62 36 63   271074580269b6c
4450: 33 61 39 65 35 61 36 30 35 38 64 36 37 61 66 66  3a9e5a6058d67aff
4460: 37 0a                                            7.