Hex Artifact Content
Not logged in

Artifact 2be5a0445b7718b96c2dde039d420ee74bae31b0:

Wiki page [Cookbook] by anonymous 2009-04-22 14:53:44.
0000: 44 20 32 30 30 39 2d 30 34 2d 32 32 54 31 34 3a  D 2009-04-22T14:
0010: 35 33 3a 34 34 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b  53:44.L Cookbook
0020: 0a 50 20 61 62 32 32 62 66 66 36 39 66 30 32 33  .P ab22bff69f023
0030: 33 38 36 31 30 62 33 33 65 37 33 39 32 63 62 37  38610b33e7392cb7
0040: 31 34 38 31 65 65 63 61 38 62 39 0a 55 20 61 6e  1481eeca8b9.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 31 39 34 32 34 0a  onymous.W 19424.
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 48 65  ></nowiki>....He
1900: 72 65 20 69 73 20 61 20 6c 69 74 74 6c 65 20 70  re is a little p
1910: 65 72 6c 20 73 63 72 69 70 74 20 74 6f 20 70 75  erl script to pu
1920: 74 20 69 6e 20 79 6f 75 72 20 63 67 69 2d 62 69  t in your cgi-bi
1930: 6e 20 74 6f 20 6c 69 73 74 20 61 6c 6c 20 74 68  n to list all th
1940: 65 20 66 6f 73 73 69 6c 73 20 79 6f 75 20 61 72  e fossils you ar
1950: 65 20 70 75 62 6c 69 73 68 69 6e 67 3a 0d 0a 0d  e publishing:...
1960: 0a 3c 6e 6f 77 69 6b 69 3e 3c 70 72 65 3e 0d 0a  .<nowiki><pre>..
1970: 23 21 2f 75 73 72 2f 62 69 6e 2f 70 65 72 6c 20  #!/usr/bin/perl 
1980: 2d 77 0d 0a 6d 79 20 24 43 47 49 5f 42 49 4e 20  -w..my $CGI_BIN 
1990: 3d 20 27 2f 4c 69 62 72 61 72 79 2f 57 65 62 53  = '/Library/WebS
19a0: 65 72 76 65 72 2f 43 47 49 2d 45 78 65 63 75 74  erver/CGI-Execut
19b0: 61 62 6c 65 73 27 3b 0d 0a 6d 79 20 40 66 69 6c  ables';..my @fil
19c0: 65 73 20 3d 20 60 67 72 65 70 20 2d 6c 20 72 65  es = `grep -l re
19d0: 70 6f 73 69 74 6f 72 79 3a 20 20 24 43 47 49 5f  pository:  $CGI_
19e0: 42 49 4e 2f 2a 20 60 3b 0d 0a 70 72 69 6e 74 20  BIN/* `;..print 
19f0: 26 6c 74 3b 26 6c 74 3b 45 4f 4d 3b 0d 0a 43 6f  &lt;&lt;EOM;..Co
1a00: 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74  ntent-Type: text
1a10: 2f 68 74 6d 6c 0d 0a 0d 0a 46 6f 73 73 69 6c 73  /html....Fossils
1a20: 20 66 6f 72 20 74 68 69 73 20 73 65 72 76 65 72   for this server
1a30: 0d 0a 26 6c 74 3b 75 6c 3e 0d 0a 45 4f 4d 0d 0a  ..&lt;ul>..EOM..
1a40: 0d 0a 66 6f 72 20 28 40 66 69 6c 65 73 29 20 7b  ..for (@files) {
1a50: 0d 0a 20 20 73 7b 2e 2a 2f 7d 7b 7d 3b 0d 0a 20  ..  s{.*/}{};.. 
1a60: 20 6e 65 78 74 20 69 66 20 2f 7e 24 2f 3b 0d 0a   next if /~$/;..
1a70: 20 20 70 72 69 6e 74 20 22 26 6c 74 3b 6c 69 3e    print "&lt;li>
1a80: 26 6c 74 3b 61 20 68 72 65 66 3d 27 24 5f 27 3e  &lt;a href='$_'>
1a90: 24 5f 26 6c 74 3b 2f 61 3e 26 6c 74 3b 2f 6c 69  $_&lt;/a>&lt;/li
1aa0: 3e 5c 6e 22 3b 0d 0a 7d 0d 0a 70 72 69 6e 74 20  >\n";..}..print 
1ab0: 22 26 6c 74 3b 2f 75 6c 3e 5c 6e 22 3b 3c 2f 70  "&lt;/ul>\n";</p
1ac0: 72 65 3e 0d 0a 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a  re>..</nowiki>..
1ad0: 0d 0a 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20  ..The following 
1ae0: 3c 63 69 74 65 3e 61 70 61 63 68 65 32 3c 2f 63  <cite>apache2</c
1af0: 69 74 65 3e 20 63 6f 6e 66 69 67 75 72 61 74 69  ite> configurati
1b00: 6f 6e 20 63 61 6e 20 62 65 20 75 73 65 64 20 74  on can be used t
1b10: 6f 20 72 75 6e 20 74 68 65 20 72 6f 6f 74 20 6f  o run the root o
1b20: 66 20 61 20 77 65 62 20 73 69 74 65 20 77 69 74  f a web site wit
1b30: 68 20 66 6f 73 73 69 6c 2c 20 62 75 74 20 73 74  h fossil, but st
1b40: 69 6c 6c 20 61 6c 6c 6f 77 20 6f 74 68 65 72 20  ill allow other 
1b50: 73 65 72 76 69 63 65 73 20 2f 20 64 6f 63 75 6d  services / docum
1b60: 65 6e 74 73 20 74 6f 20 62 65 20 72 65 61 63 68  ents to be reach
1b70: 65 64 20 76 69 61 20 73 70 65 63 69 66 69 63 20  ed via specific 
1b80: 55 52 4c 73 2e 20 52 65 70 6c 61 63 65 20 22 63  URLs. Replace "c
1b90: 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 22  ode.autonomo.us"
1ba0: 20 77 69 74 68 20 79 6f 75 72 20 73 69 74 65 27   with your site'
1bb0: 73 20 6e 61 6d 65 20 61 6e 64 20 22 64 63 6c 61  s name and "dcla
1bc0: 72 6b 40 70 6f 62 6f 78 2e 63 6f 6d 22 20 77 69  rk@pobox.com" wi
1bd0: 74 68 20 79 6f 75 72 20 65 6d 61 69 6c 2e 0d 0a  th your email...
1be0: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 4e 61  ..<verbatim>..Na
1bf0: 6d 65 56 69 72 74 75 61 6c 48 6f 73 74 20 2a 3a  meVirtualHost *:
1c00: 38 30 0d 0a 3c 56 69 72 74 75 61 6c 48 6f 73 74  80..<VirtualHost
1c10: 20 2a 3a 38 30 3e 0d 0a 20 20 20 20 53 65 72 76   *:80>..    Serv
1c20: 65 72 4e 61 6d 65 20 63 6f 64 65 2e 61 75 74 6f  erName code.auto
1c30: 6e 6f 6d 6f 2e 75 73 0d 0a 20 20 20 20 53 65 72  nomo.us..    Ser
1c40: 76 65 72 41 64 6d 69 6e 20 64 63 6c 61 72 6b 40  verAdmin dclark@
1c50: 70 6f 62 6f 78 2e 63 6f 6d 0d 0a 20 20 20 20 45  pobox.com..    E
1c60: 72 72 6f 72 4c 6f 67 20 2f 76 61 72 2f 6c 6f 67  rrorLog /var/log
1c70: 2f 61 70 61 63 68 65 32 2f 63 6f 64 65 2e 61 75  /apache2/code.au
1c80: 74 6f 6e 6f 6d 6f 2e 75 73 2d 65 72 72 6f 72 2e  tonomo.us-error.
1c90: 6c 6f 67 0d 0a 20 20 20 20 4c 6f 67 4c 65 76 65  log..    LogLeve
1ca0: 6c 20 77 61 72 6e 0d 0a 20 20 20 20 43 75 73 74  l warn..    Cust
1cb0: 6f 6d 4c 6f 67 20 2f 76 61 72 2f 6c 6f 67 2f 61  omLog /var/log/a
1cc0: 70 61 63 68 65 32 2f 63 6f 64 65 2e 61 75 74 6f  pache2/code.auto
1cd0: 6e 6f 6d 6f 2e 75 73 2d 61 63 63 65 73 73 2e 6c  nomo.us-access.l
1ce0: 6f 67 20 63 6f 6d 62 69 6e 65 64 0d 0a 20 20 20  og combined..   
1cf0: 20 53 65 72 76 65 72 53 69 67 6e 61 74 75 72 65   ServerSignature
1d00: 20 4f 6e 0d 0a 0d 0a 20 20 20 20 44 6f 63 75 6d   On....    Docum
1d10: 65 6e 74 52 6f 6f 74 20 2f 76 61 72 2f 77 77 77  entRoot /var/www
1d20: 2f 0d 0a 0d 0a 20 20 20 20 53 63 72 69 70 74 41  /....    ScriptA
1d30: 6c 69 61 73 20 2f 63 67 69 2d 62 69 6e 2f 20 2f  lias /cgi-bin/ /
1d40: 75 73 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 2f  usr/lib/cgi-bin/
1d50: 0d 0a 20 20 20 20 3c 44 69 72 65 63 74 6f 72 79  ..    <Directory
1d60: 20 22 2f 75 73 72 2f 6c 69 62 2f 63 67 69 2d 62   "/usr/lib/cgi-b
1d70: 69 6e 22 3e 0d 0a 20 20 20 20 20 20 20 20 41 6c  in">..        Al
1d80: 6c 6f 77 4f 76 65 72 72 69 64 65 20 4e 6f 6e 65  lowOverride None
1d90: 0d 0a 20 20 20 20 20 20 20 20 4f 70 74 69 6f 6e  ..        Option
1da0: 73 20 2b 45 78 65 63 43 47 49 20 2d 4d 75 6c 74  s +ExecCGI -Mult
1db0: 69 56 69 65 77 73 20 2b 53 79 6d 4c 69 6e 6b 73  iViews +SymLinks
1dc0: 49 66 4f 77 6e 65 72 4d 61 74 63 68 0d 0a 20 20  IfOwnerMatch..  
1dd0: 20 20 20 20 20 20 4f 72 64 65 72 20 61 6c 6c 6f        Order allo
1de0: 77 2c 64 65 6e 79 0d 0a 20 20 20 20 20 20 20 20  w,deny..        
1df0: 41 6c 6c 6f 77 20 66 72 6f 6d 20 61 6c 6c 0d 0a  Allow from all..
1e00: 20 20 20 20 3c 2f 44 69 72 65 63 74 6f 72 79 3e      </Directory>
1e10: 0d 0a 0d 0a 20 20 20 20 23 20 46 6f 73 73 69 6c  ....    # Fossil
1e20: 20 53 43 4d 20 61 74 20 72 6f 6f 74 20 6f 66 20   SCM at root of 
1e30: 77 65 62 20 73 69 74 65 20 28 68 74 74 70 3a 2f  web site (http:/
1e40: 2f 65 78 61 6d 70 6c 65 2e 63 6f 6d 29 20 63 6f  /example.com) co
1e50: 6e 66 69 67 75 72 61 74 69 6f 6e 2e 2e 2e 0d 0a  nfiguration.....
1e60: 20 20 20 20 52 65 77 72 69 74 65 45 6e 67 69 6e      RewriteEngin
1e70: 65 20 4f 6e 0d 0a 20 20 20 20 23 20 52 65 77 72  e On..    # Rewr
1e80: 69 74 65 43 6f 6e 64 20 2d 20 4f 6e 65 20 66 6f  iteCond - One fo
1e90: 72 20 65 76 65 72 79 20 55 52 4c 20 77 65 20 64  r every URL we d
1ea0: 6f 6e 27 74 20 77 61 6e 74 20 46 6f 73 73 69 6c  on't want Fossil
1eb0: 20 53 43 4d 20 74 6f 20 73 65 72 76 65 2e 20 49   SCM to serve. I
1ec0: 6e 20 74 68 65 0d 0a 20 20 20 20 23 20 20 20 20  n the..    #    
1ed0: 20 20 20 20 20 20 20 20 20 20 20 65 78 61 6d 70             examp
1ee0: 6c 65 2c 20 72 65 71 75 65 73 74 73 20 74 68 61  le, requests tha
1ef0: 74 20 67 6f 20 74 6f 20 74 68 65 20 2f 76 61 72  t go to the /var
1f00: 2f 77 77 77 2f 74 6d 70 20 64 69 72 65 63 74 6f  /www/tmp directo
1f10: 72 79 20 61 6e 64 20 0d 0a 20 20 20 20 23 20 20  ry and ..    #  
1f20: 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65               the
1f30: 20 2f 75 73 72 2f 6c 69 62 2f 63 67 69 2d 62 69   /usr/lib/cgi-bi
1f40: 6e 20 64 69 72 65 63 74 6f 74 79 20 61 72 65 20  n directoty are 
1f50: 69 67 6e 6f 72 65 64 20 62 79 20 46 6f 73 73 69  ignored by Fossi
1f60: 6c 20 53 43 4d 2e 0d 0a 20 20 20 20 52 65 77 72  l SCM...    Rewr
1f70: 69 74 65 43 6f 6e 64 20 25 7b 52 45 51 55 45 53  iteCond %{REQUES
1f80: 54 5f 55 52 49 7d 20 21 5e 2f 74 6d 70 2f 2e 2a  T_URI} !^/tmp/.*
1f90: 24 0d 0a 20 20 20 20 52 65 77 72 69 74 65 43 6f  $..    RewriteCo
1fa0: 6e 64 20 25 7b 52 45 51 55 45 53 54 5f 55 52 49  nd %{REQUEST_URI
1fb0: 7d 20 21 5e 2f 63 67 69 2d 62 69 6e 2f 2e 2a 24  } !^/cgi-bin/.*$
1fc0: 0d 0a 20 20 20 20 52 65 77 72 69 74 65 52 75 6c  ..    RewriteRul
1fd0: 65 20 5e 28 2e 2a 29 24 20 2f 75 73 72 2f 6c 69  e ^(.*)$ /usr/li
1fe0: 62 2f 63 67 69 2d 62 69 6e 2f 63 6f 64 65 2e 61  b/cgi-bin/code.a
1ff0: 75 74 6f 6e 6f 6d 6f 2e 75 73 2f 24 31 20 5b 54  utonomo.us/$1 [T
2000: 3d 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 2d 68  =application/x-h
2010: 74 74 70 64 2d 63 67 69 5d 0d 0a 3c 2f 56 69 72  ttpd-cgi]..</Vir
2020: 74 75 61 6c 48 6f 73 74 3e 0d 0a 3c 2f 76 65 72  tualHost>..</ver
2030: 62 61 74 69 6d 3e 0d 0a 0d 0a 2f 75 73 72 2f 6c  batim>..../usr/l
2040: 69 62 2f 63 67 69 2d 62 69 6e 2f 63 6f 64 65 2e  ib/cgi-bin/code.
2050: 61 75 74 6f 6e 6f 6d 6f 2e 75 73 20 69 73 20 6a  autonomo.us is j
2060: 75 73 74 20 61 20 73 74 61 6e 64 61 72 64 20 66  ust a standard f
2070: 6f 73 73 69 6c 20 43 47 49 20 66 69 6c 65 3b 20  ossil CGI file; 
2080: 69 74 20 6c 6f 6f 6b 73 20 6c 69 6b 65 20 74 68  it looks like th
2090: 69 73 3a 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d  is:....<verbatim
20a0: 3e 0d 0a 23 21 2f 75 73 72 2f 62 69 6e 2f 66 6f  >..#!/usr/bin/fo
20b0: 73 73 69 6c 0d 0a 72 65 70 6f 73 69 74 6f 72 79  ssil..repository
20c0: 3a 20 2f 73 72 76 2f 66 6f 73 73 69 6c 2d 73 63  : /srv/fossil-sc
20d0: 6d 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e  m/code.autonomo.
20e0: 75 73 2e 66 6f 73 73 69 6c 2d 73 63 6d 0d 0a 3c  us.fossil-scm..<
20f0: 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 3c 68  /verbatim>....<h
2100: 34 3e 57 69 6e 64 6f 77 73 3c 2f 68 34 3e 0d 0a  4>Windows</h4>..
2110: 3c 70 3e 57 68 69 6c 65 20 69 74 20 69 73 20 66  <p>While it is f
2120: 61 72 20 66 72 6f 6d 20 61 20 70 65 72 66 65 63  ar from a perfec
2130: 74 20 73 65 74 20 6f 66 20 69 6e 73 74 72 75 63  t set of instruc
2140: 74 69 6f 6e 73 2e 2e 20 68 65 72 65 20 61 72 65  tions.. here are
2150: 20 73 6f 6d 65 20 71 75 69 63 6b 20 6e 6f 74 65   some quick note
2160: 73 20 74 68 61 74 20 73 68 6f 75 6c 64 20 68 65  s that should he
2170: 6c 70 20 77 69 6e 64 6f 77 73 20 75 73 65 72 73  lp windows users
2180: 20 61 6c 6f 6e 67 20 74 68 65 20 77 61 79 2e 2e   along the way..
2190: 2e 3c 2f 70 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69  .</p>..<ul>..<li
21a0: 3e 79 6f 75 20 6e 65 65 64 20 66 6f 73 73 69 6c  >you need fossil
21b0: 2e 65 78 65 20 61 63 63 65 73 73 69 62 6c 65 20  .exe accessible 
21c0: 62 79 20 79 6f 75 72 20 77 65 62 20 73 65 72 76  by your web serv
21d0: 65 72 20 6f 72 20 6f 6e 20 79 6f 75 72 20 70 61  er or on your pa
21e0: 74 68 2e 2e 20 65 61 73 69 65 73 74 20 69 73 20  th.. easiest is 
21f0: 74 6f 20 6a 75 73 74 20 63 68 75 63 6b 20 69 74  to just chuck it
2200: 20 69 6e 20 5c 25 53 59 53 54 45 4d 5f 52 4f 4f   in \%SYSTEM_ROO
2210: 54 25 5c 20 28 75 73 75 61 6c 6c 79 20 63 3a 5c  T%\ (usually c:\
2220: 77 69 6e 64 6f 77 73 5c 29 20 3c 2f 6c 69 3e 0d  windows\) </li>.
2230: 0a 3c 6c 69 3e 61 73 73 75 6d 69 6e 67 20 79 6f  .<li>assuming yo
2240: 75 20 61 72 65 20 72 75 6e 6e 69 6e 67 20 61 70  u are running ap
2250: 61 63 68 65 2c 20 79 6f 75 20 6e 65 65 64 20 74  ache, you need t
2260: 6f 20 65 69 74 68 65 72 20 61 64 64 20 74 68 65  o either add the
2270: 20 45 78 65 63 43 47 49 20 74 6f 20 74 68 65 20   ExecCGI to the 
2280: 6f 70 74 69 6f 6e 73 20 6f 6e 20 79 6f 75 72 20  options on your 
2290: 44 6f 63 75 6d 65 6e 74 52 6f 6f 74 2c 20 6f 72  DocumentRoot, or
22a0: 20 6d 61 6b 65 20 73 75 72 65 20 74 68 65 20 53   make sure the S
22b0: 63 72 69 70 74 41 6c 69 61 73 20 64 69 72 65 63  criptAlias direc
22c0: 74 69 76 65 20 69 73 20 73 65 74 20 61 6e 64 20  tive is set and 
22d0: 70 75 74 20 79 6f 75 72 20 2e 63 67 69 20 66 69  put your .cgi fi
22e0: 6c 65 73 20 69 6e 20 74 68 61 74 20 66 6f 6c 64  les in that fold
22f0: 65 72 2e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74  er..</li>..<li>t
2300: 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 79  he contents of y
2310: 6f 75 72 20 63 67 69 20 66 69 6c 65 20 6e 65 65  our cgi file nee
2320: 64 73 20 74 6f 20 65 73 73 65 6e 74 69 61 6c 6c  ds to essentiall
2330: 79 20 74 68 65 20 73 61 6d 65 20 61 73 20 61 62  y the same as ab
2340: 6f 76 65 2e 2e 20 68 6f 77 65 76 65 72 20 70 61  ove.. however pa
2350: 74 68 73 20 6e 65 65 64 73 20 74 6f 20 62 65 20  ths needs to be 
2360: 77 69 6e 64 6f 77 73 20 66 72 69 65 6e 64 6c 79  windows friendly
2370: 2e 2e 20 69 20 68 61 76 65 20 6d 61 64 65 20 73  .. i have made s
2380: 75 72 65 20 74 68 61 74 20 61 6c 6c 20 66 6f 6c  ure that all fol
2390: 64 65 72 73 20 6f 6e 20 6d 79 20 74 65 73 74 20  ders on my test 
23a0: 62 6f 78 20 61 72 65 20 66 72 65 65 20 6f 66 20  box are free of 
23b0: 73 70 61 63 65 73 2c 20 61 6e 64 20 61 73 20 73  spaces, and as s
23c0: 75 63 68 20 74 68 69 73 20 66 69 6c 65 20 77 6f  uch this file wo
23d0: 72 6b 73 20 66 6f 72 20 6d 65 20 28 6f 62 76 69  rks for me (obvi
23e0: 6f 75 73 6c 79 20 79 6f 75 72 20 70 61 74 68 73  ously your paths
23f0: 20 6d 61 79 20 64 69 66 66 65 72 29 0d 0a 3c 70   may differ)..<p
2400: 72 65 3e 0d 0a 23 21 20 66 6f 73 73 69 6c 2e 65  re>..#! fossil.e
2410: 78 65 0d 0a 72 65 70 6f 73 69 74 6f 72 79 3a 20  xe..repository: 
2420: 63 3a 2f 77 61 6d 70 2f 77 77 77 2f 64 65 76 2f  c:/wamp/www/dev/
2430: 61 63 63 6f 75 6e 74 73 2e 66 6f 73 73 69 6c 0d  accounts.fossil.
2440: 0a 3c 2f 70 72 65 3e 0d 0a 49 20 73 75 70 70 6f  .</pre>..I suppo
2450: 73 65 20 79 6f 75 20 63 6f 75 6c 64 20 70 75 74  se you could put
2460: 20 66 6f 73 73 69 6c 2e 65 78 65 20 73 6f 6d 65   fossil.exe some
2470: 77 68 65 72 65 20 6d 6f 72 65 20 73 70 65 63 69  where more speci
2480: 66 69 63 20 61 6e 64 20 73 65 74 20 74 68 65 20  fic and set the 
2490: 70 61 74 68 20 74 6f 20 69 74 20 61 73 20 77 65  path to it as we
24a0: 6c 6c 2c 20 62 75 74 20 73 69 6e 63 65 20 79 6f  ll, but since yo
24b0: 75 20 61 72 65 20 70 72 6f 62 61 62 6c 79 20 75  u are probably u
24c0: 73 69 6e 67 20 74 68 65 20 73 61 6d 65 20 65 78  sing the same ex
24d0: 65 63 75 74 61 62 6c 65 20 66 6f 72 20 63 6d 64  ecutable for cmd
24e0: 6c 69 6e 65 20 61 6e 64 20 63 67 69 20 69 74 20  line and cgi it 
24f0: 6b 69 6e 64 20 6f 66 20 6a 75 73 74 20 6d 61 6b  kind of just mak
2500: 65 73 20 73 65 6e 73 65 20 74 6f 20 70 75 74 20  es sense to put 
2510: 69 74 20 73 6f 6d 65 77 68 65 72 65 20 6d 6f 72  it somewhere mor
2520: 65 20 61 63 63 65 73 73 69 62 6c 65 3c 2f 6c 69  e accessible</li
2530: 3e 0d 0a 3c 6c 69 3e 41 73 20 77 69 74 68 20 6d  >..<li>As with m
2540: 6f 73 74 20 57 69 6e 64 6f 77 73 20 62 61 73 65  ost Windows base
2550: 64 20 77 65 62 20 69 6e 73 74 72 75 63 74 69 6f  d web instructio
2560: 6e 73 2c 20 70 65 72 6d 69 73 73 69 6f 6e 20 61  ns, permission a
2570: 72 65 20 6e 6f 74 20 61 73 20 69 6d 70 6f 72 74  re not as import
2580: 61 6e 74 2c 20 68 6f 77 65 76 65 72 20 61 74 20  ant, however at 
2590: 74 68 65 20 6c 65 61 73 74 2c 20 79 6f 75 20 6e  the least, you n
25a0: 65 65 64 20 74 6f 20 6d 61 6b 65 20 73 75 72 65  eed to make sure
25b0: 20 74 68 61 74 20 79 6f 75 72 20 72 65 70 6f 73   that your repos
25c0: 69 74 6f 72 79 20 69 73 20 6e 6f 74 20 66 6c 61  itory is not fla
25d0: 67 67 65 64 20 72 65 61 64 2d 6f 6e 6c 79 2c 20  gged read-only, 
25e0: 61 73 20 79 6f 75 20 77 69 6c 6c 20 65 6e 63 6f  as you will enco
25f0: 75 6e 74 65 72 20 64 61 74 61 62 61 73 65 20 65  unter database e
2600: 72 72 6f 72 73 20 69 66 20 69 74 20 69 73 2e 3c  rrors if it is.<
2610: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 0d 0a 3c  /li>..</ul>....<
2620: 68 33 3e 44 69 73 63 75 73 73 69 6f 6e 3c 2f 68  h3>Discussion</h
2630: 33 3e 0d 0a 55 73 69 6e 67 20 74 68 65 20 43 47  3>..Using the CG
2640: 49 20 73 65 72 76 65 72 20 69 73 20 74 68 65 20  I server is the 
2650: 62 65 73 74 20 73 6f 6c 75 74 69 6f 6e 20 63 6f  best solution co
2660: 6d 62 69 6e 69 6e 67 20 61 6e 20 65 78 69 73 74  mbining an exist
2670: 69 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72  ing web infrastr
2680: 75 63 74 75 72 65 20 61 6e 64 20 74 68 65 20 73  ucture and the s
2690: 68 61 72 69 6e 67 20 6f 66 20 6d 61 6e 79 20 3c  haring of many <
26a0: 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74  cite>Fossil</cit
26b0: 65 3e 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e  e> repositories.
26c0: 20 20 55 6e 6c 69 6b 65 20 74 68 65 20 61 64 2d    Unlike the ad-
26d0: 68 6f 63 20 73 6f 6c 75 74 69 6f 6e 20 77 68 69  hoc solution whi
26e0: 63 68 20 72 65 71 75 69 72 65 73 2c 20 69 6e 20  ch requires, in 
26f0: 65 66 66 65 63 74 2c 20 61 20 73 65 70 61 72 61  effect, a separa
2700: 74 65 20 70 6f 72 74 20 66 6f 72 20 65 61 63 68  te port for each
2710: 20 73 69 6d 75 6c 74 61 6e 65 6f 75 73 6c 79 2d   simultaneously-
2720: 73 68 61 72 65 64 20 72 65 70 6f 73 69 74 6f 72  shared repositor
2730: 79 2c 20 61 6e 64 20 77 68 69 63 68 20 72 65 71  y, and which req
2740: 75 69 72 65 73 20 73 65 76 65 72 61 6c 20 69 6e  uires several in
2750: 73 74 61 6e 63 65 73 20 6f 66 20 66 6f 73 73 69  stances of fossi
2760: 6c 20 72 75 6e 6e 69 6e 67 20 2d 2d 20 6f 6e 65  l running -- one
2770: 20 66 6f 72 20 65 61 63 68 20 73 68 61 72 65 64   for each shared
2780: 20 72 65 70 6f 73 69 74 6f 72 79 20 2d 2d 20 74   repository -- t
2790: 68 65 20 43 47 49 20 61 70 70 72 6f 61 63 68 20  he CGI approach 
27a0: 75 73 65 73 20 55 52 4c 73 20 74 6f 20 64 69 73  uses URLs to dis
27b0: 74 69 6e 67 75 69 73 68 20 62 65 74 77 65 65 6e  tinguish between
27c0: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 61 6e   repositories an
27d0: 64 20 6f 6e 6c 79 20 28 62 72 69 65 66 6c 79 29  d only (briefly)
27e0: 20 72 75 6e 73 20 61 20 63 6f 70 79 20 6f 66 20   runs a copy of 
27f0: 66 6f 73 73 69 6c 20 77 68 65 6e 20 74 68 65 20  fossil when the 
2800: 72 65 70 6f 73 69 74 6f 72 79 20 69 73 20 61 63  repository is ac
2810: 74 75 61 6c 6c 79 20 61 63 63 65 73 73 65 64 2e  tually accessed.
2820: 0d 0a 0d 0a 53 68 61 72 69 6e 67 20 72 65 70 6f  ....Sharing repo
2830: 73 69 74 6f 72 69 65 73 20 77 69 74 68 20 43 47  sitories with CG
2840: 49 20 69 73 20 72 65 61 6c 6c 79 20 6f 6e 6c 79  I is really only
2850: 20 77 6f 72 74 68 20 74 68 65 20 65 66 66 6f 72   worth the effor
2860: 74 20 69 66 20 6d 6f 72 65 20 74 68 61 6e 20 6f  t if more than o
2870: 6e 65 20 72 65 70 6f 73 69 74 6f 72 79 20 69 73  ne repository is
2880: 20 62 65 69 6e 67 20 73 68 61 72 65 64 2c 20 68   being shared, h
2890: 6f 77 65 76 65 72 2e 20 20 57 69 74 68 20 6f 6e  owever.  With on
28a0: 6c 79 20 6f 6e 65 20 62 65 69 6e 67 20 73 68 61  ly one being sha
28b0: 72 65 64 2c 20 3c 63 6f 64 65 3e 66 6f 73 73 69  red, <code>fossi
28c0: 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64 65 3e 20  l server</code> 
28d0: 69 73 20 6c 69 6b 65 6c 79 20 6d 6f 72 65 20 74  is likely more t
28e0: 68 61 6e 20 61 64 65 71 75 61 74 65 20 6f 72 20  han adequate or 
28f0: 74 68 65 20 75 73 65 20 6f 66 20 28 78 29 69 6e  the use of (x)in
2900: 65 74 64 20 6d 61 79 20 62 65 20 69 6e 64 69 63  etd may be indic
2910: 61 74 65 64 2e 20 20 49 66 2c 20 68 6f 77 65 76  ated.  If, howev
2920: 65 72 2c 20 74 68 65 72 65 20 69 73 20 61 6c 72  er, there is alr
2930: 65 61 64 79 20 61 6e 20 65 78 69 73 74 69 6e 67  eady an existing
2940: 20 77 65 62 20 69 6e 66 72 61 73 74 72 75 63 74   web infrastruct
2950: 75 72 65 20 69 6e 20 70 6c 61 63 65 2c 20 43 47  ure in place, CG
2960: 49 20 73 74 69 6c 6c 20 6d 61 79 20 62 65 20 70  I still may be p
2970: 72 65 66 65 72 72 65 64 20 69 66 20 6f 6e 6c 79  referred if only
2980: 20 66 6f 72 20 63 6f 6e 73 69 73 74 65 6e 63 79   for consistency
2990: 20 61 6e 64 20 6d 61 69 6e 74 61 69 6e 61 62 69   and maintainabi
29a0: 6c 69 74 79 20 6f 66 20 74 68 65 20 73 79 73 74  lity of the syst
29b0: 65 6d 20 61 73 20 61 20 77 68 6f 6c 65 2e 0d 0a  em as a whole...
29c0: 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 65  ..<h2><a name="e
29d0: 6e 76 22 3e 55 73 69 6e 67 20 45 6e 76 69 72 6f  nv">Using Enviro
29e0: 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73 3c  nment variables<
29f0: 2f 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f  /a></h2>..<h3>Mo
2a00: 74 69 76 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20  tivation</h3>.. 
2a10: 20 2a 20 20 57 61 6e 74 20 74 6f 20 75 73 65 20   *  Want to use 
2a20: 61 20 64 69 66 66 65 72 65 6e 74 20 65 64 69 74  a different edit
2a30: 6f 72 20 66 6f 72 20 63 68 65 63 6b 69 6e 73 20  or for checkins 
2a40: 28 55 6e 69 78 2f 57 69 6e 64 6f 77 73 29 0d 0a  (Unix/Windows)..
2a50: 20 20 2a 20 20 55 73 65 20 61 20 70 72 6f 78 79    *  Use a proxy
2a60: 20 69 66 20 79 6f 75 20 61 72 65 20 62 65 68 69   if you are behi
2a70: 6e 64 20 61 20 66 69 72 65 77 61 6c 6c 0d 0a 0d  nd a firewall...
2a80: 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68  .<h3>Solution</h
2a90: 33 3e 0d 0a 45 6e 76 69 72 6f 6e 6d 65 6e 74 20  3>..Environment 
2aa0: 76 61 72 69 61 62 6c 65 73 20 61 72 65 20 75 73  variables are us
2ab0: 65 64 20 74 6f 20 63 75 73 74 6f 6d 69 7a 65 20  ed to customize 
2ac0: 73 6f 6d 65 20 70 72 6f 67 72 61 6d 6d 65 20 62  some programme b
2ad0: 65 68 61 76 69 6f 75 72 2e 20 4f 6e 20 4c 69 6e  ehaviour. On Lin
2ae0: 75 78 2f 55 6e 69 78 20 74 68 65 79 20 63 61 6e  ux/Unix they can
2af0: 20 62 65 20 73 65 74 20 69 6e 20 79 6f 75 20 7e   be set in you ~
2b00: 2f 2e 62 61 73 68 72 63 20 6f 72 20 65 76 65 6e  /.bashrc or even
2b10: 20 6f 6e 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65   on command line
2b20: 2e 20 4f 6e 20 57 69 6e 64 6f 77 73 20 74 68 65  . On Windows the
2b30: 79 20 63 61 6e 20 62 65 20 73 65 74 20 69 6e 20  y can be set in 
2b40: 74 68 65 20 73 79 73 74 65 6d 20 73 65 74 74 69  the system setti
2b50: 6e 67 73 2e 0d 0a 0d 0a 3c 63 69 74 65 3e 46 6f  ngs.....<cite>Fo
2b60: 73 73 69 6c 3c 2f 63 69 74 65 3e 20 63 68 65 63  ssil</cite> chec
2b70: 6b 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  ks the following
2b80: 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72   environment var
2b90: 69 61 62 6c 65 73 3a 0d 0a 20 20 2a 20 20 56 49  iables:..  *  VI
2ba0: 53 55 41 4c 2f 45 44 49 54 4f 52 0d 0a 20 20 2a  SUAL/EDITOR..  *
2bb0: 20 20 68 74 74 70 5f 70 72 6f 78 79 0d 0a 20 20    http_proxy..  
2bc0: 2a 20 20 54 4d 50 5f 44 49 52 0d 0a 20 20 2a 20  *  TMP_DIR..  * 
2bd0: 20 47 41 54 45 57 41 59 5f 49 4e 54 45 52 46 41   GATEWAY_INTERFA
2be0: 43 45 0d 0a 20 20 2a 20 20 53 51 4c 49 54 45 5f  CE..  *  SQLITE_
2bf0: 46 4f 52 43 45 5f 50 52 4f 58 59 5f 4c 4f 43 4b  FORCE_PROXY_LOCK
2c00: 49 4e 47 0d 0a 20 20 2a 20 20 55 53 45 52 0d 0a  ING..  *  USER..
2c10: 20 20 2a 20 20 55 53 45 52 4e 41 4d 45 0d 0a 0d    *  USERNAME...
2c20: 0a 3c 62 3e 56 49 53 55 41 4c 2f 45 44 49 54 4f  .<b>VISUAL/EDITO
2c30: 52 3c 2f 62 3e 20 63 6f 6e 74 61 69 6e 20 74 68  R</b> contain th
2c40: 65 20 65 64 69 74 6f 72 20 6f 66 20 79 6f 75 72  e editor of your
2c50: 20 63 68 6f 69 63 65 20 74 68 61 74 20 69 73 20   choice that is 
2c60: 75 73 65 64 20 74 6f 20 77 72 69 74 65 20 74 68  used to write th
2c70: 65 20 63 6f 6d 6d 69 74 20 66 69 6c 65 2e 0d 0a  e commit file...
2c80: 0d 0a 3c 62 3e 54 4d 50 5f 44 49 52 3c 2f 62 3e  ..<b>TMP_DIR</b>
2c90: 20 73 70 65 63 69 66 69 65 73 20 74 68 65 20 64   specifies the d
2ca0: 69 72 65 63 74 6f 72 79 20 66 6f 72 20 74 65 6d  irectory for tem
2cb0: 70 6f 72 61 72 79 20 66 69 6c 65 73 2e 0d 0a 0d  porary files....
2cc0: 0a 3c 62 3e 47 41 54 45 57 41 59 5f 49 4e 54 45  .<b>GATEWAY_INTE
2cd0: 52 46 41 43 45 3c 2f 62 3e 20 3f 3f 3f 0d 0a 0d  RFACE</b> ???...
2ce0: 0a 3c 62 3e 53 51 4c 49 54 45 5f 46 4f 52 43 45  .<b>SQLITE_FORCE
2cf0: 5f 50 52 4f 58 59 5f 4c 4f 43 4b 49 4e 47 3c 2f  _PROXY_LOCKING</
2d00: 62 3e 20 3f 3f 3f 0d 0a 0d 0a 3c 62 3e 55 53 45  b> ???....<b>USE
2d10: 52 3c 2f 62 3e 0d 0a 0d 0a 3c 62 3e 55 53 45 52  R</b>....<b>USER
2d20: 4e 41 4d 45 3c 2f 62 3e 0d 0a 0d 0a 0d 0a 3c 68  NAME</b>......<h
2d30: 32 3e 3c 61 20 6e 61 6d 65 3d 22 63 73 73 22 3e  2><a name="css">
2d40: 3c 2f 61 3e 45 78 61 6d 70 6c 65 20 43 53 53 3c  </a>Example CSS<
2d50: 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61  /h2>..<h3>Motiva
2d60: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 20 64  tion</h3>..The d
2d70: 65 66 61 75 6c 74 20 55 49 20 6d 61 79 20 6e 6f  efault UI may no
2d80: 74 20 62 65 20 73 74 79 6c 69 73 68 20 69 6e 20  t be stylish in 
2d90: 65 76 65 72 79 6f 6e 65 73 20 65 79 65 73 2e 0d  everyones eyes..
2da0: 0a 49 74 20 69 73 20 75 70 20 74 6f 20 79 6f 75  .It is up to you
2db0: 20 74 6f 20 63 68 61 6e 67 65 20 69 74 2e 20 53   to change it. S
2dc0: 65 65 20 74 68 65 20 43 53 53 20 63 6f 64 65 20  ee the CSS code 
2dd0: 62 65 6c 6f 77 20 66 72 6f 6d 20 74 68 69 73 20  below from this 
2de0: 73 69 74 65 20 5b 68 74 74 70 3a 2f 2f 66 6f 73  site [http://fos
2df0: 73 69 6c 2e 77 61 6e 64 65 72 69 6e 67 68 6f 72  sil.wanderinghor
2e00: 73 65 2e 6e 65 74 2f 69 6e 64 65 78 2e 63 67 69  se.net/index.cgi
2e10: 2f 69 6e 64 65 78 7c 57 61 6e 64 65 72 69 6e 67  /index|Wandering
2e20: 20 48 6f 72 73 65 5d 0d 0a 0d 0a 3c 6e 6f 77 69   Horse]....<nowi
2e30: 6b 69 3e 0d 0a 3c 70 72 65 3e 0d 0a 2f 2a 20 47  ki>..<pre>../* G
2e40: 65 6e 65 72 61 6c 20 73 65 74 74 69 6e 67 73 20  eneral settings 
2e50: 66 6f 72 20 74 68 65 20 65 6e 74 69 72 65 20 70  for the entire p
2e60: 61 67 65 20 2a 2f 0d 0a 62 6f 64 79 20 7b 0d 0a  age */..body {..
2e70: 20 20 6d 61 72 67 69 6e 3a 20 30 65 78 20 31 65    margin: 0ex 1e
2e80: 78 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 30  x;..  padding: 0
2e90: 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  px;..  backgroun
2ea0: 64 2d 63 6f 6c 6f 72 3a 20 77 68 69 74 65 3b 0d  d-color: white;.
2eb0: 0a 20 20 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 20  .  font-family: 
2ec0: 22 73 61 6e 73 20 73 65 72 69 66 22 3b 0d 0a 7d  "sans serif";..}
2ed0: 0d 0a 0d 0a 2f 2a 20 4d 61 6b 65 20 74 68 65 20  ..../* Make the 
2ee0: 6c 69 6e 6b 73 20 69 6e 20 74 68 65 20 66 6f 6f  links in the foo
2ef0: 74 65 72 20 6c 65 73 73 20 75 67 6c 79 2e 2e 2e  ter less ugly...
2f00: 20 2a 2f 0d 0a 61 20 7b 20 63 6f 6c 6f 72 3a 20   */..a { color: 
2f10: 23 30 30 30 66 36 61 3b 20 7d 0d 0a 61 3a 6c 69  #000f6a; }..a:li
2f20: 6e 6b 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30  nk { color: #000
2f30: 66 36 61 3b 20 7d 0d 0a 61 3a 76 69 73 69 74 65  f6a; }..a:visite
2f40: 64 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  d { color: #000f
2f50: 36 61 3b 20 7d 0d 0a 61 3a 68 6f 76 65 72 20 7b  6a; }..a:hover {
2f60: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
2f70: 72 3a 20 23 65 33 65 33 65 33 3b 20 7d 0d 0a 0d  r: #e3e3e3; }...
2f80: 0a 0d 0a 68 72 20 7b 0d 0a 20 20 68 65 69 67 68  ...hr {..  heigh
2f90: 74 3a 20 33 70 78 3b 0d 0a 20 20 62 6f 72 64 65  t: 3px;..  borde
2fa0: 72 2d 74 6f 70 3a 20 6e 6f 6e 65 3b 20 2f 2a 31  r-top: none; /*1
2fb0: 70 78 20 64 61 73 68 65 64 20 23 30 30 35 3b 2a  px dashed #005;*
2fc0: 2f 0d 0a 20 20 62 6f 72 64 65 72 2d 62 6f 74 74  /..  border-bott
2fd0: 6f 6d 3a 20 31 70 78 20 64 61 73 68 65 64 20 23  om: 1px dashed #
2fe0: 30 30 35 3b 0d 0a 20 20 62 6f 72 64 65 72 2d 6c  005;..  border-l
2ff0: 65 66 74 3a 20 6e 6f 6e 65 3b 0d 0a 20 20 62 6f  eft: none;..  bo
3000: 72 64 65 72 2d 72 69 67 68 74 3a 20 6e 6f 6e 65  rder-right: none
3010: 3b 0d 0a 7d 0d 0a 2f 2a 20 54 68 65 20 70 72 6f  ;..}../* The pro
3020: 6a 65 63 74 20 6c 6f 67 6f 20 69 6e 20 74 68 65  ject logo in the
3030: 20 75 70 70 65 72 20 6c 65 66 74 2d 68 61 6e 64   upper left-hand
3040: 20 63 6f 72 6e 65 72 20 6f 66 20 65 61 63 68 20   corner of each 
3050: 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 6c 6f 67  page */..div.log
3060: 6f 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20  o {..  display: 
3070: 74 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a 20 20 74  table-cell;..  t
3080: 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65  ext-align: cente
3090: 72 3b 0d 0a 20 20 76 65 72 74 69 63 61 6c 2d 61  r;..  vertical-a
30a0: 6c 69 67 6e 3a 20 62 6f 74 74 6f 6d 3b 0d 0a 20  lign: bottom;.. 
30b0: 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b   color: #000f6a;
30c0: 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 70 61  ..}..../* The pa
30d0: 67 65 20 74 69 74 6c 65 20 63 65 6e 74 65 72 65  ge title centere
30e0: 64 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20  d at the top of 
30f0: 65 61 63 68 20 70 61 67 65 20 2a 2f 0d 0a 64 69  each page */..di
3100: 76 2e 74 69 74 6c 65 20 7b 0d 0a 20 20 64 69 73  v.title {..  dis
3110: 70 6c 61 79 3a 20 74 61 62 6c 65 2d 63 65 6c 6c  play: table-cell
3120: 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20  ;..  font-size: 
3130: 32 65 6d 3b 0d 0a 20 20 66 6f 6e 74 2d 77 65 69  2em;..  font-wei
3140: 67 68 74 3a 20 62 6f 6c 64 3b 0d 0a 20 20 74 65  ght: bold;..  te
3150: 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72  xt-align: center
3160: 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30  ;..  color: #000
3170: 66 36 61 3b 0d 0a 20 20 76 65 72 74 69 63 61 6c  f6a;..  vertical
3180: 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 6f 6d 3b 0d  -align: bottom;.
3190: 0a 20 20 77 69 64 74 68 3a 20 31 30 30 25 3b 0d  .  width: 100%;.
31a0: 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 6c 6f 67  .}..../* The log
31b0: 69 6e 20 73 74 61 74 75 73 20 6d 65 73 73 61 67  in status messag
31c0: 65 20 69 6e 20 74 68 65 20 74 6f 70 20 72 69 67  e in the top rig
31d0: 68 74 2d 68 61 6e 64 20 63 6f 72 6e 65 72 20 2a  ht-hand corner *
31e0: 2f 0d 0a 64 69 76 2e 73 74 61 74 75 73 20 7b 0d  /..div.status {.
31f0: 0a 20 20 64 69 73 70 6c 61 79 3a 20 74 61 62 6c  .  display: tabl
3200: 65 2d 63 65 6c 6c 3b 0d 0a 20 20 74 65 78 74 2d  e-cell;..  text-
3210: 61 6c 69 67 6e 3a 20 72 69 67 68 74 3b 0d 0a 20  align: right;.. 
3220: 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 6e 3a   vertical-align:
3230: 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 63 6f 6c 6f   bottom;..  colo
3240: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 20 20 66  r: #000f6a;..  f
3250: 6f 6e 74 2d 73 69 7a 65 3a 20 30 2e 38 65 6d 3b  ont-size: 0.8em;
3260: 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 68 65  ..}..../* The he
3270: 61 64 65 72 20 61 63 72 6f 73 73 20 74 68 65 20  ader across the 
3280: 74 6f 70 20 6f 66 20 74 68 65 20 70 61 67 65 20  top of the page 
3290: 2a 2f 0d 0a 64 69 76 2e 68 65 61 64 65 72 20 7b  */..div.header {
32a0: 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20 74 61 62  ..  display: tab
32b0: 6c 65 3b 0d 0a 20 20 77 69 64 74 68 3a 20 31 30  le;..  width: 10
32c0: 30 25 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67  0%;..  text-alig
32d0: 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 7d 0d 0a 0d  n: center;..}...
32e0: 0a 2f 2a 20 54 68 65 20 6d 61 69 6e 20 6d 65 6e  ./* The main men
32f0: 75 20 62 61 72 20 74 68 61 74 20 61 70 70 65 61  u bar that appea
3300: 72 73 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66  rs at the top of
3310: 20 74 68 65 20 70 61 67 65 20 62 65 6e 65 61 74   the page beneat
3320: 68 0d 0a 2a 2a 20 74 68 65 20 68 65 61 64 65 72  h..** the header
3330: 20 2a 2f 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e   */..div.mainmen
3340: 75 20 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20  u {..  padding: 
3350: 32 70 78 20 35 70 78 20 32 70 78 20 35 70 78 3b  2px 5px 2px 5px;
3360: 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30  ..  font-size: 0
3370: 2e 39 65 6d 3b 0d 0a 20 20 74 65 78 74 2d 61 6c  .9em;..  text-al
3380: 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20  ign: center;..  
3390: 6c 65 74 74 65 72 2d 73 70 61 63 69 6e 67 3a 20  letter-spacing: 
33a0: 31 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75  1px;..  backgrou
33b0: 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65  nd-color: #e3e3e
33c0: 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30  3;..  color: #00
33d0: 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64 65 72 3a  0f6a;..  border:
33e0: 20 31 70 78 20 69 6e 73 65 74 20 62 6c 61 63 6b   1px inset black
33f0: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 73  ;..}..../* The s
3400: 75 62 6d 65 6e 75 20 62 61 72 20 74 68 61 74 20  ubmenu bar that 
3410: 2a 73 6f 6d 65 74 69 6d 65 73 2a 20 61 70 70 65  *sometimes* appe
3420: 61 72 73 20 62 65 6c 6f 77 20 74 68 65 20 6d 61  ars below the ma
3430: 69 6e 20 6d 65 6e 75 20 2a 2f 0d 0a 64 69 76 2e  in menu */..div.
3440: 73 75 62 6d 65 6e 75 20 7b 0d 0a 20 20 70 61 64  submenu {..  pad
3450: 64 69 6e 67 3a 20 32 70 78 20 35 70 78 20 32 70  ding: 2px 5px 2p
3460: 78 20 35 70 78 3b 0d 0a 20 20 66 6f 6e 74 2d 73  x 5px;..  font-s
3470: 69 7a 65 3a 20 30 2e 39 65 6d 3b 0d 0a 20 20 74  ize: 0.9em;..  t
3480: 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65  ext-align: cente
3490: 72 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64  r;..  background
34a0: 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b  -color: #e3e3e3;
34b0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  ..  color: #000f
34c0: 36 61 3b 0d 0a 7d 0d 0a 64 69 76 2e 6d 61 69 6e  6a;..}..div.main
34d0: 6d 65 6e 75 20 61 2c 20 64 69 76 2e 6d 61 69 6e  menu a, div.main
34e0: 6d 65 6e 75 20 61 3a 76 69 73 69 74 65 64 2c 20  menu a:visited, 
34f0: 64 69 76 2e 73 75 62 6d 65 6e 75 20 61 2c 20 64  div.submenu a, d
3500: 69 76 2e 73 75 62 6d 65 6e 75 20 61 3a 76 69 73  iv.submenu a:vis
3510: 69 74 65 64 20 7b 0d 0a 20 20 70 61 64 64 69 6e  ited {..  paddin
3520: 67 3a 20 32 70 78 20 31 30 70 78 20 32 70 78 20  g: 2px 10px 2px 
3530: 31 30 70 78 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  10px;..  color: 
3540: 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 61 63 6b  #000f6a;..  back
3550: 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65  ground-color: #e
3560: 33 65 33 65 33 3b 0d 0a 20 20 74 65 78 74 2d 64  3e3e3;..  text-d
3570: 65 63 6f 72 61 74 69 6f 6e 3a 20 6e 6f 6e 65 3b  ecoration: none;
3580: 0d 0a 7d 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e  ..}..div.mainmen
3590: 75 20 61 3a 68 6f 76 65 72 2c 20 64 69 76 2e 73  u a:hover, div.s
35a0: 75 62 6d 65 6e 75 20 61 3a 68 6f 76 65 72 20 7b  ubmenu a:hover {
35b0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 65 33 65 33  ..  color: #e3e3
35c0: 65 33 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  e3;..  backgroun
35d0: 64 2d 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61  d-color: #000f6a
35e0: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 41 6c 6c 20 70  ;..}..../* All p
35f0: 61 67 65 20 63 6f 6e 74 65 6e 74 20 66 72 6f 6d  age content from
3600: 20 74 68 65 20 62 6f 74 74 6f 6d 20 6f 66 20 74   the bottom of t
3610: 68 65 20 6d 65 6e 75 20 6f 72 20 73 75 62 6d 65  he menu or subme
3620: 6e 75 20 64 6f 77 6e 20 74 6f 0d 0a 2a 2a 20 74  nu down to..** t
3630: 68 65 20 66 6f 6f 74 65 72 20 2a 2f 0d 0a 64 69  he footer */..di
3640: 76 2e 63 6f 6e 74 65 6e 74 20 7b 0d 0a 20 20 70  v.content {..  p
3650: 61 64 64 69 6e 67 3a 20 30 65 78 20 31 65 78 20  adding: 0ex 1ex 
3660: 30 65 78 20 32 65 78 3b 0d 0a 7d 0d 0a 0d 0a 2f  0ex 2ex;..}..../
3670: 2a 20 53 6f 6d 65 20 70 61 67 65 73 20 68 61 76  * Some pages hav
3680: 65 20 73 65 63 74 69 6f 6e 20 64 69 76 69 64 65  e section divide
3690: 72 73 20 2a 2f 0d 0a 64 69 76 2e 73 65 63 74 69  rs */..div.secti
36a0: 6f 6e 20 7b 0d 0a 20 20 6d 61 72 67 69 6e 2d 62  on {..  margin-b
36b0: 6f 74 74 6f 6d 3a 20 30 70 78 3b 0d 0a 20 20 6d  ottom: 0px;..  m
36c0: 61 72 67 69 6e 2d 74 6f 70 3a 20 31 65 6d 3b 0d  argin-top: 1em;.
36d0: 0a 20 20 70 61 64 64 69 6e 67 3a 20 31 70 78 20  .  padding: 1px 
36e0: 31 70 78 20 31 70 78 20 31 70 78 3b 0d 0a 20 20  1px 1px 1px;..  
36f0: 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e 32 65 6d  font-size: 1.2em
3700: 3b 0d 0a 20 20 66 6f 6e 74 2d 77 65 69 67 68 74  ;..  font-weight
3710: 3a 20 62 6f 6c 64 3b 0d 0a 20 20 62 61 63 6b 67  : bold;..  backg
3720: 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33  round-color: #e3
3730: 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  e3e3;..  color: 
3740: 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a 0d 0a 2f  #000f6a;..}..../
3750: 2a 20 54 68 65 20 22 44 61 74 65 22 20 74 68 61  * The "Date" tha
3760: 74 20 6f 63 63 75 72 73 20 6f 6e 20 74 68 65 20  t occurs on the 
3770: 6c 65 66 74 20 68 61 6e 64 20 73 69 64 65 20 6f  left hand side o
3780: 66 20 74 69 6d 65 6c 69 6e 65 73 20 2a 2f 0d 0a  f timelines */..
3790: 64 69 76 2e 64 69 76 69 64 65 72 20 7b 0d 0a 20  div.divider {.. 
37a0: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
37b0: 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 20 63  r: #e3e3e3;..  c
37c0: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a  olor: #000f6a;..
37d0: 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 23 62    border: 1px #b
37e0: 62 62 62 66 66 20 73 6f 6c 69 64 3b 0d 0a 20 20  bbbff solid;..  
37f0: 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 65 6d 3b 20  font-size: 1em; 
3800: 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20 6e 6f 72  font-weight: nor
3810: 6d 61 6c 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a  mal;..  padding:
3820: 20 2e 32 35 65 6d 3b 0d 0a 20 20 6d 61 72 67 69   .25em;..  margi
3830: 6e 3a 20 2e 32 65 6d 20 30 20 2e 32 65 6d 20 30  n: .2em 0 .2em 0
3840: 3b 0d 0a 20 20 66 6c 6f 61 74 3a 20 6c 65 66 74  ;..  float: left
3850: 3b 0d 0a 20 20 63 6c 65 61 72 3a 20 6c 65 66 74  ;..  clear: left
3860: 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 66  ;..}..../* The f
3870: 6f 6f 74 65 72 20 61 74 20 74 68 65 20 76 65 72  ooter at the ver
3880: 79 20 62 6f 74 74 6f 6d 20 6f 66 20 74 68 65 20  y bottom of the 
3890: 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 66 6f 6f  page */..div.foo
38a0: 74 65 72 20 7b 0d 0a 20 20 66 6f 6e 74 2d 73 69  ter {..  font-si
38b0: 7a 65 3a 20 30 2e 38 65 6d 3b 0d 0a 20 20 70 61  ze: 0.8em;..  pa
38c0: 64 64 69 6e 67 3a 20 32 70 78 20 35 70 78 20 32  dding: 2px 5px 2
38d0: 70 78 20 35 70 78 3b 0d 0a 20 20 74 65 78 74 2d  px 5px;..  text-
38e0: 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a  align: center;..
38f0: 20 20 6c 65 74 74 65 72 2d 73 70 61 63 69 6e 67    letter-spacing
3900: 3a 20 31 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72  : 1px;..  backgr
3910: 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65  ound-color: #e3e
3920: 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23  3e3;..  color: #
3930: 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64 65  000f6a;..  borde
3940: 72 3a 20 31 70 78 20 69 6e 73 65 74 20 62 6c 61  r: 1px inset bla
3950: 63 6b 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 4d 61 6b  ck;..}..../* Mak
3960: 65 20 74 68 65 20 6c 69 6e 6b 73 20 69 6e 20 74  e the links in t
3970: 68 65 20 66 6f 6f 74 65 72 20 6c 65 73 73 20 75  he footer less u
3980: 67 6c 79 2e 2e 2e 20 2a 2f 0d 0a 64 69 76 2e 66  gly... */..div.f
3990: 6f 6f 74 65 72 20 61 20 7b 20 63 6f 6c 6f 72 3a  ooter a { color:
39a0: 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 69 76   #000f6a; }..div
39b0: 2e 66 6f 6f 74 65 72 20 61 3a 6c 69 6e 6b 20 7b  .footer a:link {
39c0: 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b   color: #000f6a;
39d0: 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 20 61   }..div.footer a
39e0: 3a 76 69 73 69 74 65 64 20 7b 20 63 6f 6c 6f 72  :visited { color
39f0: 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 69  : #000f6a; }..di
3a00: 76 2e 66 6f 6f 74 65 72 20 61 3a 68 6f 76 65 72  v.footer a:hover
3a10: 20 7b 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f   { background-co
3a20: 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 63 6f  lor: #000f6a; co
3a30: 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 20 7d 0d  lor: #e3e3e3; }.
3a40: 0a 0d 0a 2f 2a 20 76 65 72 62 61 74 69 6d 20 62  .../* verbatim b
3a50: 6c 6f 63 6b 73 20 2a 2f 0d 0a 70 72 65 2e 76 65  locks */..pre.ve
3a60: 72 62 61 74 69 6d 20 7b 0d 0a 20 20 20 62 61 63  rbatim {..   bac
3a70: 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23  kground-color: #
3a80: 66 35 66 35 66 35 3b 0d 0a 20 20 20 70 61 64 64  f5f5f5;..   padd
3a90: 69 6e 67 3a 20 30 2e 35 65 6d 3b 0d 0a 7d 0d 0a  ing: 0.5em;..}..
3aa0: 0d 0a 2f 2a 20 54 68 65 20 6c 61 62 65 6c 2f 76  ../* The label/v
3ab0: 61 6c 75 65 20 70 61 69 72 73 20 6f 6e 20 28 66  alue pairs on (f
3ac0: 6f 72 20 65 78 61 6d 70 6c 65 29 20 74 68 65 20  or example) the 
3ad0: 76 69 6e 66 6f 20 70 61 67 65 20 2a 2f 0d 0a 74  vinfo page */..t
3ae0: 61 62 6c 65 2e 6c 61 62 65 6c 2d 76 61 6c 75 65  able.label-value
3af0: 20 74 68 20 7b 0d 0a 20 20 76 65 72 74 69 63 61   th {..  vertica
3b00: 6c 2d 61 6c 69 67 6e 3a 20 74 6f 70 3b 0d 0a 20  l-align: top;.. 
3b10: 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 72 69 67   text-align: rig
3b20: 68 74 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20  ht;..  padding: 
3b30: 30 2e 32 65 78 20 32 65 78 3b 0d 0a 7d 0d 0a 0d  0.2ex 2ex;..}...
3b40: 0a 2f 2a 20 46 6f 72 20 6d 61 72 6b 69 6e 67 20  ./* For marking 
3b50: 69 6d 70 6f 72 74 61 6e 74 20 55 49 20 65 6c 65  important UI ele
3b60: 6d 65 6e 74 73 20 77 68 69 63 68 20 73 68 6f 75  ments which shou
3b70: 6c 64 6e 27 74 20 62 65 0d 0a 20 20 20 6c 69 67  ldn't be..   lig
3b80: 68 74 6c 79 20 64 69 73 6d 69 73 73 65 64 2e 20  htly dismissed. 
3b90: 49 20 6d 61 69 6e 6c 79 20 75 73 65 20 69 74 20  I mainly use it 
3ba0: 74 6f 20 6d 61 72 6b 20 22 6e 6f 74 20 79 65 74  to mark "not yet
3bb0: 0d 0a 20 20 20 69 6d 70 6c 65 6d 65 6e 74 65 64  ..   implemented
3bc0: 22 20 70 61 72 74 73 20 6f 66 20 61 20 70 61 67  " parts of a pag
3bd0: 65 2e 20 57 68 65 74 68 65 72 20 6f 72 20 6e 6f  e. Whether or no
3be0: 74 20 74 6f 20 68 61 76 65 0d 0a 20 20 20 61 20  t to have..   a 
3bf0: 27 62 6f 72 64 65 72 27 20 61 74 74 72 69 62 75  'border' attribu
3c00: 74 65 20 73 65 74 20 69 73 20 61 72 67 75 61 62  te set is arguab
3c10: 6c 65 2e 20 2a 2f 0d 0a 2e 61 63 68 74 75 6e 67  le. */...achtung
3c20: 20 7b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 66 66   {..  color: #ff
3c30: 30 30 30 30 3b 0d 0a 20 20 62 61 63 6b 67 72 6f  0000;..  backgro
3c40: 75 6e 64 3a 20 23 66 66 66 66 30 30 3b 0d 0a 20  und: #ffff00;.. 
3c50: 20 62 6f 72 64 65 72 3a 20 31 70 78 20 73 6f 6c   border: 1px sol
3c60: 69 64 20 23 66 66 30 30 30 30 3b 0d 0a 7d 0d 0a  id #ff0000;..}..
3c70: 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64  ..table.fossil_d
3c80: 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f  b_generic_query_
3c90: 76 69 65 77 20 7b 0d 0a 20 20 62 6f 72 64 65 72  view {..  border
3ca0: 2d 73 70 61 63 69 6e 67 3a 20 30 70 78 3b 0d 0a  -spacing: 0px;..
3cb0: 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 73 6f    border: 1px so
3cc0: 6c 69 64 20 62 6c 61 63 6b 3b 0d 0a 7d 0d 0a 74  lid black;..}..t
3cd0: 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67  able.fossil_db_g
3ce0: 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65  eneric_query_vie
3cf0: 77 20 74 64 20 7b 0d 0a 20 20 70 61 64 64 69 6e  w td {..  paddin
3d00: 67 3a 20 32 70 78 20 31 65 6d 20 32 70 78 20 31  g: 2px 1em 2px 1
3d10: 65 6d 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f  em;..}..table.fo
3d20: 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f  ssil_db_generic_
3d30: 71 75 65 72 79 5f 76 69 65 77 20 74 72 20 7b 0d  query_view tr {.
3d40: 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c  .}..table.fossil
3d50: 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72  _db_generic_quer
3d60: 79 5f 76 69 65 77 20 74 72 2e 65 76 65 6e 20 7b  y_view tr.even {
3d70: 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20  ..  background: 
3d80: 23 66 66 66 66 66 66 3b 0d 0a 7d 0d 0a 74 61 62  #ffffff;..}..tab
3d90: 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e  le.fossil_db_gen
3da0: 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65 77 20  eric_query_view 
3db0: 74 72 2e 6f 64 64 20 7b 0d 0a 20 20 62 61 63 6b  tr.odd {..  back
3dc0: 67 72 6f 75 6e 64 3a 20 23 65 35 65 35 65 35 3b  ground: #e5e5e5;
3dd0: 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69  ..}..table.fossi
3de0: 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65  l_db_generic_que
3df0: 72 79 5f 76 69 65 77 20 74 72 2e 68 65 61 64 65  ry_view tr.heade
3e00: 72 20 7b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  r {..  backgroun
3e10: 64 3a 20 23 35 35 38 31 39 35 3b 0d 0a 20 20 66  d: #558195;..  f
3e20: 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e 35 65 6d 3b  ont-size: 1.5em;
3e30: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 66 66 66 66  ..  color: #ffff
3e40: 66 66 3b 0d 0a 7d 0d 0a 3c 2f 70 72 65 3e 0d 0a  ff;..}..</pre>..
3e50: 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 3c 68 32 3e 3c  </nowiki>..<h2><
3e60: 61 20 6e 61 6d 65 3d 22 73 6f 75 72 63 65 2d 68  a name="source-h
3e70: 69 6c 69 67 68 74 22 3e 53 6f 75 72 63 65 20 68  ilight">Source h
3e80: 69 67 68 6c 69 67 68 74 69 6e 67 3c 2f 61 3e 3c  ighlighting</a><
3e90: 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61  /h2>..<h3>Motiva
3ea0: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20  tion</h3>..  *  
3eb0: 59 6f 75 20 77 61 6e 74 20 74 6f 20 68 61 76 65  You want to have
3ec0: 20 73 6f 75 72 63 65 20 63 6f 64 65 20 68 69 67   source code hig
3ed0: 68 6c 69 67 68 74 69 6e 67 20 66 6f 72 20 74 68  hlighting for th
3ee0: 65 20 66 69 6c 65 73 20 69 6e 20 79 6f 75 72 20  e files in your 
3ef0: 72 65 70 6f 73 69 74 6f 72 79 0d 0a 0d 0a 3c 68  repository....<h
3f00: 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a  3>Problem</h3>..
3f10: 54 68 65 20 6d 61 69 6e 20 70 75 72 70 6f 73 65  The main purpose
3f20: 20 6f 66 20 46 6f 73 73 69 6c 20 69 73 20 74 6f   of Fossil is to
3f30: 20 64 6f 20 76 65 72 73 69 6f 6e 69 6e 67 20 74   do versioning t
3f40: 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 2e 20  he source code. 
3f50: 41 6c 74 68 6f 75 67 68 20 69 74 20 70 72 6f 76  Although it prov
3f60: 69 64 65 73 20 61 20 73 74 61 6e 64 61 6c 6f 6e  ides a standalon
3f70: 65 20 73 65 72 76 65 72 20 61 6e 64 20 6c 65 74  e server and let
3f80: 73 20 79 6f 75 20 6e 61 76 69 67 61 74 65 20 74  s you navigate t
3f90: 68 72 6f 75 67 68 20 74 68 65 20 72 65 70 6f 73  hrough the repos
3fa0: 69 74 6f 72 79 20 66 69 6c 65 73 20 61 64 64 69  itory files addi
3fb0: 74 69 6f 6e 61 6c 20 66 65 61 74 75 72 65 73 20  tional features 
3fc0: 6c 69 6b 65 20 73 6f 75 72 63 65 20 63 6f 64 65  like source code
3fd0: 20 68 69 67 68 6c 69 67 68 74 69 6e 67 20 66 72   highlighting fr
3fe0: 6f 6d 20 6d 79 20 70 65 72 73 70 65 63 74 69 76  om my perspectiv
3ff0: 65 20 28 49 20 61 6d 20 6e 6f 74 20 61 20 64 65  e (I am not a de
4000: 76 65 6c 6f 70 65 72 20 6f 66 20 46 6f 73 73 69  veloper of Fossi
4010: 6c 29 20 69 73 20 6f 75 74 20 6f 66 20 73 63 6f  l) is out of sco
4020: 70 65 20 66 6f 72 20 61 6e 20 53 43 4d 2e 20 4a  pe for an SCM. J
4030: 75 73 74 20 6b 65 65 70 20 74 68 65 20 55 6e 69  ust keep the Uni
4040: 78 20 70 72 69 6e 63 69 70 6c 65 3a 20 73 6d 61  x principle: sma
4050: 6c 6c 20 6c 69 74 74 6c 65 20 70 72 6f 67 72 61  ll little progra
4060: 6d 73 20 74 68 61 74 20 64 6f 20 74 68 65 69 72  ms that do their
4070: 20 74 61 73 6b 20 61 6e 64 20 64 6f 20 69 74 20   task and do it 
4080: 77 65 6c 6c 2e 0d 0a 0d 0a 48 6f 77 65 76 65 72  well.....However
4090: 20 74 6f 20 68 61 76 65 20 61 20 73 6f 75 72 63   to have a sourc
40a0: 65 20 63 6f 64 65 20 68 69 67 68 6c 69 67 68 74  e code highlight
40b0: 69 6e 67 20 69 6e 20 74 68 65 20 70 72 65 73 65  ing in the prese
40c0: 6e 74 65 64 20 77 65 62 20 70 61 67 65 73 20 77  nted web pages w
40d0: 6f 75 6c 64 20 73 74 69 6c 6c 20 62 65 20 64 65  ould still be de
40e0: 73 69 72 61 62 6c 65 2e 0d 0a 0d 0a 3c 68 33 3e  sirable.....<h3>
40f0: 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54  Solution</h3>..T
4100: 68 65 72 65 20 61 72 65 20 74 77 6f 20 73 63 65  here are two sce
4110: 6e 61 72 69 6f 73 20 68 6f 77 20 74 6f 20 69 6d  narios how to im
4120: 70 6c 65 6d 65 6e 74 20 73 75 63 68 20 61 20 66  plement such a f
4130: 65 61 74 75 72 65 3a 0d 0a 20 20 20 2a 20 20 46  eature:..   *  F
4140: 6f 73 73 69 6c 20 70 69 70 65 73 20 74 68 65 20  ossil pipes the 
4150: 73 6f 75 72 63 65 20 63 6f 64 65 20 74 68 72 6f  source code thro
4160: 75 67 68 20 61 20 66 69 6c 74 65 72 20 62 65 66  ugh a filter bef
4170: 6f 72 65 20 73 65 6e 64 69 6e 67 20 69 74 20 74  ore sending it t
4180: 6f 20 74 68 65 20 62 72 6f 77 73 65 72 2e 20 54  o the browser. T
4190: 68 65 20 66 69 6c 74 65 72 20 63 6f 75 6c 64 20  he filter could 
41a0: 62 65 20 64 65 66 69 6e 65 64 20 61 73 20 61 20  be defined as a 
41b0: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6f 70  configuration op
41c0: 74 69 6f 6e 20 74 6f 20 46 6f 73 73 69 6c 2e 20  tion to Fossil. 
41d0: 4f 6e 65 20 73 6f 6c 75 74 69 6f 6e 20 66 6f 72  One solution for
41e0: 20 74 68 69 73 20 6d 69 67 68 74 20 62 65 20 74   this might be t
41f0: 68 65 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70  he <a href="http
4200: 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 73  ://www.gnu.org/s
4210: 6f 66 74 77 61 72 65 2f 73 72 63 2d 68 69 67 68  oftware/src-high
4220: 6c 69 74 65 22 3e 47 4e 55 20 53 6f 75 72 63 65  lite">GNU Source
4230: 20 63 6f 64 65 20 48 69 67 68 6c 69 67 68 74 69   code Highlighti
4240: 6e 67 3c 2f 61 3e 20 70 72 6f 67 72 61 6d 2e 0d  ng</a> program..
4250: 0a 20 20 20 2a 20 20 55 73 65 20 61 20 4a 61 76  .   *  Use a Jav
4260: 61 73 63 72 69 70 74 20 6c 69 62 72 61 72 79 20  ascript library 
4270: 74 68 61 74 20 72 65 6e 64 65 72 73 20 74 68 65  that renders the
4280: 20 63 6f 64 65 20 77 69 74 68 69 6e 20 79 6f 75   code within you
4290: 72 20 62 72 6f 77 73 65 72 2e 20 4f 6e 65 20 73  r browser. One s
42a0: 6f 6c 75 74 69 6f 6e 20 66 6f 72 20 74 68 69 73  olution for this
42b0: 20 6d 69 67 68 74 20 62 65 20 3c 61 20 68 72 65   might be <a hre
42c0: 66 3d 22 68 74 74 70 3a 2f 2f 63 6f 64 65 2e 67  f="http://code.g
42d0: 6f 6f 67 6c 65 2e 63 6f 6d 2f 70 2f 73 79 6e 74  oogle.com/p/synt
42e0: 61 78 68 69 67 68 6c 69 67 68 74 65 72 22 3e 47  axhighlighter">G
42f0: 6f 6f 67 6c 65 20 53 79 6e 74 61 78 20 48 69 67  oogle Syntax Hig
4300: 68 6c 69 67 68 74 65 72 3c 2f 61 3e 0d 0a 0d 0a  hlighter</a>....
4310: 49 20 65 73 74 69 6d 61 74 65 20 74 68 61 74 20  I estimate that 
4320: 74 68 65 20 3c 69 3e 70 69 70 65 3c 2f 69 3e 20  the <i>pipe</i> 
4330: 73 6f 6c 75 74 69 6f 6e 20 6e 65 65 64 73 20 73  solution needs s
4340: 6f 6d 65 20 6d 6f 72 65 20 77 6f 72 6b 2f 20 63  ome more work/ c
4350: 6f 64 65 20 63 68 61 6e 67 65 73 2e 20 54 68 75  ode changes. Thu
4360: 73 20 49 20 61 6d 20 73 6f 6c 65 6c 79 20 6c 6f  s I am solely lo
4370: 6f 6b 69 6e 67 20 61 74 20 74 68 65 20 4a 61 76  oking at the Jav
4380: 61 73 63 72 69 70 74 20 73 6f 6c 75 74 69 6f 6e  ascript solution
4390: 2e 0d 0a 0d 0a 54 68 65 20 53 79 6e 74 61 78 48  .....The SyntaxH
43a0: 69 67 68 6c 69 67 68 74 65 72 20 69 73 20 61 20  ighlighter is a 
43b0: 6c 69 62 72 61 72 79 20 6f 66 20 73 6f 6d 65 20  library of some 
43c0: 4a 61 76 61 73 63 72 69 70 74 20 66 69 6c 65 73  Javascript files
43d0: 2c 20 61 20 6c 69 74 74 6c 65 20 46 6c 61 73 68  , a little Flash
43e0: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 61 6e 64   application and
43f0: 20 61 20 43 53 53 20 66 69 6c 65 2e 20 54 68 65   a CSS file. The
4400: 20 46 6c 61 73 68 20 61 70 70 6c 69 63 61 74 69   Flash applicati
4410: 6f 6e 20 69 73 20 66 6f 72 20 63 6f 70 79 69 6e  on is for copyin
4420: 67 20 74 6f 20 63 6c 69 70 62 6f 61 72 64 2c 20  g to clipboard, 
4430: 70 72 69 6e 74 20 61 6e 64 20 76 69 65 77 20 73  print and view s
4440: 6f 75 72 63 65 2e 20 59 6f 75 20 68 61 76 65 20  ource. You have 
4450: 74 68 65 20 6f 70 74 69 6f 6e 20 74 6f 20 69 6e  the option to in
4460: 63 6c 75 64 65 20 61 6c 6c 20 74 68 65 20 66 69  clude all the fi
4470: 6c 65 73 20 69 6e 74 6f 20 79 6f 75 72 20 72 65  les into your re
4480: 70 6f 73 69 74 6f 72 79 20 6f 72 20 75 73 65 20  pository or use 
4490: 74 68 65 20 66 69 6c 65 73 20 68 6f 73 74 65 64  the files hosted
44a0: 20 61 74 20 47 6f 6f 67 6c 65 2e 20 54 68 65 20   at Google. The 
44b0: 6c 61 74 74 65 72 20 6d 61 79 20 6f 6e 6c 79 20  latter may only 
44c0: 62 65 20 61 6e 20 6f 70 74 69 6f 6e 20 69 66 20  be an option if 
44d0: 79 6f 75 20 61 72 65 20 63 6f 6e 6e 65 63 74 65  you are connecte
44e0: 64 20 74 6f 20 69 6e 74 65 72 6e 65 74 20 61 6c  d to internet al
44f0: 6c 20 74 68 65 20 74 69 6d 65 2e 0d 0a 0d 0a 46  l the time.....F
4500: 6f 72 20 73 79 6e 74 61 78 20 68 69 67 68 6c 69  or syntax highli
4510: 67 68 74 69 6e 67 20 74 6f 20 77 6f 72 6b 20 74  ghting to work t
4520: 68 65 20 48 65 61 64 65 72 20 61 6e 64 20 46 6f  he Header and Fo
4530: 6f 74 65 72 20 74 65 6d 70 6c 61 74 65 73 20 6e  oter templates n
4540: 65 65 64 20 74 6f 20 62 65 20 6d 6f 64 69 66 69  eed to be modifi
4550: 65 64 20 61 6e 64 20 61 20 6c 69 74 74 6c 65 20  ed and a little 
4560: 63 6f 64 65 20 63 68 61 6e 67 65 20 68 61 73 20  code change has 
4570: 74 6f 20 62 65 20 61 70 70 6c 69 65 64 20 74 6f  to be applied to
4580: 20 74 68 65 20 46 6f 73 73 69 6c 20 73 6f 75 72   the Fossil sour
4590: 63 65 73 2e 0d 0a 54 68 65 20 65 78 61 6d 70 6c  ces...The exampl
45a0: 65 73 20 62 65 6c 6f 77 20 61 73 73 75 6d 65 20  es below assume 
45b0: 79 6f 75 20 68 61 76 65 20 61 64 64 65 64 20 74  you have added t
45c0: 68 65 20 73 79 6e 74 61 78 20 68 69 67 68 6c 69  he syntax highli
45d0: 67 68 74 69 6e 67 20 6c 69 62 72 61 72 79 20 74  ghting library t
45e0: 6f 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72  o your repositor
45f0: 79 20 69 6e 74 6f 20 61 20 64 69 72 65 63 74 6f  y into a directo
4600: 72 79 20 77 77 77 2f 73 63 72 69 70 74 73 2e 0d  ry www/scripts..
4610: 0a 3c 70 3e 0d 0a 3c 62 3e 48 65 61 64 65 72 3c  .<p>..<b>Header<
4620: 2f 62 3e 0d 0a 3c 70 72 65 3e 0d 0a 26 6c 74 3b  /b>..<pre>..&lt;
4630: 68 74 6d 6c 26 67 74 3b 0d 0a 20 26 6c 74 3b 68  html&gt;.. &lt;h
4640: 65 61 64 26 67 74 3b 0d 0a 20 26 6c 74 3b 74 69  ead&gt;.. &lt;ti
4650: 74 6c 65 26 67 74 3b 24 26 6c 74 3b 70 72 6f 6a  tle&gt;$&lt;proj
4660: 65 63 74 5f 6e 61 6d 65 26 67 74 3b 3a 20 24 26  ect_name&gt;: $&
4670: 6c 74 3b 74 69 74 6c 65 26 67 74 3b 26 6c 74 3b  lt;title&gt;&lt;
4680: 2f 74 69 74 6c 65 26 67 74 3b 0d 0a 20 26 6c 74  /title&gt;.. &lt
4690: 3b 6c 69 6e 6b 20 72 65 6c 3d 22 61 6c 74 65 72  ;link rel="alter
46a0: 6e 61 74 65 22 20 74 79 70 65 3d 22 61 70 70 6c  nate" type="appl
46b0: 69 63 61 74 69 6f 6e 2f 72 73 73 2b 78 6d 6c 22  ication/rss+xml"
46c0: 20 74 69 74 6c 65 3d 22 52 53 53 20 46 65 65 64   title="RSS Feed
46d0: 22 0d 0a 20 20 20 20 20 20 20 68 72 65 66 3d 22  "..       href="
46e0: 24 62 61 73 65 75 72 6c 2f 74 69 6d 65 6c 69 6e  $baseurl/timelin
46f0: 65 2e 72 73 73 22 26 67 74 3b 0d 0a 20 26 6c 74  e.rss"&gt;.. &lt
4700: 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79 6c 65  ;link rel="style
4710: 73 68 65 65 74 22 20 68 72 65 66 3d 22 24 62 61  sheet" href="$ba
4720: 73 65 75 72 6c 2f 73 74 79 6c 65 2e 63 73 73 22  seurl/style.css"
4730: 20 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22   type="text/css"
4740: 0d 0a 20 20 20 20 20 20 20 6d 65 64 69 61 3d 22  ..       media="
4750: 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a 20 26 6c  screen"&gt;.. &l
4760: 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79 6c  t;link rel="styl
4770: 65 73 68 65 65 74 22 20 68 72 65 66 3d 22 24 62  esheet" href="$b
4780: 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69 70 2f 77  aseurl/doc/tip/w
4790: 77 77 2f 53 79 6e 74 61 78 48 69 67 68 6c 69 67  ww/SyntaxHighlig
47a0: 68 74 65 72 2e 63 73 73 22 20 74 79 70 65 3d 22  hter.css" type="
47b0: 74 65 78 74 2f 63 73 73 22 0d 0a 20 20 20 20 20  text/css"..     
47c0: 20 20 6d 65 64 69 61 3d 22 73 63 72 65 65 6e 22    media="screen"
47d0: 26 67 74 3b 0d 0a 20 26 6c 74 3b 2f 68 65 61 64  &gt;.. &lt;/head
47e0: 26 67 74 3b 0d 0a 0d 0a 2e 20 2e 20 2e 0d 0a 3c  &gt;..... . ...<
47f0: 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 3c 70 3e 0d 0a  /pre>..</p><p>..
4800: 3c 62 3e 46 6f 6f 74 65 72 3c 2f 62 3e 0d 0a 3c  <b>Footer</b>..<
4810: 70 72 65 3e 0d 0a 26 6c 74 3b 2f 64 69 76 26 67  pre>..&lt;/div&g
4820: 74 3b 0d 0a 26 6c 74 3b 64 69 76 20 63 6c 61 73  t;..&lt;div clas
4830: 73 3d 22 66 6f 6f 74 65 72 22 26 67 74 3b 0d 0a  s="footer"&gt;..
4840: 46 6f 73 73 69 6c 20 76 65 72 73 69 6f 6e 20 24  Fossil version $
4850: 6d 61 6e 69 66 65 73 74 5f 76 65 72 73 69 6f 6e  manifest_version
4860: 20 24 6d 61 6e 69 66 65 73 74 5f 64 61 74 65 0d   $manifest_date.
4870: 0a 26 67 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 26  .&gt;/div&gt;..&
4880: 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67 75 61  lt;script langua
4890: 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74 22 20  ge="javascript" 
48a0: 73 72 63 3d 22 24 62 61 73 65 75 72 6c 2f 64 6f  src="$baseurl/do
48b0: 63 2f 74 69 70 2f 77 77 77 2f 73 63 72 69 70 74  c/tip/www/script
48c0: 73 2f 73 68 43 6f 72 65 2e 6a 73 22 26 67 74 3b  s/shCore.js"&gt;
48d0: 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d  &lt;/script&gt;.
48e0: 0a 26 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67  .&lt;script lang
48f0: 75 61 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74  uage="javascript
4900: 22 20 73 72 63 3d 22 24 62 61 73 65 75 72 6c 2f  " src="$baseurl/
4910: 64 6f 63 2f 74 69 70 2f 77 77 77 2f 73 63 72 69  doc/tip/www/scri
4920: 70 74 73 2f 73 68 42 72 75 73 68 43 70 70 2e 6a  pts/shBrushCpp.j
4930: 73 22 26 67 74 3b 26 6c 74 3b 2f 73 63 72 69 70  s"&gt;&lt;/scrip
4940: 74 26 67 74 3b 0d 0a 26 6c 74 3b 73 63 72 69 70  t&gt;..&lt;scrip
4950: 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a 61 76 61  t language="java
4960: 73 63 72 69 70 74 22 26 67 74 3b 0d 0a 64 70 2e  script"&gt;..dp.
4970: 53 79 6e 74 61 78 48 69 67 68 6c 69 67 68 74 65  SyntaxHighlighte
4980: 72 2e 43 6c 69 70 62 6f 61 72 64 53 77 66 20 3d  r.ClipboardSwf =
4990: 20 27 24 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74   '$baseurl/doc/t
49a0: 69 70 2f 77 77 77 2f 73 63 72 69 70 74 73 2f 63  ip/www/scripts/c
49b0: 6c 69 70 62 6f 61 72 64 2e 73 77 66 27 3b 0d 0a  lipboard.swf';..
49c0: 64 70 2e 53 79 6e 74 61 78 48 69 67 68 6c 69 67  dp.SyntaxHighlig
49d0: 68 74 65 72 2e 48 69 67 68 6c 69 67 68 74 41 6c  hter.HighlightAl
49e0: 6c 28 27 63 6f 64 65 27 29 3b 0d 0a 26 6c 74 3b  l('code');..&lt;
49f0: 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a 26 6c 74  /script&gt;..&lt
4a00: 3b 2f 62 6f 64 79 26 67 74 3b 26 6c 74 3b 2f 68  ;/body&gt;&lt;/h
4a10: 74 6d 6c 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d  tml&gt;..</pre>.
4a20: 0a 3c 2f 70 3e 3c 70 3e 0d 0a 3c 62 3e 46 6f 73  .</p><p>..<b>Fos
4a30: 73 69 6c 2f 73 72 63 2f 69 6e 66 6f 2e 63 3c 2f  sil/src/info.c</
4a40: 62 3e 20 66 75 6e 63 74 69 6f 6e 20 61 72 74 69  b> function arti
4a50: 66 61 63 74 5f 70 61 67 65 0d 0a 3c 70 72 65 3e  fact_page..<pre>
4a60: 0d 0a 69 66 28 20 7a 4d 69 6d 65 3d 3d 30 20 29  ..if( zMime==0 )
4a70: 7b 0d 0a 20 20 20 20 40 20 26 6c 74 3b 70 72 65  {..    @ &lt;pre
4a80: 20 6e 61 6d 65 3d 22 63 6f 64 65 22 20 63 6c 61   name="code" cla
4a90: 73 73 3d 22 63 22 26 67 74 3b 0d 0a 20 20 20 20  ss="c"&gt;..    
4aa0: 40 20 25 68 28 62 6c 6f 62 5f 73 74 72 28 26 63  @ %h(blob_str(&c
4ab0: 6f 6e 74 65 6e 74 29 29 0d 0a 20 20 20 20 40 20  ontent))..    @ 
4ac0: 26 6c 74 3b 2f 70 72 65 26 67 74 3b 0d 0a 3c 2f  &lt;/pre&gt;..</
4ad0: 70 72 65 3e 0d 0a 3c 2f 70 3e 0d 0a 3c 68 33 3e  pre>..</p>..<h3>
4ae0: 44 69 73 63 75 73 73 69 6f 6e 3c 2f 68 33 3e 0d  Discussion</h3>.
4af0: 0a 54 68 65 20 4a 61 76 61 73 63 72 69 70 74 20  .The Javascript 
4b00: 73 6f 6c 75 74 69 6f 6e 20 72 65 71 75 69 72 65  solution require
4b10: 73 20 61 20 6d 69 6e 69 6d 75 6d 20 74 6f 20 62  s a minimum to b
4b20: 65 20 66 75 6c 6c 79 20 73 75 70 70 6f 72 74 65  e fully supporte
4b30: 64 20 62 79 20 46 6f 73 73 69 6c 2e 20 4f 66 20  d by Fossil. Of 
4b40: 63 6f 75 72 73 65 20 6d 79 20 6c 69 74 74 65 20  course my litte 
4b50: 63 68 61 6e 67 65 20 6f 6e 6c 79 20 61 70 70 6c  change only appl
4b60: 69 65 73 20 66 6f 72 20 43 2f 43 2b 2b 20 66 69  ies for C/C++ fi
4b70: 6c 65 73 2e 20 42 75 74 20 6f 6e 6c 79 20 6c 69  les. But only li
4b80: 74 74 6c 65 20 6d 6f 72 65 20 77 6f 72 6b 20 6e  ttle more work n
4b90: 65 65 64 73 20 74 6f 20 62 65 20 64 6f 6e 65 20  eeds to be done 
4ba0: 74 6f 20 67 65 74 20 74 68 65 20 65 78 74 65 6e  to get the exten
4bb0: 73 69 6f 6e 20 6f 66 20 74 68 65 20 66 69 6c 65  sion of the file
4bc0: 20 61 20 67 75 65 73 73 20 74 68 65 20 66 69 6c   a guess the fil
4bd0: 65 20 74 79 70 65 2e 0d 0a 0d 0a 54 68 65 20 70  e type.....The p
4be0: 69 70 65 20 73 6f 6c 75 74 69 6f 6e 20 77 6f 75  ipe solution wou
4bf0: 6c 64 20 61 6c 73 6f 20 62 65 20 6e 69 63 65 20  ld also be nice 
4c00: 62 75 74 20 77 6f 75 6c 64 20 70 72 6f 62 61 62  but would probab
4c10: 6c 79 20 6e 65 65 64 20 73 6f 6d 65 20 6d 6f 72  ly need some mor
4c20: 65 20 77 6f 72 6b 20 74 68 61 6e 20 74 68 69 73  e work than this
4c30: 20 6c 69 74 74 6c 65 20 70 61 74 63 68 2e 0d 0a   little patch...
4c40: 0a 5a 20 31 39 39 37 38 62 36 62 38 63 38 37 32  .Z 19978b6b8c872
4c50: 35 64 33 66 33 33 62 35 34 35 35 35 63 32 63 65  5d3f33b54555c2ce
4c60: 31 62 37 0a                                      1b7.