Hex Artifact Content
Not logged in

Artifact 9212b6409c6b7d3a3970f2e4fe9a7d41de4a3ff3:

Wiki page [Cookbook] by anonymous on 2009-11-01 10:42:30.

0000: 44 20 32 30 30 39 2d 31 31 2d 30 31 54 31 30 3a  D 2009-11-01T10:
0010: 34 32 3a 33 30 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b  42:30.L Cookbook
0020: 0a 50 20 34 61 30 62 62 31 37 37 35 39 65 35 62  .P 4a0bb17759e5b
0030: 66 35 35 65 36 66 33 63 62 33 66 32 39 37 36 36  f55e6f3cb3f29766
0040: 62 64 30 32 63 32 36 64 66 30 35 0a 55 20 61 6e  bd02c26df05.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 34 30 37 37 33 0a  onymous.W 40773.
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 20 20 3c 6c  ghting</a>..  <l
02f0: 69 3e 20 3c 61 20 68 72 65 66 3d 22 23 77 69 6e  i> <a href="#win
0300: 33 32 64 65 76 22 3e 46 6f 73 73 69 6c 20 57 69  32dev">Fossil Wi
0310: 6e 33 32 20 44 65 76 65 6c 6f 70 6d 65 6e 74 20  n32 Development 
0320: 4d 61 63 68 69 6e 65 20 73 65 74 75 70 3c 2f 61  Machine setup</a
0330: 3e 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65  >..  <li> <a hre
0340: 66 3d 22 23 77 79 73 69 77 69 67 22 3e 4a 61 76  f="#wysiwig">Jav
0350: 61 73 63 72 69 70 74 20 48 54 4d 4c 20 57 59 53  ascript HTML WYS
0360: 49 57 59 47 20 65 64 69 74 6f 72 20 63 6f 6e 74  IWYG editor cont
0370: 72 6f 6c 3c 2f 61 3e 0d 0a 20 20 20 20 3c 75 6c  rol</a>..    <ul
0380: 3e 0d 0a 20 20 20 20 20 20 3c 6c 69 3e 20 3c 61  >..      <li> <a
0390: 20 68 72 65 66 3d 22 23 74 69 6e 79 6d 63 65 22   href="#tinymce"
03a0: 3e 54 69 6e 79 4d 43 45 3c 2f 61 3e 0d 0a 20 20  >TinyMCE</a>..  
03b0: 20 20 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65 66      <li> <a href
03c0: 3d 22 23 6d 61 72 6b 69 74 75 70 22 3e 6d 61 72  ="#markitup">mar
03d0: 6b 69 74 75 70 21 3c 2f 61 3e 0d 0a 20 20 20 20  kitup!</a>..    
03e0: 3c 2f 75 6c 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 0d 0a  </ul>..</ul>....
03f0: 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 43 47 49  <h2><a name="CGI
0400: 22 3e 55 73 69 6e 67 20 3c 63 69 74 65 3e 46 6f  ">Using <cite>Fo
0410: 73 73 69 6c 3c 2f 63 69 74 65 3e 27 73 20 42 75  ssil</cite>'s Bu
0420: 69 6c 74 2d 49 6e 20 43 47 49 3c 2f 61 3e 3c 2f  ilt-In CGI</a></
0430: 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61 74  h2>..<h3>Motivat
0440: 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20 59  ion</h3>..  *  Y
0450: 6f 75 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65  ou want to share
0460: 20 61 20 72 65 70 6f 73 69 74 6f 72 79 20 74 68   a repository th
0470: 72 6f 75 67 68 20 79 6f 75 72 20 65 78 69 73 74  rough your exist
0480: 69 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72  ing web infrastr
0490: 75 63 74 75 72 65 2e 0d 0a 20 20 2a 20 20 59 6f  ucture...  *  Yo
04a0: 75 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65 20  u want to share 
04b0: 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 72 65  more than one re
04c0: 70 6f 73 69 74 6f 72 79 20 61 74 20 74 68 65 20  pository at the 
04d0: 73 61 6d 65 20 74 69 6d 65 2e 0d 0a 0d 0a 3c 68  same time.....<h
04e0: 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a  3>Problem</h3>..
04f0: 55 6e 6c 69 6b 65 20 73 6f 6d 65 20 6f 74 68 65  Unlike some othe
0500: 72 20 64 69 73 74 72 69 62 75 74 65 64 20 53 43  r distributed SC
0510: 4d 73 2c 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c  Ms, <cite>Fossil
0520: 3c 2f 63 69 74 65 3e 20 63 61 6e 20 6f 6e 6c 79  </cite> can only
0530: 20 63 6c 6f 6e 65 2c 20 70 75 73 68 2c 20 70 75   clone, push, pu
0540: 6c 6c 20 61 6e 64 20 61 6e 64 20 6f 74 68 65 72  ll and and other
0550: 77 69 73 65 20 69 6e 74 65 72 61 63 74 20 74 68  wise interact th
0560: 72 6f 75 67 68 20 72 65 70 6f 73 69 74 6f 72 69  rough repositori
0570: 65 73 20 6f 76 65 72 20 48 54 54 50 2e 20 20 54  es over HTTP.  T
0580: 68 69 73 20 63 61 6e 20 62 65 20 73 69 6d 70 6c  his can be simpl
0590: 79 20 61 6e 64 20 65 61 73 69 6c 79 20 6d 61 6e  y and easily man
05a0: 61 67 65 64 20 74 68 72 6f 75 67 68 20 75 73 65  aged through use
05b0: 20 6f 66 20 74 68 65 20 3c 63 6f 64 65 3e 66 6f   of the <code>fo
05c0: 73 73 69 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64  ssil server</cod
05d0: 65 3e 20 61 6e 64 2f 6f 72 20 3c 63 6f 64 65 3e  e> and/or <code>
05e0: 66 6f 73 73 69 6c 20 75 69 3c 2f 63 6f 64 65 3e  fossil ui</code>
05f0: 20 63 6f 6d 6d 61 6e 64 73 2c 20 6f 66 20 63 6f   commands, of co
0600: 75 72 73 65 2c 20 62 75 74 20 74 68 69 73 20 69  urse, but this i
0610: 73 20 72 65 61 6c 6c 79 20 6f 6e 6c 79 20 61 64  s really only ad
0620: 65 71 75 61 74 65 20 66 6f 72 20 61 64 2d 68 6f  equate for ad-ho
0630: 63 20 72 65 70 6f 73 69 74 6f 72 79 20 73 68 61  c repository sha
0640: 72 69 6e 67 2e 20 20 43 6f 6e 73 69 64 65 72 2c  ring.  Consider,
0650: 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 73 68   for example, sh
0660: 61 72 69 6e 67 20 74 65 6e 20 72 65 70 6f 73 69  aring ten reposi
0670: 74 6f 72 69 65 73 2e 20 20 55 73 69 6e 67 20 74  tories.  Using t
0680: 68 65 20 62 75 69 6c 74 2d 69 6e 20 73 65 72 76  he built-in serv
0690: 65 72 20 77 6f 75 6c 64 20 72 65 71 75 69 72 65  er would require
06a0: 20 79 6f 75 20 74 6f 20 6f 70 65 6e 20 74 65 6e   you to open ten
06b0: 20 70 6f 72 74 73 20 69 6e 20 79 6f 75 72 20 66   ports in your f
06c0: 69 72 65 77 61 6c 6c 20 74 6f 20 70 65 72 6d 69  irewall to permi
06d0: 74 20 61 63 63 65 73 73 2e 20 20 41 6e 79 20 73  t access.  Any s
06e0: 65 72 69 6f 75 73 20 73 68 61 72 69 6e 67 20 77  erious sharing w
06f0: 69 6c 6c 20 72 65 71 75 69 72 65 20 73 6f 6d 65  ill require some
0700: 74 68 69 6e 67 20 6d 6f 72 65 20 72 6f 62 75 73  thing more robus
0710: 74 20 61 6e 64 20 70 65 72 6d 61 6e 65 6e 74 2c  t and permanent,
0720: 20 61 6e 64 20 73 6f 6c 75 74 69 6f 6e 73 20 66   and solutions f
0730: 6f 72 20 64 6f 69 6e 67 20 73 6f 20 61 72 65 20  or doing so are 
0740: 64 65 73 63 72 69 62 65 64 20 62 65 6c 6f 77 2e  described below.
0750: 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e  ....<h3>Solution
0760: 3c 2f 68 33 3e 0d 0a 3c 63 69 74 65 3e 46 6f 73  </h3>..<cite>Fos
0770: 73 69 6c 3c 2f 63 69 74 65 3e 20 73 75 70 70 6f  sil</cite> suppo
0780: 72 74 73 20 74 68 72 65 65 20 64 69 66 66 65 72  rts three differ
0790: 65 6e 74 20 77 61 79 73 20 74 6f 20 73 68 61 72  ent ways to shar
07a0: 65 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e 20  e repositories. 
07b0: 20 46 6f 72 20 61 64 2d 68 6f 63 20 73 68 61 72   For ad-hoc shar
07c0: 69 6e 67 20 3c 63 6f 64 65 3e 66 6f 73 73 69 6c  ing <code>fossil
07d0: 20 73 65 72 76 65 72 2f 75 69 3c 2f 63 6f 64 65   server/ui</code
07e0: 3e 20 69 73 20 6d 6f 72 65 20 74 68 61 6e 20 61  > is more than a
07f0: 64 65 71 75 61 74 65 2e 20 20 46 6f 72 20 6d 6f  dequate.  For mo
0800: 72 65 20 72 6f 62 75 73 74 20 73 6f 6c 75 74 69  re robust soluti
0810: 6f 6e 73 2c 20 68 6f 77 65 76 65 72 2c 20 74 68  ons, however, th
0820: 65 20 75 73 65 20 6f 66 20 3c 63 69 74 65 3e 28  e use of <cite>(
0830: 78 29 69 6e 65 74 64 3c 2f 63 69 74 65 3e 20 6f  x)inetd</cite> o
0840: 72 20 43 47 49 20 73 75 70 70 6f 72 74 20 69 73  r CGI support is
0850: 20 69 6e 64 69 63 61 74 65 64 2e 0d 0a 0d 0a 53   indicated.....S
0860: 65 74 74 69 6e 67 20 75 70 20 66 6f 73 73 69 6c  etting up fossil
0870: 20 66 6f 72 20 43 47 49 20 73 75 70 70 6f 72 74   for CGI support
0880: 20 69 73 20 73 69 6d 70 6c 65 2e 20 20 28 53 65   is simple.  (Se
0890: 74 74 69 6e 67 20 75 70 20 79 6f 75 72 20 77 65  tting up your we
08a0: 62 20 73 65 72 76 65 72 20 66 6f 72 20 43 47 49  b server for CGI
08b0: 20 73 75 70 70 6f 72 74 20 6d 61 79 20 6f 72 20   support may or 
08c0: 6d 61 79 20 6e 6f 74 20 62 65 20 73 69 6d 70 6c  may not be simpl
08d0: 65 2c 20 62 75 74 20 69 74 20 69 73 20 6f 75 74  e, but it is out
08e0: 20 6f 66 20 73 63 6f 70 65 20 6f 66 20 74 68 69   of scope of thi
08f0: 73 20 72 65 63 69 70 65 2e 20 20 43 6f 6e 73 75  s recipe.  Consu
0900: 6c 74 20 79 6f 75 72 20 77 65 62 20 73 65 72 76  lt your web serv
0910: 65 72 2f 73 65 72 76 69 63 65 20 70 72 6f 76 69  er/service provi
0920: 64 65 72 27 73 20 64 6f 63 75 6d 65 6e 74 61 74  der's documentat
0930: 69 6f 6e 20 66 6f 72 20 74 68 69 73 2e 29 0d 0a  ion for this.)..
0940: 0d 0a 3c 68 34 3e 55 4e 49 58 3c 2f 68 34 3e 0d  ..<h4>UNIX</h4>.
0950: 0a 20 20 31 2e 20 20 46 69 6e 64 20 79 6f 75 72  .  1.  Find your
0960: 20 43 47 49 20 73 63 72 69 70 74 73 20 64 69 72   CGI scripts dir
0970: 65 63 74 6f 72 79 20 28 69 66 20 61 70 70 6c 69  ectory (if appli
0980: 63 61 62 6c 65 29 2e 20 20 54 68 69 73 20 69 73  cable).  This is
0990: 20 63 6f 6d 6d 6f 6e 6c 79 20 73 6f 6d 65 74 68   commonly someth
09a0: 69 6e 67 20 6c 69 6b 65 20 3c 62 61 73 65 3e 2f  ing like <base>/
09b0: 63 67 69 2d 62 69 6e 2f 2c 20 62 75 74 20 64 6f  cgi-bin/, but do
09c0: 65 73 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 62  es not have to b
09d0: 65 2e 0d 0a 20 20 32 2e 20 20 49 6e 73 69 64 65  e...  2.  Inside
09e0: 20 74 68 61 74 20 64 69 72 65 63 74 6f 72 79 20   that directory 
09f0: 62 75 69 6c 64 20 61 20 73 63 72 69 70 74 20 66  build a script f
0a00: 69 6c 65 20 77 68 69 63 68 20 6c 6f 6f 6b 73 20  ile which looks 
0a10: 6c 69 6b 65 20 74 68 69 73 3a 3c 62 72 3e 3c 63  like this:<br><c
0a20: 6f 64 65 3e 3c 70 72 65 3e 20 20 23 21 20 2f 75  ode><pre>  #! /u
0a30: 73 72 2f 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69  sr/bin/env fossi
0a40: 6c 3c 62 72 3e 20 20 72 65 70 6f 73 69 74 6f 72  l<br>  repositor
0a50: 79 3a 20 2f 66 75 6c 6c 2f 70 61 74 68 2f 74 6f  y: /full/path/to
0a60: 2f 72 65 70 6f 73 69 74 6f 72 79 2f 66 69 6c 65  /repository/file
0a70: 2e 66 73 6c 3c 2f 70 72 65 3e 3c 2f 63 6f 64 65  .fsl</pre></code
0a80: 3e 0d 0a 20 20 33 2e 20 20 45 6e 73 75 72 65 20  >..  3.  Ensure 
0a90: 74 68 61 74 20 74 68 65 20 73 63 72 69 70 74 20  that the script 
0aa0: 66 69 6c 65 20 73 6f 20 67 65 6e 65 72 61 74 65  file so generate
0ab0: 64 20 69 73 20 73 65 74 20 65 78 65 63 75 74 61  d is set executa
0ac0: 62 6c 65 20 66 6f 72 20 74 68 65 20 43 47 49 20  ble for the CGI 
0ad0: 75 73 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 20  user account... 
0ae0: 20 34 2e 20 20 45 6e 73 75 72 65 20 74 68 61 74   4.  Ensure that
0af0: 20 65 76 65 72 79 20 64 69 72 65 63 74 6f 72 79   every directory
0b00: 20 69 6e 20 74 68 65 20 70 61 74 68 20 6c 65 61   in the path lea
0b10: 64 69 6e 67 20 74 6f 20 74 68 65 20 72 65 70 6f  ding to the repo
0b20: 73 69 74 6f 72 79 20 69 73 20 20 62 72 6f 77 73  sitory is  brows
0b30: 65 61 62 6c 65 20 28 63 68 6d 6f 64 20 2b 78 29  eable (chmod +x)
0b40: 20 74 6f 20 74 68 65 20 43 47 49 20 75 73 65 72   to the CGI user
0b50: 20 61 63 63 6f 75 6e 74 2e 0d 0a 20 20 35 2e 20   account...  5. 
0b60: 20 45 6e 73 75 72 65 20 74 68 61 74 20 74 68 65   Ensure that the
0b70: 20 72 65 70 6f 73 69 74 6f 72 79 20 66 69 6c 65   repository file
0b80: 20 69 73 20 72 65 61 64 61 62 6c 65 20 3c 65 6d   is readable <em
0b90: 3e 61 6e 64 3c 2f 65 6d 3e 20 77 72 69 74 61 62  >and</em> writab
0ba0: 6c 65 20 74 6f 20 74 68 65 20 43 47 49 20 75 73  le to the CGI us
0bb0: 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 0d 0a 54  er account.....T
0bc0: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 3c 63 69  he following <ci
0bd0: 74 65 3e 62 61 73 68 3c 2f 63 69 74 65 3e 20 73  te>bash</cite> s
0be0: 63 72 69 70 74 20 63 61 6e 20 62 65 20 72 75 6e  cript can be run
0bf0: 20 66 72 6f 6d 20 77 69 74 68 69 6e 20 74 68 65   from within the
0c00: 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61   directory conta
0c10: 69 6e 69 6e 67 20 74 68 65 20 3c 63 69 74 65 3e  ining the <cite>
0c20: 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65  Fossil</cite> re
0c30: 70 6f 73 69 74 6f 72 69 65 73 20 74 6f 20 62 65  positories to be
0c40: 20 73 68 61 72 65 64 20 28 61 6e 64 2c 20 6f 66   shared (and, of
0c50: 20 63 6f 75 72 73 65 2c 20 61 6c 74 65 72 65 64   course, altered
0c60: 20 66 6f 72 20 79 6f 75 72 20 73 65 74 75 70 29   for your setup)
0c70: 20 74 6f 20 73 65 74 20 73 6f 6d 65 20 6f 66 20   to set some of 
0c80: 74 68 65 20 63 6f 6e 73 74 72 61 69 6e 74 73 20  the constraints 
0c90: 61 62 6f 76 65 20 75 70 20 61 75 74 6f 6d 61 74  above up automat
0ca0: 69 63 61 6c 6c 79 3a 0d 0a 0d 0a 3c 6e 6f 77 69  ically:....<nowi
0cb0: 6b 69 3e 3c 66 6f 6e 74 20 66 61 63 65 3d 22 6d  ki><font face="m
0cc0: 6f 6e 6f 73 70 61 63 65 22 3e 0d 0a 3c 66 6f 6e  onospace">..<fon
0cd0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
0ce0: 22 3e 26 6e 62 73 70 3b 31 20 3c 2f 66 6f 6e 74  ">&nbsp;1 </font
0cf0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30  ><font color="#0
0d00: 30 30 30 66 66 22 3e 23 21 20 2f 75 73 72 2f 62  000ff">#! /usr/b
0d10: 69 6e 2f 65 6e 76 20 62 61 73 68 3c 2f 66 6f 6e  in/env bash</fon
0d20: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
0d30: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0d40: 62 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;2 </font><fo
0d50: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0d60: 62 22 3e 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e  b">CGI_ROOT</fon
0d70: 74 3e 3d 2f 75 73 72 2f 6c 69 62 2f 66 6f 73 73  t>=/usr/lib/foss
0d80: 69 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  il<br>..<font co
0d90: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0da0: 62 73 70 3b 33 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;3 </font><fo
0db0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0dc0: 62 22 3e 52 45 50 4f 53 49 54 4f 52 59 5f 4f 57  b">REPOSITORY_OW
0dd0: 4e 45 52 3c 2f 66 6f 6e 74 3e 3d 6d 69 63 68 61  NER</font>=micha
0de0: 65 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  el<br>..<font co
0df0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0e00: 62 73 70 3b 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;4 </font><fo
0e10: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0e20: 62 22 3e 43 47 49 5f 47 52 4f 55 50 3c 2f 66 6f  b">CGI_GROUP</fo
0e30: 6e 74 3e 3d 77 77 77 2d 64 61 74 61 3c 62 72 3e  nt>=www-data<br>
0e40: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
0e50: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 35 20  a52a2a">&nbsp;5 
0e60: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
0e70: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
0e80: 69 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  if</b></font>&nb
0e90: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
0ea0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62  #a52a2a"><b>[</b
0eb0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
0ec0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
0ed0: 63 64 22 3e 60 77 68 6f 61 6d 69 60 3c 2f 66 6f  cd">`whoami`</fo
0ee0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
0ef0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
0f00: 62 3e 3d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  b>=</b></font>&n
0f10: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
0f20: 22 23 66 66 30 30 66 66 22 3e 27 72 6f 6f 74 27  "#ff00ff">'root'
0f30: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
0f40: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0f50: 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>]</b></fon
0f60: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
0f70: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0f80: 62 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;6 </font><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 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f  a"><b>then</b></
0fb0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
0fc0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
0fd0: 3e 26 6e 62 73 70 3b 37 20 3c 2f 66 6f 6e 74 3e  >&nbsp;7 </font>
0fe0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e  &nbsp;&nbsp;<fon
0ff0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
1000: 22 3e 3c 62 3e 66 6f 72 3c 2f 62 3e 3c 2f 66 6f  "><b>for</b></fo
1010: 6e 74 3e 26 6e 62 73 70 3b 72 65 70 6f 73 69 74  nt>&nbsp;reposit
1020: 6f 72 79 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ory <font color=
1030: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 6e 3c  "#a52a2a"><b>in<
1040: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
1050: 2a 2e 66 73 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  *.fsl<br>..<font
1060: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
1070: 3e 26 6e 62 73 70 3b 38 20 3c 2f 66 6f 6e 74 3e  >&nbsp;8 </font>
1080: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e  &nbsp;&nbsp;<fon
1090: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
10a0: 22 3e 3c 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>do</b></fon
10b0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
10c0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
10d0: 62 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62  bsp;9 </font>&nb
10e0: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  sp;&nbsp;&nbsp;&
10f0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
1100: 3d 22 23 30 30 38 62 38 62 22 3e 53 4f 55 52 43  ="#008b8b">SOURC
1110: 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63  E</font>=<font c
1120: 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60  olor="#6a5acd">`
1130: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
1140: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
1150: 70 77 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  pwd</b></font><f
1160: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
1170: 63 64 22 3e 60 3c 2f 66 6f 6e 74 3e 2f 3c 66 6f  cd">`</font>/<fo
1180: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
1190: 30 22 3e 24 72 65 70 6f 73 69 74 6f 72 79 3c 2f  0">$repository</
11a0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
11b0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
11c0: 3e 31 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >10 </font>&nbsp
11d0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  ;&nbsp;&nbsp;&nb
11e0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
11f0: 23 30 30 38 62 38 62 22 3e 44 45 53 54 49 4e 41  #008b8b">DESTINA
1200: 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e  TION</font>=<fon
1210: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
1220: 22 3e 24 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e  ">$CGI_ROOT</fon
1230: 74 3e 2f 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  t>/<font color="
1240: 23 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e  #a020f0">${</fon
1250: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
1260: 61 30 32 30 66 30 22 3e 72 65 70 6f 73 69 74 6f  a020f0">reposito
1270: 72 79 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  ry</font><font c
1280: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1290: 62 3e 25 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 2e 66  b>%</b></font>.f
12a0: 73 6c 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  sl<font color="#
12b0: 61 30 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e 74 3e  a020f0">}</font>
12c0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
12d0: 72 3d 22 23 61 35 32 61 32 61 22 3e 31 31 20 3c  r="#a52a2a">11 <
12e0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
12f0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  p;&nbsp;&nbsp;<f
1300: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1310: 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c  2a"><b>echo</b><
1320: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
1330: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73  r="#ff00ff">&nbs
1340: 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  p;</font><font c
1350: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1360: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
1370: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1380: 23 66 66 30 30 66 66 22 3e 23 21 20 2f 75 73 72  #ff00ff">#! /usr
1390: 2f 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69 6c 3c  /bin/env fossil<
13a0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
13b0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
13c0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
13d0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
13e0: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f  00ff">&nbsp;</fo
13f0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1400: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 67 74 3b  #a52a2a"><b>&gt;
1410: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
1420: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
1430: 30 32 30 66 30 22 3e 24 44 45 53 54 49 4e 41 54  020f0">$DESTINAT
1440: 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ION</font><br>..
1450: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1460: 32 61 32 61 22 3e 31 32 20 3c 2f 66 6f 6e 74 3e  2a2a">12 </font>
1470: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
1480: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  p;&nbsp;<font co
1490: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
14a0: 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >echo</b></font>
14b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
14c0: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f  00ff">&nbsp;</fo
14d0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
14e0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
14f0: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  t;</b></font><fo
1500: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
1510: 66 22 3e 72 65 70 6f 73 69 74 6f 72 79 3a 20 3c  f">repository: <
1520: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
1530: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 53 4f 55  r="#a020f0">$SOU
1540: 52 43 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  RCE</font><font 
1550: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
1560: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
1570: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
1580: 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b  "#ff00ff">&nbsp;
1590: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
15a0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
15b0: 26 67 74 3b 26 67 74 3b 3c 2f 62 3e 3c 2f 66 6f  &gt;&gt;</b></fo
15c0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
15d0: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
15e0: 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e  DESTINATION</fon
15f0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
1600: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 33  lor="#a52a2a">13
1610: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
1620: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
1630: 63 68 6f 77 6e 20 3c 66 6f 6e 74 20 63 6f 6c 6f  chown <font colo
1640: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 50  r="#a020f0">$REP
1650: 4f 53 49 54 4f 52 59 5f 4f 57 4e 45 52 3c 2f 66  OSITORY_OWNER</f
1660: 6f 6e 74 3e 3a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  ont>:<font color
1670: 3d 22 23 61 30 32 30 66 30 22 3e 24 43 47 49 5f  ="#a020f0">$CGI_
1680: 47 52 4f 55 50 3c 2f 66 6f 6e 74 3e 26 6e 62 73  GROUP</font>&nbs
1690: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
16a0: 61 30 32 30 66 30 22 3e 24 53 4f 55 52 43 45 3c  a020f0">$SOURCE<
16b0: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
16c0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
16d0: 22 3e 31 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ">14 </font>&nbs
16e0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
16f0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
1700: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d  "#a52a2a"><b>chm
1710: 6f 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  od</b></font>&nb
1720: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
1730: 23 66 66 30 30 66 66 22 3e 36 36 34 3c 2f 66 6f  #ff00ff">664</fo
1740: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
1750: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
1760: 53 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e 3c 62 72  SOURCE</font><br
1770: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
1780: 23 61 35 32 61 32 61 22 3e 31 35 20 3c 2f 66 6f  #a52a2a">15 </fo
1790: 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  nt>&nbsp;&nbsp;&
17a0: 6e 62 73 70 3b 26 6e 62 73 70 3b 63 68 6f 77 6e  nbsp;&nbsp;chown
17b0: 20 72 6f 6f 74 3a 72 6f 6f 74 20 3c 66 6f 6e 74   root:root <font
17c0: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
17d0: 3e 24 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66  >$DESTINATION</f
17e0: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
17f0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
1800: 31 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  16 </font>&nbsp;
1810: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
1820: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
1830: 61 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d 6f 64  a52a2a"><b>chmod
1840: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
1850: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ;<font color="#f
1860: 66 30 30 66 66 22 3e 37 35 35 3c 2f 66 6f 6e 74  f00ff">755</font
1870: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
1880: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 44 45  or="#a020f0">$DE
1890: 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e  STINATION</font>
18a0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
18b0: 72 3d 22 23 61 35 32 61 32 61 22 3e 31 37 20 3c  r="#a52a2a">17 <
18c0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
18d0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
18e0: 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65 3c  a52a2a"><b>done<
18f0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
1900: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1910: 32 61 32 61 22 3e 31 38 20 3c 2f 66 6f 6e 74 3e  2a2a">18 </font>
1920: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1930: 32 61 32 61 22 3e 3c 62 3e 65 6c 73 65 3c 2f 62  2a2a"><b>else</b
1940: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
1950: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1960: 32 61 22 3e 31 39 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">19 </font>&n
1970: 62 73 70 3b 26 6e 62 73 70 3b 73 75 64 6f 20 3c  bsp;&nbsp;sudo <
1980: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
1990: 30 66 30 22 3e 24 30 3c 2f 66 6f 6e 74 3e 26 6e  0f0">$0</font>&n
19a0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
19b0: 22 23 61 30 32 30 66 30 22 3e 24 2a 3c 2f 66 6f  "#a020f0">$*</fo
19c0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
19d0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32  olor="#a52a2a">2
19e0: 30 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  0 </font><font c
19f0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1a00: 62 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  b>fi</b></font><
1a10: 62 72 3e 0d 0a 3c 2f 66 6f 6e 74 3e 3c 2f 6e 6f  br>..</font></no
1a20: 77 69 6b 69 3e 0d 0a 0d 0a 48 65 72 65 20 69 73  wiki>....Here is
1a30: 20 61 20 6c 69 74 74 6c 65 20 70 65 72 6c 20 73   a little perl s
1a40: 63 72 69 70 74 20 74 6f 20 70 75 74 20 69 6e 20  cript to put in 
1a50: 79 6f 75 72 20 63 67 69 2d 62 69 6e 20 74 6f 20  your cgi-bin to 
1a60: 6c 69 73 74 20 61 6c 6c 20 74 68 65 20 66 6f 73  list all the fos
1a70: 73 69 6c 73 20 79 6f 75 20 61 72 65 20 70 75 62  sils you are pub
1a80: 6c 69 73 68 69 6e 67 3a 0d 0a 0d 0a 3c 6e 6f 77  lishing:....<now
1a90: 69 6b 69 3e 3c 70 72 65 3e 0d 0a 23 21 2f 75 73  iki><pre>..#!/us
1aa0: 72 2f 62 69 6e 2f 70 65 72 6c 20 2d 77 0d 0a 6d  r/bin/perl -w..m
1ab0: 79 20 24 43 47 49 5f 42 49 4e 20 3d 20 27 2f 4c  y $CGI_BIN = '/L
1ac0: 69 62 72 61 72 79 2f 57 65 62 53 65 72 76 65 72  ibrary/WebServer
1ad0: 2f 43 47 49 2d 45 78 65 63 75 74 61 62 6c 65 73  /CGI-Executables
1ae0: 27 3b 0d 0a 6d 79 20 40 66 69 6c 65 73 20 3d 20  ';..my @files = 
1af0: 60 67 72 65 70 20 2d 6c 20 72 65 70 6f 73 69 74  `grep -l reposit
1b00: 6f 72 79 3a 20 20 24 43 47 49 5f 42 49 4e 2f 2a  ory:  $CGI_BIN/*
1b10: 20 60 3b 0d 0a 70 72 69 6e 74 20 26 6c 74 3b 26   `;..print &lt;&
1b20: 6c 74 3b 45 4f 4d 3b 0d 0a 43 6f 6e 74 65 6e 74  lt;EOM;..Content
1b30: 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c  -Type: text/html
1b40: 0d 0a 0d 0a 46 6f 73 73 69 6c 73 20 66 6f 72 20  ....Fossils for 
1b50: 74 68 69 73 20 73 65 72 76 65 72 0d 0a 26 6c 74  this server..&lt
1b60: 3b 75 6c 3e 0d 0a 45 4f 4d 0d 0a 0d 0a 66 6f 72  ;ul>..EOM....for
1b70: 20 28 40 66 69 6c 65 73 29 20 7b 0d 0a 20 20 73   (@files) {..  s
1b80: 7b 2e 2a 2f 7d 7b 7d 3b 0d 0a 20 20 6e 65 78 74  {.*/}{};..  next
1b90: 20 69 66 20 2f 7e 24 2f 3b 0d 0a 20 20 70 72 69   if /~$/;..  pri
1ba0: 6e 74 20 22 26 6c 74 3b 6c 69 3e 26 6c 74 3b 61  nt "&lt;li>&lt;a
1bb0: 20 68 72 65 66 3d 27 24 5f 27 3e 24 5f 26 6c 74   href='$_'>$_&lt
1bc0: 3b 2f 61 3e 26 6c 74 3b 2f 6c 69 3e 5c 6e 22 3b  ;/a>&lt;/li>\n";
1bd0: 0d 0a 7d 0d 0a 70 72 69 6e 74 20 22 26 6c 74 3b  ..}..print "&lt;
1be0: 2f 75 6c 3e 5c 6e 22 3b 3c 2f 70 72 65 3e 0d 0a  /ul>\n";</pre>..
1bf0: 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 0d 0a 54 68 65  </nowiki>....The
1c00: 20 66 6f 6c 6c 6f 77 69 6e 67 20 3c 63 69 74 65   following <cite
1c10: 3e 61 70 61 63 68 65 32 3c 2f 63 69 74 65 3e 20  >apache2</cite> 
1c20: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 63 61  configuration ca
1c30: 6e 20 62 65 20 75 73 65 64 20 74 6f 20 72 75 6e  n be used to run
1c40: 20 74 68 65 20 72 6f 6f 74 20 6f 66 20 61 20 77   the root of a w
1c50: 65 62 20 73 69 74 65 20 77 69 74 68 20 66 6f 73  eb site with fos
1c60: 73 69 6c 2c 20 62 75 74 20 73 74 69 6c 6c 20 61  sil, but still a
1c70: 6c 6c 6f 77 20 6f 74 68 65 72 20 73 65 72 76 69  llow other servi
1c80: 63 65 73 20 2f 20 64 6f 63 75 6d 65 6e 74 73 20  ces / documents 
1c90: 74 6f 20 62 65 20 72 65 61 63 68 65 64 20 76 69  to be reached vi
1ca0: 61 20 73 70 65 63 69 66 69 63 20 55 52 4c 73 2e  a specific URLs.
1cb0: 20 52 65 70 6c 61 63 65 20 22 63 6f 64 65 2e 61   Replace "code.a
1cc0: 75 74 6f 6e 6f 6d 6f 2e 75 73 22 20 77 69 74 68  utonomo.us" with
1cd0: 20 79 6f 75 72 20 73 69 74 65 27 73 20 6e 61 6d   your site's nam
1ce0: 65 20 61 6e 64 20 22 64 63 6c 61 72 6b 40 70 6f  e and "dclark@po
1cf0: 62 6f 78 2e 63 6f 6d 22 20 77 69 74 68 20 79 6f  box.com" with yo
1d00: 75 72 20 65 6d 61 69 6c 2e 0d 0a 0d 0a 3c 76 65  ur email.....<ve
1d10: 72 62 61 74 69 6d 3e 0d 0a 4e 61 6d 65 56 69 72  rbatim>..NameVir
1d20: 74 75 61 6c 48 6f 73 74 20 2a 3a 38 30 0d 0a 3c  tualHost *:80..<
1d30: 56 69 72 74 75 61 6c 48 6f 73 74 20 2a 3a 38 30  VirtualHost *:80
1d40: 3e 0d 0a 20 20 20 20 53 65 72 76 65 72 4e 61 6d  >..    ServerNam
1d50: 65 20 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e  e code.autonomo.
1d60: 75 73 0d 0a 20 20 20 20 53 65 72 76 65 72 41 64  us..    ServerAd
1d70: 6d 69 6e 20 64 63 6c 61 72 6b 40 70 6f 62 6f 78  min dclark@pobox
1d80: 2e 63 6f 6d 0d 0a 20 20 20 20 45 72 72 6f 72 4c  .com..    ErrorL
1d90: 6f 67 20 2f 76 61 72 2f 6c 6f 67 2f 61 70 61 63  og /var/log/apac
1da0: 68 65 32 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d  he2/code.autonom
1db0: 6f 2e 75 73 2d 65 72 72 6f 72 2e 6c 6f 67 0d 0a  o.us-error.log..
1dc0: 20 20 20 20 4c 6f 67 4c 65 76 65 6c 20 77 61 72      LogLevel war
1dd0: 6e 0d 0a 20 20 20 20 43 75 73 74 6f 6d 4c 6f 67  n..    CustomLog
1de0: 20 2f 76 61 72 2f 6c 6f 67 2f 61 70 61 63 68 65   /var/log/apache
1df0: 32 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e  2/code.autonomo.
1e00: 75 73 2d 61 63 63 65 73 73 2e 6c 6f 67 20 63 6f  us-access.log co
1e10: 6d 62 69 6e 65 64 0d 0a 20 20 20 20 53 65 72 76  mbined..    Serv
1e20: 65 72 53 69 67 6e 61 74 75 72 65 20 4f 6e 0d 0a  erSignature On..
1e30: 0d 0a 20 20 20 20 44 6f 63 75 6d 65 6e 74 52 6f  ..    DocumentRo
1e40: 6f 74 20 2f 76 61 72 2f 77 77 77 2f 0d 0a 0d 0a  ot /var/www/....
1e50: 20 20 20 20 53 63 72 69 70 74 41 6c 69 61 73 20      ScriptAlias 
1e60: 2f 63 67 69 2d 62 69 6e 2f 20 2f 75 73 72 2f 6c  /cgi-bin/ /usr/l
1e70: 69 62 2f 63 67 69 2d 62 69 6e 2f 0d 0a 20 20 20  ib/cgi-bin/..   
1e80: 20 3c 44 69 72 65 63 74 6f 72 79 20 22 2f 75 73   <Directory "/us
1e90: 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 22 3e 0d  r/lib/cgi-bin">.
1ea0: 0a 20 20 20 20 20 20 20 20 41 6c 6c 6f 77 4f 76  .        AllowOv
1eb0: 65 72 72 69 64 65 20 4e 6f 6e 65 0d 0a 20 20 20  erride None..   
1ec0: 20 20 20 20 20 4f 70 74 69 6f 6e 73 20 2b 45 78       Options +Ex
1ed0: 65 63 43 47 49 20 2d 4d 75 6c 74 69 56 69 65 77  ecCGI -MultiView
1ee0: 73 20 2b 53 79 6d 4c 69 6e 6b 73 49 66 4f 77 6e  s +SymLinksIfOwn
1ef0: 65 72 4d 61 74 63 68 0d 0a 20 20 20 20 20 20 20  erMatch..       
1f00: 20 4f 72 64 65 72 20 61 6c 6c 6f 77 2c 64 65 6e   Order allow,den
1f10: 79 0d 0a 20 20 20 20 20 20 20 20 41 6c 6c 6f 77  y..        Allow
1f20: 20 66 72 6f 6d 20 61 6c 6c 0d 0a 20 20 20 20 3c   from all..    <
1f30: 2f 44 69 72 65 63 74 6f 72 79 3e 0d 0a 0d 0a 20  /Directory>.... 
1f40: 20 20 20 23 20 46 6f 73 73 69 6c 20 53 43 4d 20     # Fossil SCM 
1f50: 61 74 20 72 6f 6f 74 20 6f 66 20 77 65 62 20 73  at root of web s
1f60: 69 74 65 20 28 68 74 74 70 3a 2f 2f 65 78 61 6d  ite (http://exam
1f70: 70 6c 65 2e 63 6f 6d 29 20 63 6f 6e 66 69 67 75  ple.com) configu
1f80: 72 61 74 69 6f 6e 2e 2e 2e 0d 0a 20 20 20 20 52  ration.....    R
1f90: 65 77 72 69 74 65 45 6e 67 69 6e 65 20 4f 6e 0d  ewriteEngine On.
1fa0: 0a 20 20 20 20 23 20 52 65 77 72 69 74 65 43 6f  .    # RewriteCo
1fb0: 6e 64 20 2d 20 4f 6e 65 20 66 6f 72 20 65 76 65  nd - One for eve
1fc0: 72 79 20 55 52 4c 20 77 65 20 64 6f 6e 27 74 20  ry URL we don't 
1fd0: 77 61 6e 74 20 46 6f 73 73 69 6c 20 53 43 4d 20  want Fossil SCM 
1fe0: 74 6f 20 73 65 72 76 65 2e 20 49 6e 20 74 68 65  to serve. In the
1ff0: 0d 0a 20 20 20 20 23 20 20 20 20 20 20 20 20 20  ..    #         
2000: 20 20 20 20 20 20 65 78 61 6d 70 6c 65 2c 20 72        example, r
2010: 65 71 75 65 73 74 73 20 74 68 61 74 20 67 6f 20  equests that go 
2020: 74 6f 20 74 68 65 20 2f 76 61 72 2f 77 77 77 2f  to the /var/www/
2030: 74 6d 70 20 64 69 72 65 63 74 6f 72 79 20 61 6e  tmp directory an
2040: 64 20 0d 0a 20 20 20 20 23 20 20 20 20 20 20 20  d ..    #       
2050: 20 20 20 20 20 20 20 20 74 68 65 20 2f 75 73 72          the /usr
2060: 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 20 64 69 72  /lib/cgi-bin dir
2070: 65 63 74 6f 74 79 20 61 72 65 20 69 67 6e 6f 72  ectoty are ignor
2080: 65 64 20 62 79 20 46 6f 73 73 69 6c 20 53 43 4d  ed by Fossil SCM
2090: 2e 0d 0a 20 20 20 20 52 65 77 72 69 74 65 43 6f  ...    RewriteCo
20a0: 6e 64 20 25 7b 52 45 51 55 45 53 54 5f 55 52 49  nd %{REQUEST_URI
20b0: 7d 20 21 5e 2f 74 6d 70 2f 2e 2a 24 0d 0a 20 20  } !^/tmp/.*$..  
20c0: 20 20 52 65 77 72 69 74 65 43 6f 6e 64 20 25 7b    RewriteCond %{
20d0: 52 45 51 55 45 53 54 5f 55 52 49 7d 20 21 5e 2f  REQUEST_URI} !^/
20e0: 63 67 69 2d 62 69 6e 2f 2e 2a 24 0d 0a 20 20 20  cgi-bin/.*$..   
20f0: 20 52 65 77 72 69 74 65 52 75 6c 65 20 5e 28 2e   RewriteRule ^(.
2100: 2a 29 24 20 2f 75 73 72 2f 6c 69 62 2f 63 67 69  *)$ /usr/lib/cgi
2110: 2d 62 69 6e 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f  -bin/code.autono
2120: 6d 6f 2e 75 73 2f 24 31 20 5b 54 3d 61 70 70 6c  mo.us/$1 [T=appl
2130: 69 63 61 74 69 6f 6e 2f 78 2d 68 74 74 70 64 2d  ication/x-httpd-
2140: 63 67 69 5d 0d 0a 3c 2f 56 69 72 74 75 61 6c 48  cgi]..</VirtualH
2150: 6f 73 74 3e 0d 0a 3c 2f 76 65 72 62 61 74 69 6d  ost>..</verbatim
2160: 3e 0d 0a 0d 0a 2f 75 73 72 2f 6c 69 62 2f 63 67  >..../usr/lib/cg
2170: 69 2d 62 69 6e 2f 63 6f 64 65 2e 61 75 74 6f 6e  i-bin/code.auton
2180: 6f 6d 6f 2e 75 73 20 69 73 20 6a 75 73 74 20 61  omo.us is just a
2190: 20 73 74 61 6e 64 61 72 64 20 66 6f 73 73 69 6c   standard fossil
21a0: 20 43 47 49 20 66 69 6c 65 3b 20 69 74 20 6c 6f   CGI file; it lo
21b0: 6f 6b 73 20 6c 69 6b 65 20 74 68 69 73 3a 0d 0a  oks like this:..
21c0: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 23 21  ..<verbatim>..#!
21d0: 2f 75 73 72 2f 62 69 6e 2f 66 6f 73 73 69 6c 0d  /usr/bin/fossil.
21e0: 0a 72 65 70 6f 73 69 74 6f 72 79 3a 20 2f 73 72  .repository: /sr
21f0: 76 2f 66 6f 73 73 69 6c 2d 73 63 6d 2f 63 6f 64  v/fossil-scm/cod
2200: 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 2e 66 6f  e.autonomo.us.fo
2210: 73 73 69 6c 2d 73 63 6d 0d 0a 3c 2f 76 65 72 62  ssil-scm..</verb
2220: 61 74 69 6d 3e 0d 0a 0d 0a 3c 68 33 3e 41 6e 6f  atim>....<h3>Ano
2230: 74 68 65 72 20 73 6f 6c 75 74 69 6f 6e 20 74 6f  ther solution to
2240: 20 3c 69 3e 61 75 74 6f 6d 61 74 69 63 61 6c 6c   <i>automaticall
2250: 79 3c 2f 69 3e 20 73 65 72 76 65 20 6d 75 6c 74  y</i> serve mult
2260: 69 70 6c 65 20 72 65 70 6f 73 69 74 6f 72 69 65  iple repositorie
2270: 73 3c 2f 68 33 3e 0d 0a 0d 0a 57 69 74 68 20 74  s</h3>....With t
2280: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 43 47 49  he following CGI
2290: 20 73 63 72 69 70 74 20 28 49 20 68 61 76 65 20   script (I have 
22a0: 6e 61 6d 65 64 20 69 74 20 3c 73 61 6d 70 3e 70  named it <samp>p
22b0: 3c 2f 73 61 6d 70 3e 20 73 69 6d 70 6c 79 29 20  </samp> simply) 
22c0: 69 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74  it is possible t
22d0: 6f 20 64 65 66 69 6e 65 20 61 20 6c 6f 63 61 74  o define a locat
22e0: 69 6f 6e 20 77 68 65 72 65 20 61 6c 6c 20 74 68  ion where all th
22f0: 65 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72  e your repositor
2300: 69 65 73 20 73 68 6f 75 6c 64 20 62 65 20 6c 6f  ies should be lo
2310: 63 61 74 65 64 20 28 69 6e 20 74 68 69 73 20 65  cated (in this e
2320: 78 61 6d 70 6c 65 3a 20 3c 73 61 6d 70 3e 2f 68  xample: <samp>/h
2330: 6f 6d 65 2f 72 65 70 6f 73 2f 66 6f 73 73 69 6c  ome/repos/fossil
2340: 3c 2f 73 61 6d 70 3e 29 2e 20 41 6c 6c 20 74 68  </samp>). All th
2350: 65 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 61  e repositories a
2360: 72 65 20 6e 61 6d 65 64 20 61 63 63 6f 72 64 69  re named accordi
2370: 6e 67 20 74 68 65 20 73 63 68 65 6d 65 20 3c 73  ng the scheme <s
2380: 61 6d 70 3e 3c 70 72 6f 6a 65 63 74 20 6e 61 6d  amp><project nam
2390: 65 3e 2e 66 73 6c 3c 2f 73 61 6d 70 3e 20 66 6f  e>.fsl</samp> fo
23a0: 72 20 73 61 6b 65 20 6f 66 20 74 68 69 73 20 65  r sake of this e
23b0: 78 61 6d 70 6c 65 2e 0d 0a 0d 0a 49 66 20 74 68  xample.....If th
23c0: 69 73 20 73 63 72 69 70 74 20 69 73 20 63 61 6c  is script is cal
23d0: 6c 65 64 20 61 6c 6f 6e 65 20 28 6c 69 6b 65 20  led alone (like 
23e0: 65 2e 67 2e 3a 20 3c 73 61 6d 70 3e 68 74 74 70  e.g.: <samp>http
23f0: 3a 2f 2f 79 6f 75 72 2e 73 65 72 76 65 72 2e 68  ://your.server.h
2400: 65 72 65 2f 63 67 69 2d 62 69 6e 2f 70 3c 2f 73  ere/cgi-bin/p</s
2410: 61 6d 70 3e 29 2c 20 69 74 20 77 69 6c 6c 20 6c  amp>), it will l
2420: 69 73 74 20 61 6c 6c 20 72 65 70 6f 73 69 74 6f  ist all reposito
2430: 72 69 65 73 20 6c 6f 63 61 74 65 64 20 75 6e 64  ries located und
2440: 65 72 20 3c 73 61 6d 70 3e 24 52 45 50 4f 53 52  er <samp>$REPOSR
2450: 4f 4f 54 3c 2f 73 61 6d 70 3e 2c 20 3c 62 3e 69  OOT</samp>, <b>i
2460: 66 3c 2f 62 3e 20 74 68 65 72 65 20 3c 62 3e 64  f</b> there <b>d
2470: 6f 65 73 20 6e 6f 74 3c 2f 62 3e 20 65 78 69 73  oes not</b> exis
2480: 74 20 61 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  t a correspondin
2490: 67 20 66 69 6c 65 20 3c 73 61 6d 70 3e 2e 3c 70  g file <samp>.<p
24a0: 72 6f 6a 65 63 74 20 6e 61 6d 65 3e 3c 2f 73 61  roject name></sa
24b0: 6d 70 3e 20 28 74 68 61 74 20 6d 65 63 68 61 6e  mp> (that mechan
24c0: 69 73 6d 20 69 73 20 75 73 65 64 20 74 6f 20 3c  ism is used to <
24d0: 69 3e 68 69 64 65 3c 2f 69 3e 20 73 6f 6d 65 20  i>hide</i> some 
24e0: 72 65 70 6f 73 69 74 6f 72 79 20 69 6e 20 74 68  repository in th
24f0: 65 20 6c 69 73 74 69 6e 67 29 2e 0d 0a 0d 0a 49  e listing).....I
2500: 66 20 74 68 65 20 73 63 72 69 70 74 20 69 73 20  f the script is 
2510: 63 61 6c 6c 65 64 20 6c 69 6b 65 20 65 2e 67 2e  called like e.g.
2520: 20 3c 73 61 6d 70 3e 68 74 74 70 3a 2f 2f 79 6f   <samp>http://yo
2530: 75 72 2e 73 65 72 76 65 72 2e 68 65 72 65 2f 63  ur.server.here/c
2540: 67 69 2d 62 69 6e 2f 70 2f 3c 70 72 6f 6a 65 63  gi-bin/p/<projec
2550: 74 20 6e 61 6d 65 3e 3c 2f 73 61 6d 70 3e 2c 20  t name></samp>, 
2560: 74 68 65 6e 20 74 68 65 20 63 6f 72 72 65 73 70  then the corresp
2570: 6f 6e 64 69 6e 67 20 72 65 70 6f 73 69 74 6f 72  onding repositor
2580: 79 20 77 69 6c 6c 20 62 65 20 73 65 6c 65 63 74  y will be select
2590: 65 64 20 74 6f 20 77 6f 72 6b 20 77 69 74 68 2e  ed to work with.
25a0: 0d 0a 0d 0a 54 68 65 20 6c 69 6e 65 73 20 35 20  ....The lines 5 
25b0: 2d 20 38 20 69 6e 20 74 68 65 20 73 63 72 69 70  - 8 in the scrip
25c0: 74 20 62 65 6c 6f 77 20 61 6c 6c 6f 77 20 63 6f  t below allow co
25d0: 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 6f 72 20  nfiguration for 
25e0: 79 6f 75 20 6e 65 65 64 73 2e 20 59 6f 75 20 68  you needs. You h
25f0: 61 76 65 20 74 6f 20 63 68 6f 73 65 2c 20 77 68  ave to chose, wh
2600: 61 74 20 66 6f 73 73 69 6c 20 62 69 6e 61 72 79  at fossil binary
2610: 20 74 6f 20 75 73 65 2c 20 77 68 61 74 20 65 78   to use, what ex
2620: 74 65 6e 73 69 6f 6e 20 79 6f 75 72 20 72 65 70  tension your rep
2630: 6f 73 69 74 6f 72 79 20 64 61 74 61 62 61 73 65  ository database
2640: 73 20 68 61 76 65 20 61 6e 64 20 77 68 65 72 65  s have and where
2650: 20 61 6c 6c 20 79 6f 75 72 20 64 61 74 61 62 61   all your databa
2660: 73 65 73 20 61 72 65 20 6c 6f 63 61 74 65 64 2e  ses are located.
2670: 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a 3c 66  ....<nowiki>..<f
2680: 6f 6e 74 20 66 61 63 65 3d 22 6d 6f 6e 6f 73 70  ont face="monosp
2690: 61 63 65 22 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ace">..<font col
26a0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
26b0: 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;1 </font><fon
26c0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66  t color="#0000ff
26d0: 22 3e 23 21 2f 62 69 6e 2f 73 68 3c 2f 66 6f 6e  ">#!/bin/sh</fon
26e0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
26f0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
2700: 62 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 3c 62 72  bsp;2 </font><br
2710: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
2720: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 33  #a52a2a">&nbsp;3
2730: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
2740: 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 3e 23 23  lor="#0000ff">##
2750: 23 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20  # Configuration 
2760: 73 65 63 74 69 6f 6e 20 23 23 23 3c 2f 66 6f 6e  section ###</fon
2770: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
2780: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
2790: 62 73 70 3b 34 20 3c 2f 66 6f 6e 74 3e 3c 62 72  bsp;4 </font><br
27a0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
27b0: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 35  #a52a2a">&nbsp;5
27c0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
27d0: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 54 49  lor="#008b8b">TI
27e0: 54 4c 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74  TLE</font>=<font
27f0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
2800: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f  ><b>&quot;</b></
2810: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
2820: 3d 22 23 66 66 30 30 66 66 22 3e 26 6c 74 3b 68  ="#ff00ff">&lt;h
2830: 32 26 67 74 3b 46 6f 73 73 69 6c 20 72 65 70 6f  2&gt;Fossil repo
2840: 73 69 74 6f 72 69 65 73 26 6c 74 3b 2f 68 32 26  sitories&lt;/h2&
2850: 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  gt;</font><font 
2860: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
2870: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
2880: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
2890: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
28a0: 26 6e 62 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e 3c  &nbsp;6 </font><
28b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38  font color="#008
28c0: 62 38 62 22 3e 46 4f 53 53 49 4c 3c 2f 66 6f 6e  b8b">FOSSIL</fon
28d0: 74 3e 3d 2f 75 73 72 2f 6c 6f 63 61 6c 2f 62 69  t>=/usr/local/bi
28e0: 6e 2f 66 6f 73 73 69 6c 3c 62 72 3e 0d 0a 3c 66  n/fossil<br>..<f
28f0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
2900: 32 61 22 3e 26 6e 62 73 70 3b 37 20 3c 2f 66 6f  2a">&nbsp;7 </fo
2910: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
2920: 23 30 30 38 62 38 62 22 3e 52 45 50 4f 53 52 4f  #008b8b">REPOSRO
2930: 4f 54 3c 2f 66 6f 6e 74 3e 3d 2f 68 6f 6d 65 2f  OT</font>=/home/
2940: 72 65 70 6f 73 2f 66 6f 73 73 69 6c 3c 62 72 3e  repos/fossil<br>
2950: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
2960: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 38 20  a52a2a">&nbsp;8 
2970: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
2980: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 52 45 50  or="#008b8b">REP
2990: 4f 53 45 58 54 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f  OSEXT</font>=<fo
29a0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
29b0: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
29c0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
29d0: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 2e 66 73  or="#ff00ff">.fs
29e0: 6c 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  l</font><font co
29f0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
2a00: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
2a10: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
2a20: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
2a30: 62 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 3c 62 72  bsp;9 </font><br
2a40: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
2a50: 23 61 35 32 61 32 61 22 3e 31 30 20 3c 2f 66 6f  #a52a2a">10 </fo
2a60: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
2a70: 23 30 30 30 30 66 66 22 3e 23 23 23 20 50 72 6f  #0000ff">### Pro
2a80: 63 65 73 73 69 6e 67 20 73 65 63 74 69 6f 6e 20  cessing section 
2a90: 2d 2d 20 6e 6f 74 68 69 6e 67 20 74 6f 20 63 6f  -- nothing to co
2aa0: 6e 66 69 67 75 72 65 20 68 65 72 65 21 20 23 23  nfigure here! ##
2ab0: 23 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  #</font><br>..<f
2ac0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
2ad0: 32 61 22 3e 31 31 20 3c 2f 66 6f 6e 74 3e 3c 62  2a">11 </font><b
2ae0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
2af0: 22 23 61 35 32 61 32 61 22 3e 31 32 20 3c 2f 66  "#a52a2a">12 </f
2b00: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
2b10: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 73 65 74  "#a52a2a"><b>set
2b20: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  </b></font><font
2b30: 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22   color="#008b8b"
2b40: 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66  >&nbsp;</font><f
2b50: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
2b60: 63 64 22 3e 2d 66 3c 2f 66 6f 6e 74 3e 3c 66 6f  cd">-f</font><fo
2b70: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
2b80: 62 22 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  b">&nbsp;&nbsp;&
2b90: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 2f 66 6f 6e  nbsp;&nbsp;</fon
2ba0: 74 3e 3b 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  t>; <font color=
2bb0: 22 23 30 30 30 30 66 66 22 3e 23 20 64 69 73 61  "#0000ff"># disa
2bc0: 62 6c 65 20 66 69 6c 65 6e 61 6d 65 20 67 6c 6f  ble filename glo
2bd0: 62 62 69 6e 67 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  bbing</font><br>
2be0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
2bf0: 61 35 32 61 32 61 22 3e 31 33 20 3c 2f 66 6f 6e  a52a2a">13 </fon
2c00: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
2c10: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 34  lor="#a52a2a">14
2c20: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
2c30: 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 3e 23 23  lor="#0000ff">##
2c40: 20 53 6f 6d 65 20 68 65 6c 70 65 72 20 66 75 6e   Some helper fun
2c50: 63 74 69 6f 6e 73 3c 2f 66 6f 6e 74 3e 3c 62 72  ctions</font><br
2c60: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
2c70: 23 61 35 32 61 32 61 22 3e 31 35 20 3c 2f 66 6f  #a52a2a">15 </fo
2c80: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
2c90: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31  olor="#a52a2a">1
2ca0: 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  6 </font><font c
2cb0: 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 48  olor="#008b8b">H
2cc0: 65 61 64 65 72 54 65 78 74 20 28 29 20 7b 3c 2f  eaderText () {</
2cd0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
2ce0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
2cf0: 3e 31 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >17 </font>&nbsp
2d00: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
2d10: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
2d20: 69 66 20 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  if </b></font><f
2d30: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
2d40: 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f  2a"><b>[</b></fo
2d50: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
2d60: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
2d70: 62 3e 2d 7a 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26  b>-z</b></font>&
2d80: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
2d90: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71  ="#a52a2a"><b>&q
2da0: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  uot;</b></font><
2db0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
2dc0: 30 66 30 22 3e 24 68 65 61 64 65 72 57 72 69 74  0f0">$headerWrit
2dd0: 74 65 6e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  ten</font><font 
2de0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
2df0: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
2e00: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  ont>&nbsp;<font 
2e10: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
2e20: 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  <b>]</b></font><
2e30: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
2e40: 61 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66  a2a"><b>;</b></f
2e50: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  ont>&nbsp;<font 
2e60: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
2e70: 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e  <b>then</b></fon
2e80: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
2e90: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 38  lor="#a52a2a">18
2ea0: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
2eb0: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
2ec0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
2ed0: 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62  2a2a"><b>echo</b
2ee0: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
2ef0: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e  lor="#ff00ff">&n
2f00: 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  bsp;</font><font
2f10: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
2f20: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f  ><b>&quot;</b></
2f30: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
2f40: 3d 22 23 66 66 30 30 66 66 22 3e 43 6f 6e 74 65  ="#ff00ff">Conte
2f50: 6e 74 2d 74 79 70 65 3a 20 74 65 78 74 2f 70 6c  nt-type: text/pl
2f60: 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 69 73 6f  ain; charset=iso
2f70: 2d 38 38 35 39 2d 31 3c 2f 66 6f 6e 74 3e 3c 66  -8859-1</font><f
2f80: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
2f90: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
2fa0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
2fb0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
2fc0: 32 61 22 3e 31 39 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">19 </font>&n
2fd0: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
2fe0: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
2ff0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65  r="#a52a2a"><b>e
3000: 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62  cho</b></font><b
3010: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
3020: 22 23 61 35 32 61 32 61 22 3e 32 30 20 3c 2f 66  "#a52a2a">20 </f
3030: 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b  ont>&nbsp;&nbsp;
3040: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e  &nbsp;&nbsp;<fon
3050: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
3060: 22 3e 68 65 61 64 65 72 57 72 69 74 74 65 6e 3c  ">headerWritten<
3070: 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c  /font>=<font col
3080: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 31 3c 2f  or="#ff00ff">1</
3090: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
30a0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
30b0: 3e 32 31 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >21 </font>&nbsp
30c0: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
30d0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
30e0: 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72  fi</b></font><br
30f0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
3100: 23 61 35 32 61 32 61 22 3e 32 32 20 3c 2f 66 6f  #a52a2a">22 </fo
3110: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3120: 23 30 30 38 62 38 62 22 3e 7d 3c 2f 66 6f 6e 74  #008b8b">}</font
3130: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
3140: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 33 20  or="#a52a2a">23 
3150: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
3160: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3170: 61 22 3e 32 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  a">24 </font><fo
3180: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
3190: 62 22 3e 48 65 61 64 65 72 48 54 4d 4c 20 28 29  b">HeaderHTML ()
31a0: 20 7b 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c   {</font><br>..<
31b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
31c0: 61 32 61 22 3e 32 35 20 3c 2f 66 6f 6e 74 3e 26  a2a">25 </font>&
31d0: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
31e0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
31f0: 3e 3c 62 3e 69 66 20 3c 2f 62 3e 3c 2f 66 6f 6e  ><b>if </b></fon
3200: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
3210: 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e  a52a2a"><b>[</b>
3220: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
3230: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3240: 61 22 3e 3c 62 3e 2d 7a 3c 2f 62 3e 3c 2f 66 6f  a"><b>-z</b></fo
3250: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
3260: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
3270: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
3280: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3290: 23 61 30 32 30 66 30 22 3e 24 68 65 61 64 65 72  #a020f0">$header
32a0: 57 72 69 74 74 65 6e 3c 2f 66 6f 6e 74 3e 3c 66  Written</font><f
32b0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
32c0: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
32d0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
32e0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
32f0: 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f  2a"><b>]</b></fo
3300: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3310: 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c 2f 62  #a52a2a"><b>;</b
3320: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
3330: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
3340: 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c  2a"><b>then</b><
3350: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
3360: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3370: 22 3e 32 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ">26 </font>&nbs
3380: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
3390: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
33a0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68  "#a52a2a"><b>ech
33b0: 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  o</b></font><fon
33c0: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
33d0: 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c  ">&nbsp;</font><
33e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
33f0: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
3400: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  b></font><font c
3410: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 43  olor="#ff00ff">C
3420: 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 20 74 65 78  ontent-type: tex
3430: 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 3d  t/html; charset=
3440: 69 73 6f 2d 38 38 35 39 2d 31 3c 2f 66 6f 6e 74  iso-8859-1</font
3450: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
3460: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b  52a2a"><b>&quot;
3470: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  </b></font><br>.
3480: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
3490: 35 32 61 32 61 22 3e 32 37 20 3c 2f 66 6f 6e 74  52a2a">27 </font
34a0: 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  >&nbsp;&nbsp;&nb
34b0: 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  sp;&nbsp;<font c
34c0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
34d0: 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74  b>echo</b></font
34e0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
34f0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 38 20  or="#a52a2a">28 
3500: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
3510: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c  sp;&nbsp;&nbsp;<
3520: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38  font color="#008
3530: 62 38 62 22 3e 68 65 61 64 65 72 57 72 69 74 74  b8b">headerWritt
3540: 65 6e 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20  en</font>=<font 
3550: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
3560: 31 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  1</font><br>..<f
3570: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
3580: 32 61 22 3e 32 39 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">29 </font>&n
3590: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
35a0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
35b0: 3c 62 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  <b>fi</b></font>
35c0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
35d0: 72 3d 22 23 61 35 32 61 32 61 22 3e 33 30 20 3c  r="#a52a2a">30 <
35e0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
35f0: 72 3d 22 23 30 30 38 62 38 62 22 3e 7d 3c 2f 66  r="#008b8b">}</f
3600: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
3610: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
3620: 33 31 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  31 </font><br>..
3630: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3640: 32 61 32 61 22 3e 33 32 20 3c 2f 66 6f 6e 74 3e  2a2a">32 </font>
3650: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
3660: 38 62 38 62 22 3e 45 72 72 6f 72 20 28 29 20 7b  8b8b">Error () {
3670: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
3680: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3690: 61 22 3e 33 33 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">33 </font>&nb
36a0: 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 65 72 48  sp;&nbsp;HeaderH
36b0: 54 4d 4c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  TML<br>..<font c
36c0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33  olor="#a52a2a">3
36d0: 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  4 </font>&nbsp;&
36e0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
36f0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63  ="#a52a2a"><b>ec
3700: 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  ho</b></font><fo
3710: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
3720: 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e  f">&nbsp;</font>
3730: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3740: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
3750: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
3760: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
3770: 26 6c 74 3b 70 26 67 74 3b 26 6c 74 3b 66 6f 6e  &lt;p&gt;&lt;fon
3780: 74 20 63 6f 6c 6f 72 3d 3c 2f 66 6f 6e 74 3e 3c  t color=</font><
3790: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
37a0: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
37b0: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  b></font><font c
37c0: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 72  olor="#ff00ff">r
37d0: 65 64 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  ed</font><font c
37e0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
37f0: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
3800: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3810: 23 66 66 30 30 66 66 22 3e 26 67 74 3b 45 52 52  #ff00ff">&gt;ERR
3820: 4f 52 3a 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  OR: </font><font
3830: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
3840: 3e 24 31 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  >$1</font><font 
3850: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
3860: 26 6c 74 3b 2f 66 6f 6e 74 26 67 74 3b 26 6c 74  &lt;/font&gt;&lt
3870: 3b 2f 70 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66  ;/p&gt;</font><f
3880: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
3890: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
38a0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
38b0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
38c0: 32 61 22 3e 33 35 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">35 </font>&n
38d0: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
38e0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
38f0: 3c 62 3e 65 78 69 74 3c 2f 62 3e 3c 2f 66 6f 6e  <b>exit</b></fon
3900: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
3910: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 31 3c  lor="#ff00ff">1<
3920: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
3930: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3940: 22 3e 33 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ">36 </font><fon
3950: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
3960: 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ">}</font><br>..
3970: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3980: 32 61 32 61 22 3e 33 37 20 3c 2f 66 6f 6e 74 3e  2a2a">37 </font>
3990: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
39a0: 72 3d 22 23 61 35 32 61 32 61 22 3e 33 38 20 3c  r="#a52a2a">38 <
39b0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
39c0: 72 3d 22 23 30 30 38 62 38 62 22 3e 50 20 28 29  r="#008b8b">P ()
39d0: 20 7b 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c   {</font><br>..<
39e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
39f0: 61 32 61 22 3e 33 39 20 3c 2f 66 6f 6e 74 3e 26  a2a">39 </font>&
3a00: 6e 62 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 65  nbsp;&nbsp;Heade
3a10: 72 54 65 78 74 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  rText<br>..<font
3a20: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
3a30: 3e 34 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >40 </font>&nbsp
3a40: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
3a50: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
3a60: 66 6f 72 20 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 76  for </b></font>v
3a70: 61 72 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  ar <font color="
3a80: 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 6e 3c 2f  #a52a2a"><b>in</
3a90: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
3aa0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
3ab0: 30 66 30 22 3e 24 2a 3c 2f 66 6f 6e 74 3e 3c 66  0f0">$*</font><f
3ac0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
3ad0: 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f  2a"><b>;</b></fo
3ae0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
3af0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
3b00: 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  b>do</b></font><
3b10: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
3b20: 3d 22 23 61 35 32 61 32 61 22 3e 34 31 20 3c 2f  ="#a52a2a">41 </
3b30: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
3b40: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  ;&nbsp;&nbsp;<fo
3b50: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3b60: 61 22 3e 3c 62 3e 65 76 61 6c 3c 2f 62 3e 3c 2f  a"><b>eval</b></
3b70: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74  font>&nbsp;<font
3b80: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
3b90: 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f  ><b>echo</b></fo
3ba0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3bb0: 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c  #ff00ff">&nbsp;<
3bc0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3bd0: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 76 61 72  r="#a020f0">$var
3be0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
3bf0: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62  or="#ff00ff">&nb
3c00: 73 70 3b 3d 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;= </font><fon
3c10: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3c20: 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c  "><b>&quot;</b><
3c30: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3c40: 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 24 3c 2f  r="#6a5acd">\$</
3c50: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
3c60: 3d 22 23 61 30 32 30 66 30 22 3e 24 76 61 72 3c  ="#a020f0">$var<
3c70: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3c80: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
3c90: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
3ca0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
3cb0: 72 3d 22 23 61 35 32 61 32 61 22 3e 34 32 20 3c  r="#a52a2a">42 <
3cc0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
3cd0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
3ce0: 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65 3c  a52a2a"><b>done<
3cf0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
3d00: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3d10: 32 61 32 61 22 3e 34 33 20 3c 2f 66 6f 6e 74 3e  2a2a">43 </font>
3d20: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
3d30: 38 62 38 62 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62  8b8b">}</font><b
3d40: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
3d50: 22 23 61 35 32 61 32 61 22 3e 34 34 20 3c 2f 66  "#a52a2a">44 </f
3d60: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
3d70: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
3d80: 34 35 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  45 </font><font 
3d90: 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 3e  color="#0000ff">
3da0: 23 23 20 44 6f 20 74 68 65 20 72 65 61 6c 20 77  ## Do the real w
3db0: 6f 72 6b 20 68 65 72 65 20 2e 2e 2e 3c 2f 66 6f  ork here ...</fo
3dc0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
3dd0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34  olor="#a52a2a">4
3de0: 36 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  6 </font><br>..<
3df0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
3e00: 61 32 61 22 3e 34 37 20 3c 2f 66 6f 6e 74 3e 3c  a2a">47 </font><
3e10: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38  font color="#008
3e20: 62 38 62 22 3e 70 72 6f 6a 65 63 74 3c 2f 66 6f  b8b">project</fo
3e30: 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt>=<font color=
3e40: 22 23 36 61 35 61 63 64 22 3e 60 65 63 68 6f 20  "#6a5acd">`echo 
3e50: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
3e60: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 50 41  or="#a020f0">$PA
3e70: 54 48 5f 49 4e 46 4f 3c 2f 66 6f 6e 74 3e 3c 66  TH_INFO</font><f
3e80: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
3e90: 63 64 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74  cd">&nbsp;</font
3ea0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
3eb0: 35 32 61 32 61 22 3e 3c 62 3e 7c 3c 2f 62 3e 3c  52a2a"><b>|</b><
3ec0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3ed0: 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 73  r="#6a5acd">&nbs
3ee0: 70 3b 73 65 64 20 2d 65 20 3c 2f 66 6f 6e 74 3e  p;sed -e </font>
3ef0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3f00: 32 61 32 61 22 3e 3c 62 3e 27 3c 2f 62 3e 3c 2f  2a2a"><b>'</b></
3f10: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
3f20: 3d 22 23 66 66 30 30 66 66 22 3e 73 21 2f 3c 2f  ="#ff00ff">s!/</
3f30: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
3f40: 3d 22 23 36 61 35 61 63 64 22 3e 5c 28 3c 2f 66  ="#6a5acd">\(</f
3f50: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
3f60: 22 23 66 66 30 30 66 66 22 3e 5b 5e 2f 5d 2a 3c  "#ff00ff">[^/]*<
3f70: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3f80: 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 29 3c 2f  r="#6a5acd">\)</
3f90: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
3fa0: 3d 22 23 66 66 30 30 66 66 22 3e 2e 2a 21 5c 31  ="#ff00ff">.*!\1
3fb0: 21 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  !</font><font co
3fc0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
3fd0: 3e 27 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  >'|</b></font><f
3fe0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
3ff0: 63 64 22 3e 26 6e 62 73 70 3b 74 72 20 3c 2f 66  cd">&nbsp;tr </f
4000: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4010: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75  "#a52a2a"><b>&qu
4020: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  ot;</b></font><f
4030: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
4040: 66 66 22 3e 5b 41 2d 5a 5d 3c 2f 66 6f 6e 74 3e  ff">[A-Z]</font>
4050: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4060: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
4070: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
4080: 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e  color="#6a5acd">
4090: 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f  &nbsp;</font><fo
40a0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
40b0: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
40c0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
40d0: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 5b 61 2d  or="#ff00ff">[a-
40e0: 7a 5d 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  z]</font><font c
40f0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
4100: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
4110: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
4120: 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 6f 6e 74  #6a5acd">`</font
4130: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
4140: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 38 20  or="#a52a2a">48 
4150: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4160: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 72 65 70  or="#008b8b">rep
4170: 6f 73 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20  os</font>=<font 
4180: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
4190: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
41a0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
41b0: 22 23 61 30 32 30 66 30 22 3e 24 52 45 50 4f 53  "#a020f0">$REPOS
41c0: 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  ROOT</font><font
41d0: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22   color="#ff00ff"
41e0: 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  >/</font><font c
41f0: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
4200: 70 72 6f 6a 65 63 74 24 52 45 50 4f 53 45 58 54  project$REPOSEXT
4210: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4220: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
4230: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
4240: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
4250: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 39 20  or="#a52a2a">49 
4260: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
4270: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4280: 61 22 3e 35 30 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  a">50 </font><fo
4290: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
42a0: 61 22 3e 3c 62 3e 69 66 20 3c 2f 62 3e 3c 2f 66  a"><b>if </b></f
42b0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
42c0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f  "#a52a2a"><b>[</
42d0: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
42e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
42f0: 61 32 61 22 3e 3c 62 3e 2d 72 3c 2f 62 3e 3c 2f  a2a"><b>-r</b></
4300: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74  font>&nbsp;<font
4310: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4320: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f  ><b>&quot;</b></
4330: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4340: 3d 22 23 61 30 32 30 66 30 22 3e 24 72 65 70 6f  ="#a020f0">$repo
4350: 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  s</font><font co
4360: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
4370: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
4380: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
4390: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
43a0: 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  >]</b></font><fo
43b0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
43c0: 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>;</b></fon
43d0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
43e0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
43f0: 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >then</b></font>
4400: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
4410: 72 3d 22 23 61 35 32 61 32 61 22 3e 35 31 20 3c  r="#a52a2a">51 <
4420: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
4430: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
4440: 30 30 38 62 38 62 22 3e 50 41 54 48 5f 49 4e 46  008b8b">PATH_INF
4450: 4f 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63  O</font>=<font c
4460: 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60  olor="#6a5acd">`
4470: 65 63 68 6f 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  echo </font><fon
4480: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
4490: 22 3e 24 52 45 51 55 45 53 54 5f 55 52 49 3c 2f  ">$REQUEST_URI</
44a0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
44b0: 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 73 70  ="#6a5acd">&nbsp
44c0: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
44d0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
44e0: 3e 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  >|</b></font><fo
44f0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63  nt color="#6a5ac
4500: 64 22 3e 26 6e 62 73 70 3b 73 65 64 20 2d 65 20  d">&nbsp;sed -e 
4510: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4520: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
4530: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
4540: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
4550: 66 30 30 66 66 22 3e 73 21 5e 3c 2f 66 6f 6e 74  f00ff">s!^</font
4560: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4570: 30 32 30 66 30 22 3e 24 53 43 52 49 50 54 5f 4e  020f0">$SCRIPT_N
4580: 41 4d 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  AME</font><font 
4590: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
45a0: 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  /</font><font co
45b0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 70  lor="#a020f0">$p
45c0: 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c 66 6f  roject</font><fo
45d0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63  nt color="#6a5ac
45e0: 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  d">\\</font><fon
45f0: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
4600: 22 3e 28 5b 5e 3f 5d 2a 3c 2f 66 6f 6e 74 3e 3c  ">([^?]*</font><
4610: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35  font color="#6a5
4620: 61 63 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 66  acd">\\</font><f
4630: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
4640: 66 66 22 3e 29 2e 2a 21 3c 2f 66 6f 6e 74 3e 3c  ff">).*!</font><
4650: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35  font color="#6a5
4660: 61 63 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 66  acd">\\</font><f
4670: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
4680: 66 66 22 3e 31 21 3c 2f 66 6f 6e 74 3e 3c 66 6f  ff">1!</font><fo
4690: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
46a0: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
46b0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
46c0: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60 3c 2f  or="#6a5acd">`</
46d0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
46e0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
46f0: 3e 35 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  >52 </font><font
4700: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4710: 3e 3c 62 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b  ><b>&nbsp;&nbsp;
4720: 3a 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  :</b></font>&nbs
4730: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
4740: 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e 74  a020f0">${</font
4750: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4760: 30 32 30 66 30 22 3e 50 41 54 48 5f 49 4e 46 4f  020f0">PATH_INFO
4770: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4780: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
4790: 3a 3d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  :=</b></font><fo
47a0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
47b0: 66 22 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  f">/</font><font
47c0: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
47d0: 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  >}</font><br>..<
47e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
47f0: 61 32 61 22 3e 35 33 20 3c 2f 66 6f 6e 74 3e 26  a2a">53 </font>&
4800: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
4810: 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22   color="#008b8b"
4820: 3e 53 43 52 49 50 54 5f 4e 41 4d 45 3c 2f 66 6f  >SCRIPT_NAME</fo
4830: 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt>=<font color=
4840: 22 23 61 30 32 30 66 30 22 3e 24 53 43 52 49 50  "#a020f0">$SCRIP
4850: 54 5f 4e 41 4d 45 3c 2f 66 6f 6e 74 3e 2f 3c 66  T_NAME</font>/<f
4860: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
4870: 66 30 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f  f0">$project</fo
4880: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
4890: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 35  olor="#a52a2a">5
48a0: 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  4 </font>&nbsp;&
48b0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
48c0: 3d 22 23 30 30 38 62 38 62 22 3e 54 45 4d 50 46  ="#008b8b">TEMPF
48d0: 49 4c 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74  ILE</font>=<font
48e0: 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22   color="#6a5acd"
48f0: 3e 60 6d 6b 74 65 6d 70 20 2f 74 6d 70 2f 66 6f  >`mktemp /tmp/fo
4900: 73 73 69 6c 2d 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ssil-</font><fon
4910: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
4920: 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74  ">$project</font
4930: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36  ><font color="#6
4940: 61 35 61 63 64 22 3e 2e 58 58 58 58 58 58 60 3c  a5acd">.XXXXXX`<
4950: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e  /font>&nbsp;<fon
4960: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
4970: 22 3e 3c 62 3e 7c 7c 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>||</b></fon
4980: 74 3e 26 6e 62 73 70 3b 45 72 72 6f 72 20 3c 66  t>&nbsp;Error <f
4990: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
49a0: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
49b0: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
49c0: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 43 6f  lor="#ff00ff">Co
49d0: 75 6c 64 6e 27 74 20 63 72 65 61 74 65 20 74 65  uldn't create te
49e0: 6d 70 66 69 6c 65 3c 2f 66 6f 6e 74 3e 3c 66 6f  mpfile</font><fo
49f0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4a00: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
4a10: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
4a20: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4a30: 61 22 3e 35 35 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">55 </font>&nb
4a40: 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  sp;&nbsp;<font c
4a50: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
4a60: 62 3e 74 72 61 70 3c 2f 62 3e 3c 2f 66 6f 6e 74  b>trap</b></font
4a70: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
4a80: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
4a90: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
4aa0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
4ab0: 66 30 30 66 66 22 3e 72 6d 20 2d 66 20 3c 2f 66  f00ff">rm -f </f
4ac0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4ad0: 22 23 61 30 32 30 66 30 22 3e 24 54 45 4d 50 46  "#a020f0">$TEMPF
4ae0: 49 4c 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  ILE</font><font 
4af0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
4b00: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
4b10: 6f 6e 74 3e 26 6e 62 73 70 3b 45 58 49 54 20 51  ont>&nbsp;EXIT Q
4b20: 55 49 54 20 49 4e 54 20 54 45 52 4d 3c 62 72 3e  UIT INT TERM<br>
4b30: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
4b40: 61 35 32 61 32 61 22 3e 35 36 20 3c 2f 66 6f 6e  a52a2a">56 </fon
4b50: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  t>&nbsp;&nbsp;<f
4b60: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
4b70: 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c  2a"><b>echo</b><
4b80: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4b90: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73  r="#ff00ff">&nbs
4ba0: 70 3b 72 65 70 6f 73 69 74 6f 72 79 3a 20 3c 2f  p;repository: </
4bb0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4bc0: 3d 22 23 61 30 32 30 66 30 22 3e 24 72 65 70 6f  ="#a020f0">$repo
4bd0: 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  s</font><font co
4be0: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e  lor="#ff00ff">&n
4bf0: 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  bsp;</font><font
4c00: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4c10: 3e 3c 62 3e 26 67 74 3b 3c 2f 62 3e 3c 2f 66 6f  ><b>&gt;</b></fo
4c20: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
4c30: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
4c40: 54 45 4d 50 46 49 4c 45 3c 2f 66 6f 6e 74 3e 3c  TEMPFILE</font><
4c50: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
4c60: 3d 22 23 61 35 32 61 32 61 22 3e 35 37 20 3c 2f  ="#a52a2a">57 </
4c70: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
4c80: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
4c90: 30 32 30 66 30 22 3e 24 46 4f 53 53 49 4c 3c 2f  020f0">$FOSSIL</
4ca0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 63 67 69 20 3c  font>&nbsp;cgi <
4cb0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
4cc0: 30 66 30 22 3e 24 54 45 4d 50 46 49 4c 45 3c 2f  0f0">$TEMPFILE</
4cd0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
4ce0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4cf0: 3e 35 38 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  >58 </font><font
4d00: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4d10: 3e 3c 62 3e 65 6c 69 66 3c 2f 62 3e 3c 2f 66 6f  ><b>elif</b></fo
4d20: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
4d30: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
4d40: 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  b>[</b></font>&n
4d50: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
4d60: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 2d 7a 3c  "#a52a2a"><b>-z<
4d70: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
4d80: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4d90: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
4da0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
4db0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
4dc0: 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c  $project</font><
4dd0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
4de0: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
4df0: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
4e00: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
4e10: 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66  a2a"><b>]</b></f
4e20: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4e30: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c 2f  "#a52a2a"><b>;</
4e40: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
4e50: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
4e60: 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e  a2a"><b>then</b>
4e70: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
4e80: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4e90: 61 22 3e 35 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">59 </font>&nb
4ea0: 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 65 72 48  sp;&nbsp;HeaderH
4eb0: 54 4d 4c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  TML<br>..<font c
4ec0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36  olor="#a52a2a">6
4ed0: 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  0 </font>&nbsp;&
4ee0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
4ef0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63  ="#a52a2a"><b>ec
4f00: 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  ho</b></font><fo
4f10: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
4f20: 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e  f">&nbsp;</font>
4f30: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4f40: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
4f50: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
4f60: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
4f70: 24 54 49 54 4c 45 3c 2f 66 6f 6e 74 3e 3c 66 6f  $TITLE</font><fo
4f80: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4f90: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
4fa0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
4fb0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4fc0: 61 22 3e 36 31 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">61 </font>&nb
4fd0: 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  sp;&nbsp;<font c
4fe0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
4ff0: 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74  b>echo</b></font
5000: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
5010: 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66  f00ff">&nbsp;</f
5020: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
5030: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75  "#a52a2a"><b>&qu
5040: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  ot;</b></font><f
5050: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
5060: 66 66 22 3e 26 6c 74 3b 75 6c 26 67 74 3b 3c 2f  ff">&lt;ul&gt;</
5070: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5080: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71  ="#a52a2a"><b>&q
5090: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  uot;</b></font><
50a0: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
50b0: 3d 22 23 61 35 32 61 32 61 22 3e 36 32 20 3c 2f  ="#a52a2a">62 </
50c0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
50d0: 3b 66 69 6e 64 20 3c 66 6f 6e 74 20 63 6f 6c 6f  ;find <font colo
50e0: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 50  r="#a020f0">$REP
50f0: 4f 53 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 26 6e 62  OSROOT</font>&nb
5100: 73 70 3b 2d 6e 61 6d 65 20 3c 66 6f 6e 74 20 63  sp;-name <font c
5110: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
5120: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
5130: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
5140: 23 66 66 30 30 66 66 22 3e 2a 3c 2f 66 6f 6e 74  #ff00ff">*</font
5150: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
5160: 30 32 30 66 30 22 3e 24 52 45 50 4f 53 45 58 54  020f0">$REPOSEXT
5170: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
5180: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
5190: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
51a0: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
51b0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
51c0: 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  |</b></font>&nbs
51d0: 70 3b 5c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  p;\<br>..<font c
51e0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36  olor="#a52a2a">6
51f0: 33 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  3 </font>&nbsp;&
5200: 6e 62 73 70 3b 77 68 69 6c 65 20 3c 66 6f 6e 74  nbsp;while <font
5210: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
5220: 3e 3c 62 3e 72 65 61 64 3c 2f 62 3e 3c 2f 66 6f  ><b>read</b></fo
5230: 6e 74 3e 26 6e 62 73 70 3b 72 65 70 6f 73 3c 66  nt>&nbsp;repos<f
5240: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5250: 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f  2a"><b>;</b></fo
5260: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
5270: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
5280: 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  b>do</b></font><
5290: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
52a0: 3d 22 23 61 35 32 61 32 61 22 3e 36 34 20 3c 2f  ="#a52a2a">64 </
52b0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
52c0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  ;&nbsp;&nbsp;<fo
52d0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
52e0: 62 22 3e 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74  b">project</font
52f0: 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  >=<font color="#
5300: 36 61 35 61 63 64 22 3e 60 62 61 73 65 6e 61 6d  6a5acd">`basenam
5310: 65 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  e </font><font c
5320: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
5330: 72 65 70 6f 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  repos</font><fon
5340: 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64  t color="#6a5acd
5350: 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c  ">&nbsp;</font><
5360: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
5370: 30 66 30 22 3e 24 52 45 50 4f 53 45 58 54 3c 2f  0f0">$REPOSEXT</
5380: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5390: 3d 22 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 6f  ="#6a5acd">`</fo
53a0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
53b0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36  olor="#a52a2a">6
53c0: 35 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  5 </font>&nbsp;&
53d0: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70  nbsp;&nbsp;&nbsp
53e0: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
53f0: 35 32 61 32 61 22 3e 3c 62 3e 69 66 20 3c 2f 62  52a2a"><b>if </b
5400: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
5410: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5420: 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  >[</b></font>&nb
5430: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
5440: 23 61 35 32 61 32 61 22 3e 3c 62 3e 2d 66 3c 2f  #a52a2a"><b>-f</
5450: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
5460: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
5470: 30 66 30 22 3e 24 72 65 70 6f 73 3c 2f 66 6f 6e  0f0">$repos</fon
5480: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5490: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
54a0: 3e 2d 61 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  >-a</b></font>&n
54b0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
54c0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 21 3c 2f  "#a52a2a"><b>!</
54d0: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
54e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
54f0: 61 32 61 22 3e 3c 62 3e 2d 65 3c 2f 62 3e 3c 2f  a2a"><b>-e</b></
5500: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74  font>&nbsp;<font
5510: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
5520: 3e 24 52 45 50 4f 53 52 4f 4f 54 3c 2f 66 6f 6e  >$REPOSROOT</fon
5530: 74 3e 2f 2e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  t>/.<font color=
5540: 22 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65  "#a020f0">$proje
5550: 63 74 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  ct</font>&nbsp;<
5560: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
5570: 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66  a2a"><b>]</b></f
5580: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
5590: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c 2f  "#a52a2a"><b>;</
55a0: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c  b></font>&nbsp;<
55b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
55c0: 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e  a2a"><b>then</b>
55d0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
55e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
55f0: 61 22 3e 36 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">66 </font>&nb
5600: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  sp;&nbsp;&nbsp;&
5610: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70  nbsp;&nbsp;&nbsp
5620: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
5630: 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f  52a2a"><b>echo</
5640: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  b></font><font c
5650: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26  olor="#ff00ff">&
5660: 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  nbsp;</font><fon
5670: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
5680: 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c  "><b>&quot;</b><
5690: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
56a0: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6c 74 3b  r="#ff00ff">&lt;
56b0: 6c 69 26 67 74 3b 26 6c 74 3b 61 20 68 72 65 66  li&gt;&lt;a href
56c0: 3d 27 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  ='</font><font c
56d0: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
56e0: 7b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  {</font><font co
56f0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 52 45  lor="#a020f0">RE
5700: 51 55 45 53 54 5f 55 52 49 3c 2f 66 6f 6e 74 3e  QUEST_URI</font>
5710: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30  <font color="#a0
5720: 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 66  20f0">}</font><f
5730: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
5740: 66 66 22 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ff">/</font><fon
5750: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
5760: 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74  ">$project</font
5770: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
5780: 66 30 30 66 66 22 3e 27 26 67 74 3b 3c 2f 66 6f  f00ff">'&gt;</fo
5790: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
57a0: 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 63  #a020f0">$projec
57b0: 74 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  t</font><font co
57c0: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6c  lor="#ff00ff">&l
57d0: 74 3b 2f 61 26 67 74 3b 26 6c 74 3b 2f 6c 69 26  t;/a&gt;&lt;/li&
57e0: 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  gt;</font><font 
57f0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
5800: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
5810: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
5820: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
5830: 36 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  67 </font>&nbsp;
5840: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
5850: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5860: 61 35 32 61 32 61 22 3e 3c 62 3e 66 69 3c 2f 62  a52a2a"><b>fi</b
5870: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
5880: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5890: 32 61 22 3e 36 38 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">68 </font>&n
58a0: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
58b0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
58c0: 3c 62 3e 64 6f 6e 65 3c 2f 62 3e 3c 2f 66 6f 6e  <b>done</b></fon
58d0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
58e0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36 39  lor="#a52a2a">69
58f0: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
5900: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
5910: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68  "#a52a2a"><b>ech
5920: 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  o</b></font><fon
5930: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
5940: 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c  ">&nbsp;</font><
5950: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
5960: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
5970: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  b></font><font c
5980: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26  olor="#ff00ff">&
5990: 6c 74 3b 2f 75 6c 26 67 74 3b 3c 2f 66 6f 6e 74  lt;/ul&gt;</font
59a0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
59b0: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b  52a2a"><b>&quot;
59c0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  </b></font><br>.
59d0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
59e0: 35 32 61 32 61 22 3e 37 30 20 3c 2f 66 6f 6e 74  52a2a">70 </font
59f0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
5a00: 35 32 61 32 61 22 3e 3c 62 3e 65 6c 73 65 3c 2f  52a2a"><b>else</
5a10: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  b></font><br>..<
5a20: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
5a30: 61 32 61 22 3e 37 31 20 3c 2f 66 6f 6e 74 3e 26  a2a">71 </font>&
5a40: 6e 62 73 70 3b 26 6e 62 73 70 3b 45 72 72 6f 72  nbsp;&nbsp;Error
5a50: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61   <font color="#a
5a60: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b  52a2a"><b>&quot;
5a70: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  </b></font><font
5a80: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22   color="#ff00ff"
5a90: 3e 4e 6f 20 73 75 63 68 20 70 72 6f 6a 65 63 74  >No such project
5aa0: 3a 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  : </font><font c
5ab0: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
5ac0: 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c 66  project</font><f
5ad0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5ae0: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
5af0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
5b00: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5b10: 32 61 22 3e 37 32 20 3c 2f 66 6f 6e 74 3e 3c 66  2a">72 </font><f
5b20: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5b30: 32 61 22 3e 3c 62 3e 66 69 3c 2f 62 3e 3c 2f 66  2a"><b>fi</b></f
5b40: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
5b50: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
5b60: 37 33 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  73 </font><br>..
5b70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
5b80: 32 61 32 61 22 3e 37 34 20 3c 2f 66 6f 6e 74 3e  2a2a">74 </font>
5b90: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
5ba0: 32 61 32 61 22 3e 3c 62 3e 65 78 69 74 3c 2f 62  2a2a"><b>exit</b
5bb0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
5bc0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
5bd0: 66 66 22 3e 30 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  ff">0</font><br>
5be0: 0d 0a 3c 2f 66 6f 6e 74 3e 0d 0a 3c 2f 6e 6f 77  ..</font>..</now
5bf0: 69 6b 69 3e 0d 0a 0d 0a 3c 68 34 3e 57 69 6e 64  iki>....<h4>Wind
5c00: 6f 77 73 3c 2f 68 34 3e 0d 0a 3c 70 3e 57 68 69  ows</h4>..<p>Whi
5c10: 6c 65 20 69 74 20 69 73 20 66 61 72 20 66 72 6f  le it is far fro
5c20: 6d 20 61 20 70 65 72 66 65 63 74 20 73 65 74 20  m a perfect set 
5c30: 6f 66 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 2e  of instructions.
5c40: 2e 20 68 65 72 65 20 61 72 65 20 73 6f 6d 65 20  . here are some 
5c50: 71 75 69 63 6b 20 6e 6f 74 65 73 20 74 68 61 74  quick notes that
5c60: 20 73 68 6f 75 6c 64 20 68 65 6c 70 20 77 69 6e   should help win
5c70: 64 6f 77 73 20 75 73 65 72 73 20 61 6c 6f 6e 67  dows users along
5c80: 20 74 68 65 20 77 61 79 2e 2e 2e 3c 2f 70 3e 0d   the way...</p>.
5c90: 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 79 6f 75 20 6e  .<ul>..<li>you n
5ca0: 65 65 64 20 66 6f 73 73 69 6c 2e 65 78 65 20 61  eed fossil.exe a
5cb0: 63 63 65 73 73 69 62 6c 65 20 62 79 20 79 6f 75  ccessible by you
5cc0: 72 20 77 65 62 20 73 65 72 76 65 72 20 6f 72 20  r web server or 
5cd0: 6f 6e 20 79 6f 75 72 20 70 61 74 68 2e 2e 20 65  on your path.. e
5ce0: 61 73 69 65 73 74 20 69 73 20 74 6f 20 6a 75 73  asiest is to jus
5cf0: 74 20 63 68 75 63 6b 20 69 74 20 69 6e 20 5c 25  t chuck it in \%
5d00: 53 59 53 54 45 4d 5f 52 4f 4f 54 25 5c 20 28 75  SYSTEM_ROOT%\ (u
5d10: 73 75 61 6c 6c 79 20 63 3a 5c 77 69 6e 64 6f 77  sually c:\window
5d20: 73 5c 29 20 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61  s\) </li>..<li>a
5d30: 73 73 75 6d 69 6e 67 20 79 6f 75 20 61 72 65 20  ssuming you are 
5d40: 72 75 6e 6e 69 6e 67 20 61 70 61 63 68 65 2c 20  running apache, 
5d50: 79 6f 75 20 6e 65 65 64 20 74 6f 20 65 69 74 68  you need to eith
5d60: 65 72 20 61 64 64 20 74 68 65 20 45 78 65 63 43  er add the ExecC
5d70: 47 49 20 74 6f 20 74 68 65 20 6f 70 74 69 6f 6e  GI to the option
5d80: 73 20 6f 6e 20 79 6f 75 72 20 44 6f 63 75 6d 65  s on your Docume
5d90: 6e 74 52 6f 6f 74 2c 20 6f 72 20 6d 61 6b 65 20  ntRoot, or make 
5da0: 73 75 72 65 20 74 68 65 20 53 63 72 69 70 74 41  sure the ScriptA
5db0: 6c 69 61 73 20 64 69 72 65 63 74 69 76 65 20 69  lias directive i
5dc0: 73 20 73 65 74 20 61 6e 64 20 70 75 74 20 79 6f  s set and put yo
5dd0: 75 72 20 2e 63 67 69 20 66 69 6c 65 73 20 69 6e  ur .cgi files in
5de0: 20 74 68 61 74 20 66 6f 6c 64 65 72 2e 2e 3c 2f   that folder..</
5df0: 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 63 6f 6e  li>..<li>the con
5e00: 74 65 6e 74 73 20 6f 66 20 79 6f 75 72 20 63 67  tents of your cg
5e10: 69 20 66 69 6c 65 20 6e 65 65 64 73 20 74 6f 20  i file needs to 
5e20: 65 73 73 65 6e 74 69 61 6c 6c 79 20 74 68 65 20  essentially the 
5e30: 73 61 6d 65 20 61 73 20 61 62 6f 76 65 2e 2e 20  same as above.. 
5e40: 68 6f 77 65 76 65 72 20 70 61 74 68 73 20 6e 65  however paths ne
5e50: 65 64 73 20 74 6f 20 62 65 20 77 69 6e 64 6f 77  eds to be window
5e60: 73 20 66 72 69 65 6e 64 6c 79 2e 2e 20 69 20 68  s friendly.. i h
5e70: 61 76 65 20 6d 61 64 65 20 73 75 72 65 20 74 68  ave made sure th
5e80: 61 74 20 61 6c 6c 20 66 6f 6c 64 65 72 73 20 6f  at all folders o
5e90: 6e 20 6d 79 20 74 65 73 74 20 62 6f 78 20 61 72  n my test box ar
5ea0: 65 20 66 72 65 65 20 6f 66 20 73 70 61 63 65 73  e free of spaces
5eb0: 2c 20 61 6e 64 20 61 73 20 73 75 63 68 20 74 68  , and as such th
5ec0: 69 73 20 66 69 6c 65 20 77 6f 72 6b 73 20 66 6f  is file works fo
5ed0: 72 20 6d 65 20 28 6f 62 76 69 6f 75 73 6c 79 20  r me (obviously 
5ee0: 79 6f 75 72 20 70 61 74 68 73 20 6d 61 79 20 64  your paths may d
5ef0: 69 66 66 65 72 29 0d 0a 3c 70 72 65 3e 0d 0a 23  iffer)..<pre>..#
5f00: 21 20 66 6f 73 73 69 6c 2e 65 78 65 0d 0a 72 65  ! fossil.exe..re
5f10: 70 6f 73 69 74 6f 72 79 3a 20 63 3a 2f 77 61 6d  pository: c:/wam
5f20: 70 2f 77 77 77 2f 64 65 76 2f 61 63 63 6f 75 6e  p/www/dev/accoun
5f30: 74 73 2e 66 6f 73 73 69 6c 0d 0a 3c 2f 70 72 65  ts.fossil..</pre
5f40: 3e 0d 0a 49 20 73 75 70 70 6f 73 65 20 79 6f 75  >..I suppose you
5f50: 20 63 6f 75 6c 64 20 70 75 74 20 66 6f 73 73 69   could put fossi
5f60: 6c 2e 65 78 65 20 73 6f 6d 65 77 68 65 72 65 20  l.exe somewhere 
5f70: 6d 6f 72 65 20 73 70 65 63 69 66 69 63 20 61 6e  more specific an
5f80: 64 20 73 65 74 20 74 68 65 20 70 61 74 68 20 74  d set the path t
5f90: 6f 20 69 74 20 61 73 20 77 65 6c 6c 2c 20 62 75  o it as well, bu
5fa0: 74 20 73 69 6e 63 65 20 79 6f 75 20 61 72 65 20  t since you are 
5fb0: 70 72 6f 62 61 62 6c 79 20 75 73 69 6e 67 20 74  probably using t
5fc0: 68 65 20 73 61 6d 65 20 65 78 65 63 75 74 61 62  he same executab
5fd0: 6c 65 20 66 6f 72 20 63 6d 64 6c 69 6e 65 20 61  le for cmdline a
5fe0: 6e 64 20 63 67 69 20 69 74 20 6b 69 6e 64 20 6f  nd cgi it kind o
5ff0: 66 20 6a 75 73 74 20 6d 61 6b 65 73 20 73 65 6e  f just makes sen
6000: 73 65 20 74 6f 20 70 75 74 20 69 74 20 73 6f 6d  se to put it som
6010: 65 77 68 65 72 65 20 6d 6f 72 65 20 61 63 63 65  ewhere more acce
6020: 73 73 69 62 6c 65 3c 2f 6c 69 3e 0d 0a 3c 6c 69  ssible</li>..<li
6030: 3e 41 73 20 77 69 74 68 20 6d 6f 73 74 20 57 69  >As with most Wi
6040: 6e 64 6f 77 73 20 62 61 73 65 64 20 77 65 62 20  ndows based web 
6050: 69 6e 73 74 72 75 63 74 69 6f 6e 73 2c 20 70 65  instructions, pe
6060: 72 6d 69 73 73 69 6f 6e 20 61 72 65 20 6e 6f 74  rmission are not
6070: 20 61 73 20 69 6d 70 6f 72 74 61 6e 74 2c 20 68   as important, h
6080: 6f 77 65 76 65 72 20 61 74 20 74 68 65 20 6c 65  owever at the le
6090: 61 73 74 2c 20 79 6f 75 20 6e 65 65 64 20 74 6f  ast, you need to
60a0: 20 6d 61 6b 65 20 73 75 72 65 20 74 68 61 74 20   make sure that 
60b0: 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 79 20  your repository 
60c0: 69 73 20 6e 6f 74 20 66 6c 61 67 67 65 64 20 72  is not flagged r
60d0: 65 61 64 2d 6f 6e 6c 79 2c 20 61 73 20 79 6f 75  ead-only, as you
60e0: 20 77 69 6c 6c 20 65 6e 63 6f 75 6e 74 65 72 20   will encounter 
60f0: 64 61 74 61 62 61 73 65 20 65 72 72 6f 72 73 20  database errors 
6100: 69 66 20 69 74 20 69 73 2e 3c 2f 6c 69 3e 0d 0a  if it is.</li>..
6110: 3c 2f 75 6c 3e 0d 0a 0d 0a 3c 68 33 3e 44 69 73  </ul>....<h3>Dis
6120: 63 75 73 73 69 6f 6e 3c 2f 68 33 3e 0d 0a 55 73  cussion</h3>..Us
6130: 69 6e 67 20 74 68 65 20 43 47 49 20 73 65 72 76  ing the CGI serv
6140: 65 72 20 69 73 20 74 68 65 20 62 65 73 74 20 73  er is the best s
6150: 6f 6c 75 74 69 6f 6e 20 63 6f 6d 62 69 6e 69 6e  olution combinin
6160: 67 20 61 6e 20 65 78 69 73 74 69 6e 67 20 77 65  g an existing we
6170: 62 20 69 6e 66 72 61 73 74 72 75 63 74 75 72 65  b infrastructure
6180: 20 61 6e 64 20 74 68 65 20 73 68 61 72 69 6e 67   and the sharing
6190: 20 6f 66 20 6d 61 6e 79 20 3c 63 69 74 65 3e 46   of many <cite>F
61a0: 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65 70  ossil</cite> rep
61b0: 6f 73 69 74 6f 72 69 65 73 2e 20 20 55 6e 6c 69  ositories.  Unli
61c0: 6b 65 20 74 68 65 20 61 64 2d 68 6f 63 20 73 6f  ke the ad-hoc so
61d0: 6c 75 74 69 6f 6e 20 77 68 69 63 68 20 72 65 71  lution which req
61e0: 75 69 72 65 73 2c 20 69 6e 20 65 66 66 65 63 74  uires, in effect
61f0: 2c 20 61 20 73 65 70 61 72 61 74 65 20 70 6f 72  , a separate por
6200: 74 20 66 6f 72 20 65 61 63 68 20 73 69 6d 75 6c  t for each simul
6210: 74 61 6e 65 6f 75 73 6c 79 2d 73 68 61 72 65 64  taneously-shared
6220: 20 72 65 70 6f 73 69 74 6f 72 79 2c 20 61 6e 64   repository, and
6230: 20 77 68 69 63 68 20 72 65 71 75 69 72 65 73 20   which requires 
6240: 73 65 76 65 72 61 6c 20 69 6e 73 74 61 6e 63 65  several instance
6250: 73 20 6f 66 20 66 6f 73 73 69 6c 20 72 75 6e 6e  s of fossil runn
6260: 69 6e 67 20 2d 2d 20 6f 6e 65 20 66 6f 72 20 65  ing -- one for e
6270: 61 63 68 20 73 68 61 72 65 64 20 72 65 70 6f 73  ach shared repos
6280: 69 74 6f 72 79 20 2d 2d 20 74 68 65 20 43 47 49  itory -- the CGI
6290: 20 61 70 70 72 6f 61 63 68 20 75 73 65 73 20 55   approach uses U
62a0: 52 4c 73 20 74 6f 20 64 69 73 74 69 6e 67 75 69  RLs to distingui
62b0: 73 68 20 62 65 74 77 65 65 6e 20 72 65 70 6f 73  sh between repos
62c0: 69 74 6f 72 69 65 73 20 61 6e 64 20 6f 6e 6c 79  itories and only
62d0: 20 28 62 72 69 65 66 6c 79 29 20 72 75 6e 73 20   (briefly) runs 
62e0: 61 20 63 6f 70 79 20 6f 66 20 66 6f 73 73 69 6c  a copy of fossil
62f0: 20 77 68 65 6e 20 74 68 65 20 72 65 70 6f 73 69   when the reposi
6300: 74 6f 72 79 20 69 73 20 61 63 74 75 61 6c 6c 79  tory is actually
6310: 20 61 63 63 65 73 73 65 64 2e 0d 0a 0d 0a 53 68   accessed.....Sh
6320: 61 72 69 6e 67 20 72 65 70 6f 73 69 74 6f 72 69  aring repositori
6330: 65 73 20 77 69 74 68 20 43 47 49 20 69 73 20 72  es with CGI is r
6340: 65 61 6c 6c 79 20 6f 6e 6c 79 20 77 6f 72 74 68  eally only worth
6350: 20 74 68 65 20 65 66 66 6f 72 74 20 69 66 20 6d   the effort if m
6360: 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 72 65 70  ore than one rep
6370: 6f 73 69 74 6f 72 79 20 69 73 20 62 65 69 6e 67  ository is being
6380: 20 73 68 61 72 65 64 2c 20 68 6f 77 65 76 65 72   shared, however
6390: 2e 20 20 57 69 74 68 20 6f 6e 6c 79 20 6f 6e 65  .  With only one
63a0: 20 62 65 69 6e 67 20 73 68 61 72 65 64 2c 20 3c   being shared, <
63b0: 63 6f 64 65 3e 66 6f 73 73 69 6c 20 73 65 72 76  code>fossil serv
63c0: 65 72 3c 2f 63 6f 64 65 3e 20 69 73 20 6c 69 6b  er</code> is lik
63d0: 65 6c 79 20 6d 6f 72 65 20 74 68 61 6e 20 61 64  ely more than ad
63e0: 65 71 75 61 74 65 20 6f 72 20 74 68 65 20 75 73  equate or the us
63f0: 65 20 6f 66 20 28 78 29 69 6e 65 74 64 20 6d 61  e of (x)inetd ma
6400: 79 20 62 65 20 69 6e 64 69 63 61 74 65 64 2e 20  y be indicated. 
6410: 20 49 66 2c 20 68 6f 77 65 76 65 72 2c 20 74 68   If, however, th
6420: 65 72 65 20 69 73 20 61 6c 72 65 61 64 79 20 61  ere is already a
6430: 6e 20 65 78 69 73 74 69 6e 67 20 77 65 62 20 69  n existing web i
6440: 6e 66 72 61 73 74 72 75 63 74 75 72 65 20 69 6e  nfrastructure in
6450: 20 70 6c 61 63 65 2c 20 43 47 49 20 73 74 69 6c   place, CGI stil
6460: 6c 20 6d 61 79 20 62 65 20 70 72 65 66 65 72 72  l may be preferr
6470: 65 64 20 69 66 20 6f 6e 6c 79 20 66 6f 72 20 63  ed if only for c
6480: 6f 6e 73 69 73 74 65 6e 63 79 20 61 6e 64 20 6d  onsistency and m
6490: 61 69 6e 74 61 69 6e 61 62 69 6c 69 74 79 20 6f  aintainability o
64a0: 66 20 74 68 65 20 73 79 73 74 65 6d 20 61 73 20  f the system as 
64b0: 61 20 77 68 6f 6c 65 2e 0d 0a 0d 0a 3c 68 32 3e  a whole.....<h2>
64c0: 3c 61 20 6e 61 6d 65 3d 22 65 6e 76 22 3e 55 73  <a name="env">Us
64d0: 69 6e 67 20 45 6e 76 69 72 6f 6e 6d 65 6e 74 20  ing Environment 
64e0: 76 61 72 69 61 62 6c 65 73 3c 2f 61 3e 3c 2f 68  variables</a></h
64f0: 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 69  2>..<h3>Motivati
6500: 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20 57 61  on</h3>..  *  Wa
6510: 6e 74 20 74 6f 20 75 73 65 20 61 20 64 69 66 66  nt to use a diff
6520: 65 72 65 6e 74 20 65 64 69 74 6f 72 20 66 6f 72  erent editor for
6530: 20 63 68 65 63 6b 69 6e 73 20 28 55 6e 69 78 2f   checkins (Unix/
6540: 57 69 6e 64 6f 77 73 29 0d 0a 20 20 2a 20 20 55  Windows)..  *  U
6550: 73 65 20 61 20 70 72 6f 78 79 20 69 66 20 79 6f  se a proxy if yo
6560: 75 20 61 72 65 20 62 65 68 69 6e 64 20 61 20 66  u are behind a f
6570: 69 72 65 77 61 6c 6c 0d 0a 0d 0a 3c 68 33 3e 53  irewall....<h3>S
6580: 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 45 6e  olution</h3>..En
6590: 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62  vironment variab
65a0: 6c 65 73 20 61 72 65 20 75 73 65 64 20 74 6f 20  les are used to 
65b0: 63 75 73 74 6f 6d 69 7a 65 20 73 6f 6d 65 20 70  customize some p
65c0: 72 6f 67 72 61 6d 6d 65 20 62 65 68 61 76 69 6f  rogramme behavio
65d0: 75 72 2e 20 4f 6e 20 4c 69 6e 75 78 2f 55 6e 69  ur. On Linux/Uni
65e0: 78 20 74 68 65 79 20 63 61 6e 20 62 65 20 73 65  x they can be se
65f0: 74 20 69 6e 20 79 6f 75 20 7e 2f 2e 62 61 73 68  t in you ~/.bash
6600: 72 63 20 6f 72 20 65 76 65 6e 20 6f 6e 20 63 6f  rc or even on co
6610: 6d 6d 61 6e 64 20 6c 69 6e 65 2e 20 4f 6e 20 57  mmand line. On W
6620: 69 6e 64 6f 77 73 20 74 68 65 79 20 63 61 6e 20  indows they can 
6630: 62 65 20 73 65 74 20 69 6e 20 74 68 65 20 73 79  be set in the sy
6640: 73 74 65 6d 20 73 65 74 74 69 6e 67 73 2e 0d 0a  stem settings...
6650: 0d 0a 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f  ..<cite>Fossil</
6660: 63 69 74 65 3e 20 63 68 65 63 6b 73 20 74 68 65  cite> checks the
6670: 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 6e 76 69 72   following envir
6680: 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73  onment variables
6690: 3a 0d 0a 20 20 2a 20 20 56 49 53 55 41 4c 2f 45  :..  *  VISUAL/E
66a0: 44 49 54 4f 52 0d 0a 20 20 2a 20 20 68 74 74 70  DITOR..  *  http
66b0: 5f 70 72 6f 78 79 0d 0a 20 20 2a 20 20 54 4d 50  _proxy..  *  TMP
66c0: 5f 44 49 52 0d 0a 20 20 2a 20 20 47 41 54 45 57  _DIR..  *  GATEW
66d0: 41 59 5f 49 4e 54 45 52 46 41 43 45 0d 0a 20 20  AY_INTERFACE..  
66e0: 2a 20 20 53 51 4c 49 54 45 5f 46 4f 52 43 45 5f  *  SQLITE_FORCE_
66f0: 50 52 4f 58 59 5f 4c 4f 43 4b 49 4e 47 0d 0a 20  PROXY_LOCKING.. 
6700: 20 2a 20 20 55 53 45 52 0d 0a 20 20 2a 20 20 55   *  USER..  *  U
6710: 53 45 52 4e 41 4d 45 0d 0a 0d 0a 3c 62 3e 56 49  SERNAME....<b>VI
6720: 53 55 41 4c 2f 45 44 49 54 4f 52 3c 2f 62 3e 20  SUAL/EDITOR</b> 
6730: 63 6f 6e 74 61 69 6e 20 74 68 65 20 65 64 69 74  contain the edit
6740: 6f 72 20 6f 66 20 79 6f 75 72 20 63 68 6f 69 63  or of your choic
6750: 65 20 74 68 61 74 20 69 73 20 75 73 65 64 20 74  e that is used t
6760: 6f 20 77 72 69 74 65 20 74 68 65 20 63 6f 6d 6d  o write the comm
6770: 69 74 20 66 69 6c 65 2e 0d 0a 0d 0a 3c 62 3e 54  it file.....<b>T
6780: 4d 50 5f 44 49 52 3c 2f 62 3e 20 73 70 65 63 69  MP_DIR</b> speci
6790: 66 69 65 73 20 74 68 65 20 64 69 72 65 63 74 6f  fies the directo
67a0: 72 79 20 66 6f 72 20 74 65 6d 70 6f 72 61 72 79  ry for temporary
67b0: 20 66 69 6c 65 73 2e 0d 0a 0d 0a 3c 62 3e 47 41   files.....<b>GA
67c0: 54 45 57 41 59 5f 49 4e 54 45 52 46 41 43 45 3c  TEWAY_INTERFACE<
67d0: 2f 62 3e 20 3f 3f 3f 0d 0a 0d 0a 3c 62 3e 53 51  /b> ???....<b>SQ
67e0: 4c 49 54 45 5f 46 4f 52 43 45 5f 50 52 4f 58 59  LITE_FORCE_PROXY
67f0: 5f 4c 4f 43 4b 49 4e 47 3c 2f 62 3e 20 3f 3f 3f  _LOCKING</b> ???
6800: 0d 0a 0d 0a 3c 62 3e 55 53 45 52 3c 2f 62 3e 0d  ....<b>USER</b>.
6810: 0a 0d 0a 3c 62 3e 55 53 45 52 4e 41 4d 45 3c 2f  ...<b>USERNAME</
6820: 62 3e 0d 0a 0d 0a 0d 0a 3c 68 32 3e 3c 61 20 6e  b>......<h2><a n
6830: 61 6d 65 3d 22 63 73 73 22 3e 45 78 61 6d 70 6c  ame="css">Exampl
6840: 65 20 43 53 53 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a  e CSS</a></h2>..
6850: 3c 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f  <h3>Motivation</
6860: 68 33 3e 0d 0a 54 68 65 20 64 65 66 61 75 6c 74  h3>..The default
6870: 20 55 49 20 6d 61 79 20 6e 6f 74 20 62 65 20 73   UI may not be s
6880: 74 79 6c 69 73 68 20 69 6e 20 65 76 65 72 79 6f  tylish in everyo
6890: 6e 65 73 20 65 79 65 73 2e 0d 0a 49 74 20 69 73  nes eyes...It is
68a0: 20 75 70 20 74 6f 20 79 6f 75 20 74 6f 20 63 68   up to you to ch
68b0: 61 6e 67 65 20 69 74 2e 20 53 65 65 20 74 68 65  ange it. See the
68c0: 20 43 53 53 20 63 6f 64 65 20 62 65 6c 6f 77 20   CSS code below 
68d0: 66 72 6f 6d 20 74 68 69 73 20 73 69 74 65 20 5b  from this site [
68e0: 68 74 74 70 3a 2f 2f 66 6f 73 73 69 6c 2e 77 61  http://fossil.wa
68f0: 6e 64 65 72 69 6e 67 68 6f 72 73 65 2e 6e 65 74  nderinghorse.net
6900: 2f 69 6e 64 65 78 2e 63 67 69 2f 69 6e 64 65 78  /index.cgi/index
6910: 7c 57 61 6e 64 65 72 69 6e 67 20 48 6f 72 73 65  |Wandering Horse
6920: 5d 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a 3c  ]....<nowiki>..<
6930: 70 72 65 3e 0d 0a 2f 2a 20 47 65 6e 65 72 61 6c  pre>../* General
6940: 20 73 65 74 74 69 6e 67 73 20 66 6f 72 20 74 68   settings for th
6950: 65 20 65 6e 74 69 72 65 20 70 61 67 65 20 2a 2f  e entire page */
6960: 0d 0a 62 6f 64 79 20 7b 0d 0a 20 20 6d 61 72 67  ..body {..  marg
6970: 69 6e 3a 20 30 65 78 20 31 65 78 3b 0d 0a 20 20  in: 0ex 1ex;..  
6980: 70 61 64 64 69 6e 67 3a 20 30 70 78 3b 0d 0a 20  padding: 0px;.. 
6990: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
69a0: 72 3a 20 77 68 69 74 65 3b 0d 0a 20 20 66 6f 6e  r: white;..  fon
69b0: 74 2d 66 61 6d 69 6c 79 3a 20 22 73 61 6e 73 20  t-family: "sans 
69c0: 73 65 72 69 66 22 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a  serif";..}..../*
69d0: 20 4d 61 6b 65 20 74 68 65 20 6c 69 6e 6b 73 20   Make the links 
69e0: 69 6e 20 74 68 65 20 66 6f 6f 74 65 72 20 6c 65  in the footer le
69f0: 73 73 20 75 67 6c 79 2e 2e 2e 20 2a 2f 0d 0a 61  ss ugly... */..a
6a00: 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36   { color: #000f6
6a10: 61 3b 20 7d 0d 0a 61 3a 6c 69 6e 6b 20 7b 20 63  a; }..a:link { c
6a20: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 7d  olor: #000f6a; }
6a30: 0d 0a 61 3a 76 69 73 69 74 65 64 20 7b 20 63 6f  ..a:visited { co
6a40: 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d  lor: #000f6a; }.
6a50: 0a 61 3a 68 6f 76 65 72 20 7b 20 62 61 63 6b 67  .a:hover { backg
6a60: 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33  round-color: #e3
6a70: 65 33 65 33 3b 20 7d 0d 0a 0d 0a 0d 0a 68 72 20  e3e3; }......hr 
6a80: 7b 0d 0a 20 20 68 65 69 67 68 74 3a 20 33 70 78  {..  height: 3px
6a90: 3b 0d 0a 20 20 62 6f 72 64 65 72 2d 74 6f 70 3a  ;..  border-top:
6aa0: 20 6e 6f 6e 65 3b 20 2f 2a 31 70 78 20 64 61 73   none; /*1px das
6ab0: 68 65 64 20 23 30 30 35 3b 2a 2f 0d 0a 20 20 62  hed #005;*/..  b
6ac0: 6f 72 64 65 72 2d 62 6f 74 74 6f 6d 3a 20 31 70  order-bottom: 1p
6ad0: 78 20 64 61 73 68 65 64 20 23 30 30 35 3b 0d 0a  x dashed #005;..
6ae0: 20 20 62 6f 72 64 65 72 2d 6c 65 66 74 3a 20 6e    border-left: n
6af0: 6f 6e 65 3b 0d 0a 20 20 62 6f 72 64 65 72 2d 72  one;..  border-r
6b00: 69 67 68 74 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d 0a  ight: none;..}..
6b10: 2f 2a 20 54 68 65 20 70 72 6f 6a 65 63 74 20 6c  /* The project l
6b20: 6f 67 6f 20 69 6e 20 74 68 65 20 75 70 70 65 72  ogo in the upper
6b30: 20 6c 65 66 74 2d 68 61 6e 64 20 63 6f 72 6e 65   left-hand corne
6b40: 72 20 6f 66 20 65 61 63 68 20 70 61 67 65 20 2a  r of each page *
6b50: 2f 0d 0a 64 69 76 2e 6c 6f 67 6f 20 7b 0d 0a 20  /..div.logo {.. 
6b60: 20 64 69 73 70 6c 61 79 3a 20 74 61 62 6c 65 2d   display: table-
6b70: 63 65 6c 6c 3b 0d 0a 20 20 74 65 78 74 2d 61 6c  cell;..  text-al
6b80: 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20  ign: center;..  
6b90: 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 6e 3a 20  vertical-align: 
6ba0: 62 6f 74 74 6f 6d 3b 0d 0a 20 20 63 6f 6c 6f 72  bottom;..  color
6bb0: 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a 0d  : #000f6a;..}...
6bc0: 0a 2f 2a 20 54 68 65 20 70 61 67 65 20 74 69 74  ./* The page tit
6bd0: 6c 65 20 63 65 6e 74 65 72 65 64 20 61 74 20 74  le centered at t
6be0: 68 65 20 74 6f 70 20 6f 66 20 65 61 63 68 20 70  he top of each p
6bf0: 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 74 69 74 6c  age */..div.titl
6c00: 65 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20  e {..  display: 
6c10: 74 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a 20 20 66  table-cell;..  f
6c20: 6f 6e 74 2d 73 69 7a 65 3a 20 32 65 6d 3b 0d 0a  ont-size: 2em;..
6c30: 20 20 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20 62    font-weight: b
6c40: 6f 6c 64 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69  old;..  text-ali
6c50: 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20 63  gn: center;..  c
6c60: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a  olor: #000f6a;..
6c70: 20 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 6e    vertical-align
6c80: 3a 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 77 69 64  : bottom;..  wid
6c90: 74 68 3a 20 31 30 30 25 3b 0d 0a 7d 0d 0a 0d 0a  th: 100%;..}....
6ca0: 2f 2a 20 54 68 65 20 6c 6f 67 69 6e 20 73 74 61  /* The login sta
6cb0: 74 75 73 20 6d 65 73 73 61 67 65 20 69 6e 20 74  tus message in t
6cc0: 68 65 20 74 6f 70 20 72 69 67 68 74 2d 68 61 6e  he top right-han
6cd0: 64 20 63 6f 72 6e 65 72 20 2a 2f 0d 0a 64 69 76  d corner */..div
6ce0: 2e 73 74 61 74 75 73 20 7b 0d 0a 20 20 64 69 73  .status {..  dis
6cf0: 70 6c 61 79 3a 20 74 61 62 6c 65 2d 63 65 6c 6c  play: table-cell
6d00: 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a  ;..  text-align:
6d10: 20 72 69 67 68 74 3b 0d 0a 20 20 76 65 72 74 69   right;..  verti
6d20: 63 61 6c 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 6f  cal-align: botto
6d30: 6d 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30  m;..  color: #00
6d40: 30 66 36 61 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69  0f6a;..  font-si
6d50: 7a 65 3a 20 30 2e 38 65 6d 3b 0d 0a 7d 0d 0a 0d  ze: 0.8em;..}...
6d60: 0a 2f 2a 20 54 68 65 20 68 65 61 64 65 72 20 61  ./* The header a
6d70: 63 72 6f 73 73 20 74 68 65 20 74 6f 70 20 6f 66  cross the top of
6d80: 20 74 68 65 20 70 61 67 65 20 2a 2f 0d 0a 64 69   the page */..di
6d90: 76 2e 68 65 61 64 65 72 20 7b 0d 0a 20 20 64 69  v.header {..  di
6da0: 73 70 6c 61 79 3a 20 74 61 62 6c 65 3b 0d 0a 20  splay: table;.. 
6db0: 20 77 69 64 74 68 3a 20 31 30 30 25 3b 0d 0a 20   width: 100%;.. 
6dc0: 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e   text-align: cen
6dd0: 74 65 72 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68  ter;..}..../* Th
6de0: 65 20 6d 61 69 6e 20 6d 65 6e 75 20 62 61 72 20  e main menu bar 
6df0: 74 68 61 74 20 61 70 70 65 61 72 73 20 61 74 20  that appears at 
6e00: 74 68 65 20 74 6f 70 20 6f 66 20 74 68 65 20 70  the top of the p
6e10: 61 67 65 20 62 65 6e 65 61 74 68 0d 0a 2a 2a 20  age beneath..** 
6e20: 74 68 65 20 68 65 61 64 65 72 20 2a 2f 0d 0a 64  the header */..d
6e30: 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 7b 0d 0a 20  iv.mainmenu {.. 
6e40: 20 70 61 64 64 69 6e 67 3a 20 32 70 78 20 35 70   padding: 2px 5p
6e50: 78 20 32 70 78 20 35 70 78 3b 0d 0a 20 20 66 6f  x 2px 5px;..  fo
6e60: 6e 74 2d 73 69 7a 65 3a 20 30 2e 39 65 6d 3b 0d  nt-size: 0.9em;.
6e70: 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63  .  text-align: c
6e80: 65 6e 74 65 72 3b 0d 0a 20 20 6c 65 74 74 65 72  enter;..  letter
6e90: 2d 73 70 61 63 69 6e 67 3a 20 31 70 78 3b 0d 0a  -spacing: 1px;..
6ea0: 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c    background-col
6eb0: 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 20  or: #e3e3e3;..  
6ec0: 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d  color: #000f6a;.
6ed0: 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 69  .  border: 1px i
6ee0: 6e 73 65 74 20 62 6c 61 63 6b 3b 0d 0a 7d 0d 0a  nset black;..}..
6ef0: 0d 0a 2f 2a 20 54 68 65 20 73 75 62 6d 65 6e 75  ../* The submenu
6f00: 20 62 61 72 20 74 68 61 74 20 2a 73 6f 6d 65 74   bar that *somet
6f10: 69 6d 65 73 2a 20 61 70 70 65 61 72 73 20 62 65  imes* appears be
6f20: 6c 6f 77 20 74 68 65 20 6d 61 69 6e 20 6d 65 6e  low the main men
6f30: 75 20 2a 2f 0d 0a 64 69 76 2e 73 75 62 6d 65 6e  u */..div.submen
6f40: 75 20 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20  u {..  padding: 
6f50: 32 70 78 20 35 70 78 20 32 70 78 20 35 70 78 3b  2px 5px 2px 5px;
6f60: 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30  ..  font-size: 0
6f70: 2e 39 65 6d 3b 0d 0a 20 20 74 65 78 74 2d 61 6c  .9em;..  text-al
6f80: 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20  ign: center;..  
6f90: 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72  background-color
6fa0: 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 20 63 6f  : #e3e3e3;..  co
6fb0: 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d  lor: #000f6a;..}
6fc0: 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 61  ..div.mainmenu a
6fd0: 2c 20 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 61  , div.mainmenu a
6fe0: 3a 76 69 73 69 74 65 64 2c 20 64 69 76 2e 73 75  :visited, div.su
6ff0: 62 6d 65 6e 75 20 61 2c 20 64 69 76 2e 73 75 62  bmenu a, div.sub
7000: 6d 65 6e 75 20 61 3a 76 69 73 69 74 65 64 20 7b  menu a:visited {
7010: 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 32 70 78  ..  padding: 2px
7020: 20 31 30 70 78 20 32 70 78 20 31 30 70 78 3b 0d   10px 2px 10px;.
7030: 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36  .  color: #000f6
7040: 61 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64  a;..  background
7050: 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b  -color: #e3e3e3;
7060: 0d 0a 20 20 74 65 78 74 2d 64 65 63 6f 72 61 74  ..  text-decorat
7070: 69 6f 6e 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d 0a 64  ion: none;..}..d
7080: 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 61 3a 68 6f  iv.mainmenu a:ho
7090: 76 65 72 2c 20 64 69 76 2e 73 75 62 6d 65 6e 75  ver, div.submenu
70a0: 20 61 3a 68 6f 76 65 72 20 7b 0d 0a 20 20 63 6f   a:hover {..  co
70b0: 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20  lor: #e3e3e3;.. 
70c0: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f   background-colo
70d0: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a  r: #000f6a;..}..
70e0: 0d 0a 2f 2a 20 41 6c 6c 20 70 61 67 65 20 63 6f  ../* All page co
70f0: 6e 74 65 6e 74 20 66 72 6f 6d 20 74 68 65 20 62  ntent from the b
7100: 6f 74 74 6f 6d 20 6f 66 20 74 68 65 20 6d 65 6e  ottom of the men
7110: 75 20 6f 72 20 73 75 62 6d 65 6e 75 20 64 6f 77  u or submenu dow
7120: 6e 20 74 6f 0d 0a 2a 2a 20 74 68 65 20 66 6f 6f  n to..** the foo
7130: 74 65 72 20 2a 2f 0d 0a 64 69 76 2e 63 6f 6e 74  ter */..div.cont
7140: 65 6e 74 20 7b 0d 0a 20 20 70 61 64 64 69 6e 67  ent {..  padding
7150: 3a 20 30 65 78 20 31 65 78 20 30 65 78 20 32 65  : 0ex 1ex 0ex 2e
7160: 78 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 53 6f 6d 65  x;..}..../* Some
7170: 20 70 61 67 65 73 20 68 61 76 65 20 73 65 63 74   pages have sect
7180: 69 6f 6e 20 64 69 76 69 64 65 72 73 20 2a 2f 0d  ion dividers */.
7190: 0a 64 69 76 2e 73 65 63 74 69 6f 6e 20 7b 0d 0a  .div.section {..
71a0: 20 20 6d 61 72 67 69 6e 2d 62 6f 74 74 6f 6d 3a    margin-bottom:
71b0: 20 30 70 78 3b 0d 0a 20 20 6d 61 72 67 69 6e 2d   0px;..  margin-
71c0: 74 6f 70 3a 20 31 65 6d 3b 0d 0a 20 20 70 61 64  top: 1em;..  pad
71d0: 64 69 6e 67 3a 20 31 70 78 20 31 70 78 20 31 70  ding: 1px 1px 1p
71e0: 78 20 31 70 78 3b 0d 0a 20 20 66 6f 6e 74 2d 73  x 1px;..  font-s
71f0: 69 7a 65 3a 20 31 2e 32 65 6d 3b 0d 0a 20 20 66  ize: 1.2em;..  f
7200: 6f 6e 74 2d 77 65 69 67 68 74 3a 20 62 6f 6c 64  ont-weight: bold
7210: 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d  ;..  background-
7220: 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d  color: #e3e3e3;.
7230: 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36  .  color: #000f6
7240: 61 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20  a;..}..../* The 
7250: 22 44 61 74 65 22 20 74 68 61 74 20 6f 63 63 75  "Date" that occu
7260: 72 73 20 6f 6e 20 74 68 65 20 6c 65 66 74 20 68  rs on the left h
7270: 61 6e 64 20 73 69 64 65 20 6f 66 20 74 69 6d 65  and side of time
7280: 6c 69 6e 65 73 20 2a 2f 0d 0a 64 69 76 2e 64 69  lines */..div.di
7290: 76 69 64 65 72 20 7b 0d 0a 20 20 62 61 63 6b 67  vider {..  backg
72a0: 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33  round-color: #e3
72b0: 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  e3e3;..  color: 
72c0: 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64  #000f6a;..  bord
72d0: 65 72 3a 20 31 70 78 20 23 62 62 62 62 66 66 20  er: 1px #bbbbff 
72e0: 73 6f 6c 69 64 3b 0d 0a 20 20 66 6f 6e 74 2d 73  solid;..  font-s
72f0: 69 7a 65 3a 20 31 65 6d 3b 20 66 6f 6e 74 2d 77  ize: 1em; font-w
7300: 65 69 67 68 74 3a 20 6e 6f 72 6d 61 6c 3b 0d 0a  eight: normal;..
7310: 20 20 70 61 64 64 69 6e 67 3a 20 2e 32 35 65 6d    padding: .25em
7320: 3b 0d 0a 20 20 6d 61 72 67 69 6e 3a 20 2e 32 65  ;..  margin: .2e
7330: 6d 20 30 20 2e 32 65 6d 20 30 3b 0d 0a 20 20 66  m 0 .2em 0;..  f
7340: 6c 6f 61 74 3a 20 6c 65 66 74 3b 0d 0a 20 20 63  loat: left;..  c
7350: 6c 65 61 72 3a 20 6c 65 66 74 3b 0d 0a 7d 0d 0a  lear: left;..}..
7360: 0d 0a 2f 2a 20 54 68 65 20 66 6f 6f 74 65 72 20  ../* The footer 
7370: 61 74 20 74 68 65 20 76 65 72 79 20 62 6f 74 74  at the very bott
7380: 6f 6d 20 6f 66 20 74 68 65 20 70 61 67 65 20 2a  om of the page *
7390: 2f 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 20 7b 0d  /..div.footer {.
73a0: 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30 2e  .  font-size: 0.
73b0: 38 65 6d 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a  8em;..  padding:
73c0: 20 32 70 78 20 35 70 78 20 32 70 78 20 35 70 78   2px 5px 2px 5px
73d0: 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a  ;..  text-align:
73e0: 20 63 65 6e 74 65 72 3b 0d 0a 20 20 6c 65 74 74   center;..  lett
73f0: 65 72 2d 73 70 61 63 69 6e 67 3a 20 31 70 78 3b  er-spacing: 1px;
7400: 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63  ..  background-c
7410: 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a  olor: #e3e3e3;..
7420: 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61    color: #000f6a
7430: 3b 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78  ;..  border: 1px
7440: 20 69 6e 73 65 74 20 62 6c 61 63 6b 3b 0d 0a 7d   inset black;..}
7450: 0d 0a 0d 0a 2f 2a 20 4d 61 6b 65 20 74 68 65 20  ..../* Make the 
7460: 6c 69 6e 6b 73 20 69 6e 20 74 68 65 20 66 6f 6f  links in the foo
7470: 74 65 72 20 6c 65 73 73 20 75 67 6c 79 2e 2e 2e  ter less ugly...
7480: 20 2a 2f 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 20   */..div.footer 
7490: 61 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  a { color: #000f
74a0: 36 61 3b 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74 65  6a; }..div.foote
74b0: 72 20 61 3a 6c 69 6e 6b 20 7b 20 63 6f 6c 6f 72  r a:link { color
74c0: 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 69  : #000f6a; }..di
74d0: 76 2e 66 6f 6f 74 65 72 20 61 3a 76 69 73 69 74  v.footer a:visit
74e0: 65 64 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30  ed { color: #000
74f0: 66 36 61 3b 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74  f6a; }..div.foot
7500: 65 72 20 61 3a 68 6f 76 65 72 20 7b 20 62 61 63  er a:hover { bac
7510: 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23  kground-color: #
7520: 30 30 30 66 36 61 3b 20 63 6f 6c 6f 72 3a 20 23  000f6a; color: #
7530: 65 33 65 33 65 33 3b 20 7d 0d 0a 0d 0a 2f 2a 20  e3e3e3; }..../* 
7540: 76 65 72 62 61 74 69 6d 20 62 6c 6f 63 6b 73 20  verbatim blocks 
7550: 2a 2f 0d 0a 70 72 65 2e 76 65 72 62 61 74 69 6d  */..pre.verbatim
7560: 20 7b 0d 0a 20 20 20 62 61 63 6b 67 72 6f 75 6e   {..   backgroun
7570: 64 2d 63 6f 6c 6f 72 3a 20 23 66 35 66 35 66 35  d-color: #f5f5f5
7580: 3b 0d 0a 20 20 20 70 61 64 64 69 6e 67 3a 20 30  ;..   padding: 0
7590: 2e 35 65 6d 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54  .5em;..}..../* T
75a0: 68 65 20 6c 61 62 65 6c 2f 76 61 6c 75 65 20 70  he label/value p
75b0: 61 69 72 73 20 6f 6e 20 28 66 6f 72 20 65 78 61  airs on (for exa
75c0: 6d 70 6c 65 29 20 74 68 65 20 76 69 6e 66 6f 20  mple) the vinfo 
75d0: 70 61 67 65 20 2a 2f 0d 0a 74 61 62 6c 65 2e 6c  page */..table.l
75e0: 61 62 65 6c 2d 76 61 6c 75 65 20 74 68 20 7b 0d  abel-value th {.
75f0: 0a 20 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67  .  vertical-alig
7600: 6e 3a 20 74 6f 70 3b 0d 0a 20 20 74 65 78 74 2d  n: top;..  text-
7610: 61 6c 69 67 6e 3a 20 72 69 67 68 74 3b 0d 0a 20  align: right;.. 
7620: 20 70 61 64 64 69 6e 67 3a 20 30 2e 32 65 78 20   padding: 0.2ex 
7630: 32 65 78 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 46 6f  2ex;..}..../* Fo
7640: 72 20 6d 61 72 6b 69 6e 67 20 69 6d 70 6f 72 74  r marking import
7650: 61 6e 74 20 55 49 20 65 6c 65 6d 65 6e 74 73 20  ant UI elements 
7660: 77 68 69 63 68 20 73 68 6f 75 6c 64 6e 27 74 20  which shouldn't 
7670: 62 65 0d 0a 20 20 20 6c 69 67 68 74 6c 79 20 64  be..   lightly d
7680: 69 73 6d 69 73 73 65 64 2e 20 49 20 6d 61 69 6e  ismissed. I main
7690: 6c 79 20 75 73 65 20 69 74 20 74 6f 20 6d 61 72  ly use it to mar
76a0: 6b 20 22 6e 6f 74 20 79 65 74 0d 0a 20 20 20 69  k "not yet..   i
76b0: 6d 70 6c 65 6d 65 6e 74 65 64 22 20 70 61 72 74  mplemented" part
76c0: 73 20 6f 66 20 61 20 70 61 67 65 2e 20 57 68 65  s of a page. Whe
76d0: 74 68 65 72 20 6f 72 20 6e 6f 74 20 74 6f 20 68  ther or not to h
76e0: 61 76 65 0d 0a 20 20 20 61 20 27 62 6f 72 64 65  ave..   a 'borde
76f0: 72 27 20 61 74 74 72 69 62 75 74 65 20 73 65 74  r' attribute set
7700: 20 69 73 20 61 72 67 75 61 62 6c 65 2e 20 2a 2f   is arguable. */
7710: 0d 0a 2e 61 63 68 74 75 6e 67 20 7b 0d 0a 20 20  ...achtung {..  
7720: 63 6f 6c 6f 72 3a 20 23 66 66 30 30 30 30 3b 0d  color: #ff0000;.
7730: 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20 23  .  background: #
7740: 66 66 66 66 30 30 3b 0d 0a 20 20 62 6f 72 64 65  ffff00;..  borde
7750: 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 23 66 66  r: 1px solid #ff
7760: 30 30 30 30 3b 0d 0a 7d 0d 0a 0d 0a 74 61 62 6c  0000;..}....tabl
7770: 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e 65  e.fossil_db_gene
7780: 72 69 63 5f 71 75 65 72 79 5f 76 69 65 77 20 7b  ric_query_view {
7790: 0d 0a 20 20 62 6f 72 64 65 72 2d 73 70 61 63 69  ..  border-spaci
77a0: 6e 67 3a 20 30 70 78 3b 0d 0a 20 20 62 6f 72 64  ng: 0px;..  bord
77b0: 65 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 62 6c  er: 1px solid bl
77c0: 61 63 6b 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66  ack;..}..table.f
77d0: 6f 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63  ossil_db_generic
77e0: 5f 71 75 65 72 79 5f 76 69 65 77 20 74 64 20 7b  _query_view td {
77f0: 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 32 70 78  ..  padding: 2px
7800: 20 31 65 6d 20 32 70 78 20 31 65 6d 3b 0d 0a 7d   1em 2px 1em;..}
7810: 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64  ..table.fossil_d
7820: 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f  b_generic_query_
7830: 76 69 65 77 20 74 72 20 7b 0d 0a 7d 0d 0a 74 61  view tr {..}..ta
7840: 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65  ble.fossil_db_ge
7850: 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65 77  neric_query_view
7860: 20 74 72 2e 65 76 65 6e 20 7b 0d 0a 20 20 62 61   tr.even {..  ba
7870: 63 6b 67 72 6f 75 6e 64 3a 20 23 66 66 66 66 66  ckground: #fffff
7880: 66 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73  f;..}..table.fos
7890: 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71  sil_db_generic_q
78a0: 75 65 72 79 5f 76 69 65 77 20 74 72 2e 6f 64 64  uery_view tr.odd
78b0: 20 7b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64   {..  background
78c0: 3a 20 23 65 35 65 35 65 35 3b 0d 0a 7d 0d 0a 74  : #e5e5e5;..}..t
78d0: 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67  able.fossil_db_g
78e0: 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65  eneric_query_vie
78f0: 77 20 74 72 2e 68 65 61 64 65 72 20 7b 0d 0a 20  w tr.header {.. 
7900: 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20 23 35 35   background: #55
7910: 38 31 39 35 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69  8195;..  font-si
7920: 7a 65 3a 20 31 2e 35 65 6d 3b 0d 0a 20 20 63 6f  ze: 1.5em;..  co
7930: 6c 6f 72 3a 20 23 66 66 66 66 66 66 3b 0d 0a 7d  lor: #ffffff;..}
7940: 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 6e 6f 77 69  ..</pre>..</nowi
7950: 6b 69 3e 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65  ki>..<h2><a name
7960: 3d 22 73 6f 75 72 63 65 2d 68 69 6c 69 67 68 74  ="source-hilight
7970: 22 3e 53 6f 75 72 63 65 20 68 69 67 68 6c 69 67  ">Source highlig
7980: 68 74 69 6e 67 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a  hting</a></h2>..
7990: 3c 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f  <h3>Motivation</
79a0: 68 33 3e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 61  h3>..  *  You wa
79b0: 6e 74 20 74 6f 20 68 61 76 65 20 73 6f 75 72 63  nt to have sourc
79c0: 65 20 63 6f 64 65 20 68 69 67 68 6c 69 67 68 74  e code highlight
79d0: 69 6e 67 20 66 6f 72 20 74 68 65 20 66 69 6c 65  ing for the file
79e0: 73 20 69 6e 20 79 6f 75 72 20 72 65 70 6f 73 69  s in your reposi
79f0: 74 6f 72 79 0d 0a 0d 0a 3c 68 33 3e 50 72 6f 62  tory....<h3>Prob
7a00: 6c 65 6d 3c 2f 68 33 3e 0d 0a 54 68 65 20 6d 61  lem</h3>..The ma
7a10: 69 6e 20 70 75 72 70 6f 73 65 20 6f 66 20 46 6f  in purpose of Fo
7a20: 73 73 69 6c 20 69 73 20 74 6f 20 64 6f 20 76 65  ssil is to do ve
7a30: 72 73 69 6f 6e 69 6e 67 20 74 68 65 20 73 6f 75  rsioning the sou
7a40: 72 63 65 20 63 6f 64 65 2e 20 41 6c 74 68 6f 75  rce code. Althou
7a50: 67 68 20 69 74 20 70 72 6f 76 69 64 65 73 20 61  gh it provides a
7a60: 20 73 74 61 6e 64 61 6c 6f 6e 65 20 73 65 72 76   standalone serv
7a70: 65 72 20 61 6e 64 20 6c 65 74 73 20 79 6f 75 20  er and lets you 
7a80: 6e 61 76 69 67 61 74 65 20 74 68 72 6f 75 67 68  navigate through
7a90: 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 20   the repository 
7aa0: 66 69 6c 65 73 20 61 64 64 69 74 69 6f 6e 61 6c  files additional
7ab0: 20 66 65 61 74 75 72 65 73 20 6c 69 6b 65 20 73   features like s
7ac0: 6f 75 72 63 65 20 63 6f 64 65 20 68 69 67 68 6c  ource code highl
7ad0: 69 67 68 74 69 6e 67 20 66 72 6f 6d 20 6d 79 20  ighting from my 
7ae0: 70 65 72 73 70 65 63 74 69 76 65 20 28 49 20 61  perspective (I a
7af0: 6d 20 6e 6f 74 20 61 20 64 65 76 65 6c 6f 70 65  m not a develope
7b00: 72 20 6f 66 20 46 6f 73 73 69 6c 29 20 69 73 20  r of Fossil) is 
7b10: 6f 75 74 20 6f 66 20 73 63 6f 70 65 20 66 6f 72  out of scope for
7b20: 20 61 6e 20 53 43 4d 2e 20 4a 75 73 74 20 6b 65   an SCM. Just ke
7b30: 65 70 20 74 68 65 20 55 6e 69 78 20 70 72 69 6e  ep the Unix prin
7b40: 63 69 70 6c 65 3a 20 73 6d 61 6c 6c 20 6c 69 74  ciple: small lit
7b50: 74 6c 65 20 70 72 6f 67 72 61 6d 73 20 74 68 61  tle programs tha
7b60: 74 20 64 6f 20 74 68 65 69 72 20 74 61 73 6b 20  t do their task 
7b70: 61 6e 64 20 64 6f 20 69 74 20 77 65 6c 6c 2e 0d  and do it well..
7b80: 0a 0d 0a 48 6f 77 65 76 65 72 20 74 6f 20 68 61  ...However to ha
7b90: 76 65 20 61 20 73 6f 75 72 63 65 20 63 6f 64 65  ve a source code
7ba0: 20 68 69 67 68 6c 69 67 68 74 69 6e 67 20 69 6e   highlighting in
7bb0: 20 74 68 65 20 70 72 65 73 65 6e 74 65 64 20 77   the presented w
7bc0: 65 62 20 70 61 67 65 73 20 77 6f 75 6c 64 20 73  eb pages would s
7bd0: 74 69 6c 6c 20 62 65 20 64 65 73 69 72 61 62 6c  till be desirabl
7be0: 65 2e 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69  e.....<h3>Soluti
7bf0: 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 72 65 20 61  on</h3>..There a
7c00: 72 65 20 74 77 6f 20 73 63 65 6e 61 72 69 6f 73  re two scenarios
7c10: 20 68 6f 77 20 74 6f 20 69 6d 70 6c 65 6d 65 6e   how to implemen
7c20: 74 20 73 75 63 68 20 61 20 66 65 61 74 75 72 65  t such a feature
7c30: 3a 0d 0a 20 20 20 2a 20 20 46 6f 73 73 69 6c 20  :..   *  Fossil 
7c40: 70 69 70 65 73 20 74 68 65 20 73 6f 75 72 63 65  pipes the source
7c50: 20 63 6f 64 65 20 74 68 72 6f 75 67 68 20 61 20   code through a 
7c60: 66 69 6c 74 65 72 20 62 65 66 6f 72 65 20 73 65  filter before se
7c70: 6e 64 69 6e 67 20 69 74 20 74 6f 20 74 68 65 20  nding it to the 
7c80: 62 72 6f 77 73 65 72 2e 20 54 68 65 20 66 69 6c  browser. The fil
7c90: 74 65 72 20 63 6f 75 6c 64 20 62 65 20 64 65 66  ter could be def
7ca0: 69 6e 65 64 20 61 73 20 61 20 63 6f 6e 66 69 67  ined as a config
7cb0: 75 72 61 74 69 6f 6e 20 6f 70 74 69 6f 6e 20 74  uration option t
7cc0: 6f 20 46 6f 73 73 69 6c 2e 20 4f 6e 65 20 73 6f  o Fossil. One so
7cd0: 6c 75 74 69 6f 6e 20 66 6f 72 20 74 68 69 73 20  lution for this 
7ce0: 6d 69 67 68 74 20 62 65 20 74 68 65 20 3c 61 20  might be the <a 
7cf0: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77  href="http://www
7d00: 2e 67 6e 75 2e 6f 72 67 2f 73 6f 66 74 77 61 72  .gnu.org/softwar
7d10: 65 2f 73 72 63 2d 68 69 67 68 6c 69 74 65 22 3e  e/src-highlite">
7d20: 47 4e 55 20 53 6f 75 72 63 65 20 63 6f 64 65 20  GNU Source code 
7d30: 48 69 67 68 6c 69 67 68 74 69 6e 67 3c 2f 61 3e  Highlighting</a>
7d40: 20 70 72 6f 67 72 61 6d 2e 0d 0a 20 20 20 2a 20   program...   * 
7d50: 20 55 73 65 20 61 20 4a 61 76 61 73 63 72 69 70   Use a Javascrip
7d60: 74 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 72  t library that r
7d70: 65 6e 64 65 72 73 20 74 68 65 20 63 6f 64 65 20  enders the code 
7d80: 77 69 74 68 69 6e 20 79 6f 75 72 20 62 72 6f 77  within your brow
7d90: 73 65 72 2e 20 4f 6e 65 20 73 6f 6c 75 74 69 6f  ser. One solutio
7da0: 6e 20 66 6f 72 20 74 68 69 73 20 6d 69 67 68 74  n for this might
7db0: 20 62 65 20 3c 61 20 68 72 65 66 3d 22 68 74 74   be <a href="htt
7dc0: 70 3a 2f 2f 63 6f 64 65 2e 67 6f 6f 67 6c 65 2e  p://code.google.
7dd0: 63 6f 6d 2f 70 2f 73 79 6e 74 61 78 68 69 67 68  com/p/syntaxhigh
7de0: 6c 69 67 68 74 65 72 22 3e 47 6f 6f 67 6c 65 20  lighter">Google 
7df0: 53 79 6e 74 61 78 20 48 69 67 68 6c 69 67 68 74  Syntax Highlight
7e00: 65 72 3c 2f 61 3e 0d 0a 0d 0a 49 20 65 73 74 69  er</a>....I esti
7e10: 6d 61 74 65 20 74 68 61 74 20 74 68 65 20 3c 69  mate that the <i
7e20: 3e 70 69 70 65 3c 2f 69 3e 20 73 6f 6c 75 74 69  >pipe</i> soluti
7e30: 6f 6e 20 6e 65 65 64 73 20 73 6f 6d 65 20 6d 6f  on needs some mo
7e40: 72 65 20 77 6f 72 6b 2f 20 63 6f 64 65 20 63 68  re work/ code ch
7e50: 61 6e 67 65 73 2e 20 54 68 75 73 20 49 20 61 6d  anges. Thus I am
7e60: 20 73 6f 6c 65 6c 79 20 6c 6f 6f 6b 69 6e 67 20   solely looking 
7e70: 61 74 20 74 68 65 20 4a 61 76 61 73 63 72 69 70  at the Javascrip
7e80: 74 20 73 6f 6c 75 74 69 6f 6e 2e 0d 0a 0d 0a 54  t solution.....T
7e90: 68 65 20 53 79 6e 74 61 78 48 69 67 68 6c 69 67  he SyntaxHighlig
7ea0: 68 74 65 72 20 69 73 20 61 20 6c 69 62 72 61 72  hter is a librar
7eb0: 79 20 6f 66 20 73 6f 6d 65 20 4a 61 76 61 73 63  y of some Javasc
7ec0: 72 69 70 74 20 66 69 6c 65 73 2c 20 61 20 6c 69  ript files, a li
7ed0: 74 74 6c 65 20 46 6c 61 73 68 20 61 70 70 6c 69  ttle Flash appli
7ee0: 63 61 74 69 6f 6e 20 61 6e 64 20 61 20 43 53 53  cation and a CSS
7ef0: 20 66 69 6c 65 2e 20 54 68 65 20 46 6c 61 73 68   file. The Flash
7f00: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 69 73 20   application is 
7f10: 66 6f 72 20 63 6f 70 79 69 6e 67 20 74 6f 20 63  for copying to c
7f20: 6c 69 70 62 6f 61 72 64 2c 20 70 72 69 6e 74 20  lipboard, print 
7f30: 61 6e 64 20 76 69 65 77 20 73 6f 75 72 63 65 2e  and view source.
7f40: 20 59 6f 75 20 68 61 76 65 20 74 68 65 20 6f 70   You have the op
7f50: 74 69 6f 6e 20 74 6f 20 69 6e 63 6c 75 64 65 20  tion to include 
7f60: 61 6c 6c 20 74 68 65 20 66 69 6c 65 73 20 69 6e  all the files in
7f70: 74 6f 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f  to your reposito
7f80: 72 79 20 6f 72 20 75 73 65 20 74 68 65 20 66 69  ry or use the fi
7f90: 6c 65 73 20 68 6f 73 74 65 64 20 61 74 20 47 6f  les hosted at Go
7fa0: 6f 67 6c 65 2e 20 54 68 65 20 6c 61 74 74 65 72  ogle. The latter
7fb0: 20 6d 61 79 20 6f 6e 6c 79 20 62 65 20 61 6e 20   may only be an 
7fc0: 6f 70 74 69 6f 6e 20 69 66 20 79 6f 75 20 61 72  option if you ar
7fd0: 65 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 69  e connected to i
7fe0: 6e 74 65 72 6e 65 74 20 61 6c 6c 20 74 68 65 20  nternet all the 
7ff0: 74 69 6d 65 2e 0d 0a 0d 0a 46 6f 72 20 73 79 6e  time.....For syn
8000: 74 61 78 20 68 69 67 68 6c 69 67 68 74 69 6e 67  tax highlighting
8010: 20 74 6f 20 77 6f 72 6b 20 74 68 65 20 48 65 61   to work the Hea
8020: 64 65 72 20 61 6e 64 20 46 6f 6f 74 65 72 20 74  der and Footer t
8030: 65 6d 70 6c 61 74 65 73 20 6e 65 65 64 20 74 6f  emplates need to
8040: 20 62 65 20 6d 6f 64 69 66 69 65 64 20 61 6e 64   be modified and
8050: 20 61 20 6c 69 74 74 6c 65 20 63 6f 64 65 20 63   a little code c
8060: 68 61 6e 67 65 20 68 61 73 20 74 6f 20 62 65 20  hange has to be 
8070: 61 70 70 6c 69 65 64 20 74 6f 20 74 68 65 20 46  applied to the F
8080: 6f 73 73 69 6c 20 73 6f 75 72 63 65 73 2e 0d 0a  ossil sources...
8090: 54 68 65 20 65 78 61 6d 70 6c 65 73 20 62 65 6c  The examples bel
80a0: 6f 77 20 61 73 73 75 6d 65 20 79 6f 75 20 68 61  ow assume you ha
80b0: 76 65 20 61 64 64 65 64 20 74 68 65 20 73 79 6e  ve added the syn
80c0: 74 61 78 20 68 69 67 68 6c 69 67 68 74 69 6e 67  tax highlighting
80d0: 20 6c 69 62 72 61 72 79 20 74 6f 20 79 6f 75 72   library to your
80e0: 20 72 65 70 6f 73 69 74 6f 72 79 20 69 6e 74 6f   repository into
80f0: 20 61 20 64 69 72 65 63 74 6f 72 79 20 77 77 77   a directory www
8100: 2f 73 63 72 69 70 74 73 2e 0d 0a 3c 70 3e 0d 0a  /scripts...<p>..
8110: 3c 62 3e 48 65 61 64 65 72 3c 2f 62 3e 0d 0a 3c  <b>Header</b>..<
8120: 70 72 65 3e 0d 0a 26 6c 74 3b 68 74 6d 6c 26 67  pre>..&lt;html&g
8130: 74 3b 0d 0a 20 26 6c 74 3b 68 65 61 64 26 67 74  t;.. &lt;head&gt
8140: 3b 0d 0a 20 26 6c 74 3b 74 69 74 6c 65 26 67 74  ;.. &lt;title&gt
8150: 3b 24 26 6c 74 3b 70 72 6f 6a 65 63 74 5f 6e 61  ;$&lt;project_na
8160: 6d 65 26 67 74 3b 3a 20 24 26 6c 74 3b 74 69 74  me&gt;: $&lt;tit
8170: 6c 65 26 67 74 3b 26 6c 74 3b 2f 74 69 74 6c 65  le&gt;&lt;/title
8180: 26 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b 20  &gt;.. &lt;link 
8190: 72 65 6c 3d 22 61 6c 74 65 72 6e 61 74 65 22 20  rel="alternate" 
81a0: 74 79 70 65 3d 22 61 70 70 6c 69 63 61 74 69 6f  type="applicatio
81b0: 6e 2f 72 73 73 2b 78 6d 6c 22 20 74 69 74 6c 65  n/rss+xml" title
81c0: 3d 22 52 53 53 20 46 65 65 64 22 0d 0a 20 20 20  ="RSS Feed"..   
81d0: 20 20 20 20 68 72 65 66 3d 22 24 62 61 73 65 75      href="$baseu
81e0: 72 6c 2f 74 69 6d 65 6c 69 6e 65 2e 72 73 73 22  rl/timeline.rss"
81f0: 26 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b 20  &gt;.. &lt;link 
8200: 72 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22  rel="stylesheet"
8210: 20 68 72 65 66 3d 22 24 62 61 73 65 75 72 6c 2f   href="$baseurl/
8220: 73 74 79 6c 65 2e 63 73 73 22 20 74 79 70 65 3d  style.css" type=
8230: 22 74 65 78 74 2f 63 73 73 22 0d 0a 20 20 20 20  "text/css"..    
8240: 20 20 20 6d 65 64 69 61 3d 22 73 63 72 65 65 6e     media="screen
8250: 22 26 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b  "&gt;.. &lt;link
8260: 20 72 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74   rel="stylesheet
8270: 22 20 68 72 65 66 3d 22 24 62 61 73 65 75 72 6c  " href="$baseurl
8280: 2f 64 6f 63 2f 74 69 70 2f 77 77 77 2f 53 79 6e  /doc/tip/www/Syn
8290: 74 61 78 48 69 67 68 6c 69 67 68 74 65 72 2e 63  taxHighlighter.c
82a0: 73 73 22 20 74 79 70 65 3d 22 74 65 78 74 2f 63  ss" type="text/c
82b0: 73 73 22 0d 0a 20 20 20 20 20 20 20 6d 65 64 69  ss"..       medi
82c0: 61 3d 22 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a  a="screen"&gt;..
82d0: 20 26 6c 74 3b 2f 68 65 61 64 26 67 74 3b 0d 0a   &lt;/head&gt;..
82e0: 0d 0a 2e 20 2e 20 2e 0d 0a 3c 2f 70 72 65 3e 0d  ... . ...</pre>.
82f0: 0a 3c 2f 70 3e 3c 70 3e 0d 0a 3c 62 3e 46 6f 6f  .</p><p>..<b>Foo
8300: 74 65 72 3c 2f 62 3e 0d 0a 3c 70 72 65 3e 0d 0a  ter</b>..<pre>..
8310: 26 6c 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 26 6c  &lt;/div&gt;..&l
8320: 74 3b 64 69 76 20 63 6c 61 73 73 3d 22 66 6f 6f  t;div class="foo
8330: 74 65 72 22 26 67 74 3b 0d 0a 46 6f 73 73 69 6c  ter"&gt;..Fossil
8340: 20 76 65 72 73 69 6f 6e 20 24 6d 61 6e 69 66 65   version $manife
8350: 73 74 5f 76 65 72 73 69 6f 6e 20 24 6d 61 6e 69  st_version $mani
8360: 66 65 73 74 5f 64 61 74 65 0d 0a 26 6c 74 3b 2f  fest_date..&lt;/
8370: 64 69 76 26 67 74 3b 0d 0a 26 6c 74 3b 73 63 72  div&gt;..&lt;scr
8380: 69 70 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a 61  ipt language="ja
8390: 76 61 73 63 72 69 70 74 22 20 73 72 63 3d 22 24  vascript" src="$
83a0: 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69 70 2f  baseurl/doc/tip/
83b0: 77 77 77 2f 73 63 72 69 70 74 73 2f 73 68 43 6f  www/scripts/shCo
83c0: 72 65 2e 6a 73 22 26 67 74 3b 26 6c 74 3b 2f 73  re.js"&gt;&lt;/s
83d0: 63 72 69 70 74 26 67 74 3b 0d 0a 26 6c 74 3b 73  cript&gt;..&lt;s
83e0: 63 72 69 70 74 20 6c 61 6e 67 75 61 67 65 3d 22  cript language="
83f0: 6a 61 76 61 73 63 72 69 70 74 22 20 73 72 63 3d  javascript" src=
8400: 22 24 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69  "$baseurl/doc/ti
8410: 70 2f 77 77 77 2f 73 63 72 69 70 74 73 2f 73 68  p/www/scripts/sh
8420: 42 72 75 73 68 43 70 70 2e 6a 73 22 26 67 74 3b  BrushCpp.js"&gt;
8430: 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d  &lt;/script&gt;.
8440: 0a 26 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67  .&lt;script lang
8450: 75 61 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74  uage="javascript
8460: 22 26 67 74 3b 0d 0a 64 70 2e 53 79 6e 74 61 78  "&gt;..dp.Syntax
8470: 48 69 67 68 6c 69 67 68 74 65 72 2e 43 6c 69 70  Highlighter.Clip
8480: 62 6f 61 72 64 53 77 66 20 3d 20 27 24 62 61 73  boardSwf = '$bas
8490: 65 75 72 6c 2f 64 6f 63 2f 74 69 70 2f 77 77 77  eurl/doc/tip/www
84a0: 2f 73 63 72 69 70 74 73 2f 63 6c 69 70 62 6f 61  /scripts/clipboa
84b0: 72 64 2e 73 77 66 27 3b 0d 0a 64 70 2e 53 79 6e  rd.swf';..dp.Syn
84c0: 74 61 78 48 69 67 68 6c 69 67 68 74 65 72 2e 48  taxHighlighter.H
84d0: 69 67 68 6c 69 67 68 74 41 6c 6c 28 27 63 6f 64  ighlightAll('cod
84e0: 65 27 29 3b 0d 0a 26 6c 74 3b 2f 73 63 72 69 70  e');..&lt;/scrip
84f0: 74 26 67 74 3b 0d 0a 26 6c 74 3b 2f 62 6f 64 79  t&gt;..&lt;/body
8500: 26 67 74 3b 26 6c 74 3b 2f 68 74 6d 6c 26 67 74  &gt;&lt;/html&gt
8510: 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 3c  ;..</pre>..</p><
8520: 70 3e 0d 0a 3c 62 3e 46 6f 73 73 69 6c 2f 73 72  p>..<b>Fossil/sr
8530: 63 2f 69 6e 66 6f 2e 63 3c 2f 62 3e 20 66 75 6e  c/info.c</b> fun
8540: 63 74 69 6f 6e 20 61 72 74 69 66 61 63 74 5f 70  ction artifact_p
8550: 61 67 65 0d 0a 3c 70 72 65 3e 0d 0a 69 66 28 20  age..<pre>..if( 
8560: 7a 4d 69 6d 65 3d 3d 30 20 29 7b 0d 0a 20 20 20  zMime==0 ){..   
8570: 20 40 20 26 6c 74 3b 70 72 65 20 6e 61 6d 65 3d   @ &lt;pre name=
8580: 22 63 6f 64 65 22 20 63 6c 61 73 73 3d 22 63 22  "code" class="c"
8590: 26 67 74 3b 0d 0a 20 20 20 20 40 20 25 68 28 62  &gt;..    @ %h(b
85a0: 6c 6f 62 5f 73 74 72 28 26 63 6f 6e 74 65 6e 74  lob_str(&content
85b0: 29 29 0d 0a 20 20 20 20 40 20 26 6c 74 3b 2f 70  ))..    @ &lt;/p
85c0: 72 65 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a  re&gt;..</pre>..
85d0: 3c 2f 70 3e 0d 0a 3c 68 33 3e 44 69 73 63 75 73  </p>..<h3>Discus
85e0: 73 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 20 4a  sion</h3>..The J
85f0: 61 76 61 73 63 72 69 70 74 20 73 6f 6c 75 74 69  avascript soluti
8600: 6f 6e 20 72 65 71 75 69 72 65 73 20 61 20 6d 69  on requires a mi
8610: 6e 69 6d 75 6d 20 74 6f 20 62 65 20 66 75 6c 6c  nimum to be full
8620: 79 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 46  y supported by F
8630: 6f 73 73 69 6c 2e 20 4f 66 20 63 6f 75 72 73 65  ossil. Of course
8640: 20 6d 79 20 6c 69 74 74 65 20 63 68 61 6e 67 65   my litte change
8650: 20 6f 6e 6c 79 20 61 70 70 6c 69 65 73 20 66 6f   only applies fo
8660: 72 20 43 2f 43 2b 2b 20 66 69 6c 65 73 2e 20 42  r C/C++ files. B
8670: 75 74 20 6f 6e 6c 79 20 6c 69 74 74 6c 65 20 6d  ut only little m
8680: 6f 72 65 20 77 6f 72 6b 20 6e 65 65 64 73 20 74  ore work needs t
8690: 6f 20 62 65 20 64 6f 6e 65 20 74 6f 20 67 65 74  o be done to get
86a0: 20 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 6f   the extension o
86b0: 66 20 74 68 65 20 66 69 6c 65 20 61 20 67 75 65  f the file a gue
86c0: 73 73 20 74 68 65 20 66 69 6c 65 20 74 79 70 65  ss the file type
86d0: 2e 0d 0a 0d 0a 54 68 65 20 70 69 70 65 20 73 6f  .....The pipe so
86e0: 6c 75 74 69 6f 6e 20 77 6f 75 6c 64 20 61 6c 73  lution would als
86f0: 6f 20 62 65 20 6e 69 63 65 20 62 75 74 20 77 6f  o be nice but wo
8700: 75 6c 64 20 70 72 6f 62 61 62 6c 79 20 6e 65 65  uld probably nee
8710: 64 20 73 6f 6d 65 20 6d 6f 72 65 20 77 6f 72 6b  d some more work
8720: 20 74 68 61 6e 20 74 68 69 73 20 6c 69 74 74 6c   than this littl
8730: 65 20 70 61 74 63 68 2e 0d 0a 0d 0a 3c 68 33 3e  e patch.....<h3>
8740: 20 3c 61 20 6e 61 6d 65 3d 22 77 69 6e 33 32 64   <a name="win32d
8750: 65 76 22 3e 48 6f 77 20 74 6f 20 70 72 65 70 61  ev">How to prepa
8760: 72 65 20 79 6f 75 72 20 57 69 6e 64 6f 77 73 20  re your Windows 
8770: 58 50 20 46 6f 73 73 69 6c 20 64 65 76 65 6c 6f  XP Fossil develo
8780: 70 6d 65 6e 74 20 45 6e 76 69 72 6f 6e 6d 65 6e  pment Environmen
8790: 74 3c 2f 68 33 3e 0d 0a 3c 68 34 3e 4d 69 6e 47  t</h3>..<h4>MinG
87a0: 57 2b 4e 53 49 53 2f 57 69 58 3c 2f 68 34 3e 0d  W+NSIS/WiX</h4>.
87b0: 0a 3c 68 35 3e 53 65 74 75 70 20 54 43 4c 3c 2f  .<h5>Setup TCL</
87c0: 68 35 3e 0d 0a 3c 68 35 3e 53 65 74 75 70 20 4d  h5>..<h5>Setup M
87d0: 69 6e 47 57 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47  inGW</h5>..<h5>G
87e0: 65 74 74 69 6e 67 20 4e 53 49 53 20 57 69 6e 64  etting NSIS Wind
87f0: 6f 77 73 20 70 61 63 6b 61 67 69 6e 67 20 74 6f  ows packaging to
8800: 6f 6c 20 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47 65  ol </h5>..<h5>Ge
8810: 74 74 69 6e 67 20 46 6f 73 73 69 6c 20 73 6f 75  tting Fossil sou
8820: 72 63 65 20 63 6f 64 65 3c 2f 68 35 3e 0d 0a 3c  rce code</h5>..<
8830: 68 35 3e 42 75 69 6c 64 20 74 68 65 20 63 6f 64  h5>Build the cod
8840: 65 20 77 69 74 68 20 4d 61 6b 65 66 69 6c 65 2e  e with Makefile.
8850: 77 69 6e 33 32 20 3c 2f 68 35 3e 0d 0a 0d 0a 3c  win32 </h5>....<
8860: 68 34 3e 56 69 73 75 61 6c 20 53 74 75 64 69 6f  h4>Visual Studio
8870: 20 45 78 70 72 65 73 73 20 32 30 30 38 2b 57 69   Express 2008+Wi
8880: 58 3c 2f 68 34 3e 0d 0a 3c 68 35 3e 53 65 74 75  X</h4>..<h5>Setu
8890: 70 20 54 43 4c 3c 2f 68 35 3e 0d 0a 3c 68 35 3e  p TCL</h5>..<h5>
88a0: 53 65 74 75 70 20 56 53 32 30 30 38 3c 2f 68 35  Setup VS2008</h5
88b0: 3e 0d 0a 3c 68 35 3e 47 65 74 74 69 6e 67 20 57  >..<h5>Getting W
88c0: 69 58 20 57 69 6e 64 6f 77 73 20 4d 53 49 20 74  iX Windows MSI t
88d0: 6f 6f 6c 20 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47  ool </h5>..<h5>G
88e0: 65 74 74 69 6e 67 20 46 6f 73 73 69 6c 20 73 6f  etting Fossil so
88f0: 75 72 63 65 20 63 6f 64 65 3c 2f 68 35 3e 0d 0a  urce code</h5>..
8900: 3c 68 35 3e 42 75 69 6c 64 20 74 68 65 20 63 6f  <h5>Build the co
8910: 64 65 20 77 69 74 68 20 4d 61 6b 65 66 69 6c 65  de with Makefile
8920: 2e 77 69 6e 33 32 3c 2f 68 35 3e 0d 0a 0d 0a 3c  .win32</h5>....<
8930: 61 20 6e 61 6d 65 3d 22 77 79 73 69 77 69 67 22  a name="wysiwig"
8940: 3e 3c 68 32 3e 4a 61 76 61 73 63 72 69 70 74 20  ><h2>Javascript 
8950: 48 54 4d 4c 20 57 59 53 49 57 59 47 20 65 64 69  HTML WYSIWYG edi
8960: 74 6f 72 20 63 6f 6e 74 72 6f 6c 3c 2f 68 32 3e  tor control</h2>
8970: 3c 2f 61 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61  </a>..<h3>Motiva
8980: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20  tion</h3>..  *  
8990: 59 6f 75 20 77 61 6e 74 20 74 6f 20 65 64 69 74  You want to edit
89a0: 20 74 68 65 20 77 69 6b 69 20 70 61 67 65 73 20   the wiki pages 
89b0: 77 69 74 68 20 61 20 6e 69 63 65 20 65 64 69 74  with a nice edit
89c0: 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 2c 20 69 6e  or component, in
89d0: 73 74 65 61 64 20 6f 66 20 75 73 69 6e 67 20 70  stead of using p
89e0: 6c 61 69 6e 20 48 54 4d 4c 2e 0d 0a 0d 0a 3c 68  lain HTML.....<h
89f0: 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a  3>Problem</h3>..
8a00: 46 6f 73 73 69 6c 20 62 79 20 69 74 73 65 6c 66  Fossil by itself
8a10: 20 64 6f 65 73 6e 27 74 20 73 75 70 70 6f 72 74   doesn't support
8a20: 20 69 74 2e 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75   it.....<h3>Solu
8a30: 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 72 65  tion</h3>..There
8a40: 20 61 72 65 20 70 75 72 65 20 6a 61 76 61 73 63   are pure javasc
8a50: 72 69 70 74 20 65 64 69 74 6f 72 20 63 6f 6d 70  ript editor comp
8a60: 6f 6e 65 6e 74 73 20 74 68 61 74 20 63 61 6e 20  onents that can 
8a70: 62 65 20 75 73 65 64 20 66 6f 72 20 74 68 69 73  be used for this
8a80: 20 74 61 73 6b 2e 0d 0a 54 68 65 20 73 6f 75 72   task...The sour
8a90: 63 65 20 66 6f 72 20 74 68 65 20 65 64 69 74 6f  ce for the edito
8aa0: 72 20 63 6f 6d 70 6f 6e 65 6e 74 20 69 73 20 61  r component is a
8ab0: 64 64 65 64 20 74 6f 20 74 68 65 20 72 65 70 6f  dded to the repo
8ac0: 73 69 74 6f 72 79 2e 20 54 68 65 20 68 74 6d 6c  sitory. The html
8ad0: 20 68 65 61 64 65 72 20 6f 72 20 66 6f 6f 74 65   header or foote
8ae0: 72 20 69 73 20 70 72 65 70 61 72 65 64 20 74 6f  r is prepared to
8af0: 20 69 6e 63 6c 75 64 65 20 61 20 6a 61 76 61 73   include a javas
8b00: 63 72 69 70 74 20 66 69 6c 65 20 61 6e 64 2f 6f  cript file and/o
8b10: 72 20 61 20 43 53 53 2e 0d 0a 3c 62 72 3e 0d 0a  r a CSS...<br>..
8b20: 54 68 65 73 65 20 74 77 6f 20 74 69 70 73 20 61  These two tips a
8b30: 72 65 20 66 72 6f 6d 20 74 68 65 20 6d 61 69 6c  re from the mail
8b40: 69 6e 67 20 6c 69 73 74 3a 0d 0a 52 65 6e 65 20  ing list:..Rene 
8b50: 64 65 20 5a 77 61 72 74 20 33 30 2e 20 4f 63 74  de Zwart 30. Oct
8b60: 2e 20 32 30 30 39 0d 0a 0d 0a 3c 61 20 6e 61 6d  . 2009....<a nam
8b70: 65 3d 22 74 69 6e 79 6d 63 65 22 3e 3c 68 34 3e  e="tinymce"><h4>
8b80: 54 69 6e 79 4d 43 45 3c 2f 68 34 3e 3c 2f 61 3e  TinyMCE</h4></a>
8b90: 0d 0a 3c 70 3e 0d 0a 53 6f 75 72 63 65 3a 20 3c  ..<p>..Source: <
8ba0: 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 74  a href="http://t
8bb0: 69 6e 79 6d 63 65 2e 6d 6f 78 69 65 63 6f 64 65  inymce.moxiecode
8bc0: 2e 63 6f 6d 2f 22 3e 20 54 69 6e 79 4d 43 45 20  .com/"> TinyMCE 
8bd0: 3c 2f 61 3e 0d 0a 3c 2f 70 3e 0d 0a 3c 68 35 3e  </a>..</p>..<h5>
8be0: 20 45 78 61 6d 70 6c 65 3c 2f 68 35 3e 0d 0a 3c   Example</h5>..<
8bf0: 70 72 65 20 63 6c 61 73 73 3d 22 76 65 72 62 61  pre class="verba
8c00: 74 69 6d 22 3e 0d 0a 20 20 20 20 6d 6b 64 69 72  tim">..    mkdir
8c10: 20 74 69 6e 79 0d 0a 20 20 20 20 6d 6b 64 69 72   tiny..    mkdir
8c20: 20 74 69 6e 79 2f 6a 61 76 61 73 63 72 69 70 74   tiny/javascript
8c30: 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 6e 65 77  ..    fossil new
8c40: 20 74 69 6e 79 6d 63 65 2e 66 73 6c 0d 0a 20 20   tinymce.fsl..  
8c50: 20 20 66 6f 73 73 69 6c 20 75 69 20 74 69 6e 79    fossil ui tiny
8c60: 6d 63 65 2e 66 73 6c 20 7b 63 6f 6e 66 69 67 75  mce.fsl {configu
8c70: 72 65 20 74 68 65 20 70 72 6f 6a 65 63 74 29 0d  re the project).
8c80: 0a 20 20 20 20 64 6f 77 6e 6c 6f 61 64 20 74 69  .    download ti
8c90: 6e 79 6d 63 65 0d 0a 20 20 20 20 75 6e 7a 69 70  nymce..    unzip
8ca0: 20 69 6e 20 74 69 6e 79 2f 6a 61 76 61 73 63 72   in tiny/javascr
8cb0: 69 70 74 0d 0a 20 20 20 20 63 64 20 74 69 6e 79  ipt..    cd tiny
8cc0: 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 6f 70 65  ..    fossil ope
8cd0: 6e 20 2e 2e 2f 74 69 6e 79 6d 63 65 2e 66 73 6c  n ../tinymce.fsl
8ce0: 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 61 64 64  ..    fossil add
8cf0: 20 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20   javascript..   
8d00: 20 66 6f 73 73 69 6c 20 63 6f 6d 6d 69 74 20 2d   fossil commit -
8d10: 6d 20 22 61 64 64 65 64 20 74 69 6d 79 6d 63 65  m "added timymce
8d20: 20 74 6f 20 74 68 65 20 70 72 6f 6a 65 63 74 22   to the project"
8d30: 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 75 69 0d  ..    fossil ui.
8d40: 0a 3c 2f 70 72 65 3e 0d 0a 53 65 6c 65 63 74 20  .</pre>..Select 
8d50: 61 64 6d 69 6e 2f 68 65 61 64 65 72 73 20 61 64  admin/headers ad
8d60: 64 20 61 66 74 65 72 20 74 68 65 20 26 6c 74 3b  d after the &lt;
8d70: 2f 6c 69 6e 6b 26 67 74 3b 0d 0a 3c 70 72 65 20  /link&gt;..<pre 
8d80: 63 6c 61 73 73 3d 22 76 65 72 62 61 74 69 6d 22  class="verbatim"
8d90: 3e 0d 0a 20 20 20 26 6c 74 3b 73 63 72 69 70 74  >..   &lt;script
8da0: 20 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76 61   type="text/java
8db0: 73 63 72 69 70 74 22 0d 0a 20 20 20 20 20 73 72  script"..     sr
8dc0: 63 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61  c="/doc/tip/java
8dd0: 73 63 72 69 70 74 2f 74 69 6e 79 6d 63 65 2f 6a  script/tinymce/j
8de0: 73 63 72 69 70 74 73 2f 74 69 6e 79 5f 6d 63 65  scripts/tiny_mce
8df0: 2f 74 69 6e 79 5f 6d 63 65 2e 6a 73 22 26 67 74  /tiny_mce.js"&gt
8e00: 3b 0d 0a 20 20 20 26 6c 74 3b 2f 73 63 72 69 70  ;..   &lt;/scrip
8e10: 74 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a 61  t&gt;..</pre>..a
8e20: 6e 64 20 73 61 76 65 0d 0a 73 65 6c 65 63 74 20  nd save..select 
8e30: 61 64 6d 69 6e 2f 66 6f 6f 74 65 72 20 61 64 64  admin/footer add
8e40: 20 61 62 6f 76 65 20 74 68 65 20 66 69 72 73 74   above the first
8e50: 20 6c 69 6e 65 0d 0a 3c 70 72 65 20 63 6c 61 73   line..<pre clas
8e60: 73 3d 22 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20  s="verbatim">.. 
8e70: 26 6c 74 3b 73 63 72 69 70 74 20 74 79 70 65 3d  &lt;script type=
8e80: 27 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74  'text/javascript
8e90: 27 26 67 74 3b 0d 0a 20 20 76 61 72 20 6d 20 3d  '&gt;..  var m =
8ea0: 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65   document.getEle
8eb0: 6d 65 6e 74 73 42 79 54 61 67 4e 61 6d 65 28 27  mentsByTagName('
8ec0: 74 65 78 74 61 72 65 61 27 29 0d 0a 20 20 76 61  textarea')..  va
8ed0: 72 20 6c 20 3d 20 6d 2e 6c 65 6e 67 74 68 0d 0a  r l = m.length..
8ee0: 20 20 76 61 72 20 6e 0d 0a 20 20 66 6f 72 28 76    var n..  for(v
8ef0: 61 72 20 69 3d 30 20 3b 69 20 26 6c 74 3b 20 6c  ar i=0 ;i &lt; l
8f00: 3b 69 2b 2b 29 7b 0d 0a 20 20 20 20 3c 6e 6f 77  ;i++){..    <now
8f10: 69 6b 69 3e 6e 20 3d 20 6d 5b 69 5d 2e 6e 61 6d  iki>n = m[i].nam
8f20: 65 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 20 20 20 20  e</nowiki>..    
8f30: 69 66 28 20 27 63 6f 6d 6d 65 6e 74 27 20 3d 3d  if( 'comment' ==
8f40: 20 6e 20 7c 7c 20 27 63 6d 61 70 70 6e 64 27 20   n || 'cmappnd' 
8f50: 3d 3d 20 6e 20 7c 7c 20 22 77 22 20 20 3d 3d 20  == n || "w"  == 
8f60: 6e 29 7b 0d 0a 20 20 20 20 20 20 20 20 74 69 6e  n){..        tin
8f70: 79 4d 43 45 2e 69 6e 69 74 28 7b 20 6d 6f 64 65  yMCE.init({ mode
8f80: 20 3a 20 27 65 78 61 63 74 27 20 2c 20 65 6c 65   : 'exact' , ele
8f90: 6d 65 6e 74 73 20 3a 20 6e 2c 20 74 68 65 6d 65  ments : n, theme
8fa0: 3a 20 27 61 64 76 61 6e 63 65 64 27 0d 0a 20 20  : 'advanced'..  
8fb0: 20 20 20 20 20 20 2c 77 69 64 74 68 20 3a 20 27        ,width : '
8fc0: 39 30 25 27 20 7d 20 29 3b 0d 0a 20 20 20 20 7d  90%' } );..    }
8fd0: 0d 0a 20 20 7d 0d 0a 20 26 6c 74 3b 2f 73 63 72  ..  }.. &lt;/scr
8fe0: 69 70 74 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d  ipt&gt;..</pre>.
8ff0: 0a 0d 0a 0d 0a 3c 61 20 6e 61 6d 65 3d 22 6d 61  .....<a name="ma
9000: 72 6b 69 74 75 70 22 3e 3c 68 33 3e 6d 61 72 6b  rkitup"><h3>mark
9010: 69 74 75 70 21 3c 2f 68 33 3e 3c 2f 61 3e 0d 0a  itup!</h3></a>..
9020: 3c 70 3e 0d 0a 53 6f 75 72 63 65 3a 20 3c 61 20  <p>..Source: <a 
9030: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 6d 61 72  href="http://mar
9040: 6b 69 74 75 70 2e 6a 61 79 73 61 6c 76 61 74 2e  kitup.jaysalvat.
9050: 63 6f 6d 2f 68 6f 6d 65 2f 22 3e 20 4d 61 72 6b  com/home/"> Mark
9060: 69 74 75 70 20 3c 2f 61 3e 0d 0a 3c 2f 70 3e 0d  itup </a>..</p>.
9070: 0a 3c 68 35 3e 20 45 78 61 6d 70 6c 65 3c 2f 68  .<h5> Example</h
9080: 35 3e 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22  5>..<pre class="
9090: 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 20  verbatim">..    
90a0: 6d 6b 64 69 72 20 6d 61 72 6b 69 74 75 70 0d 0a  mkdir markitup..
90b0: 20 20 20 20 6d 6b 64 69 72 20 6d 61 72 6b 69 74      mkdir markit
90c0: 75 70 2f 6a 61 76 61 73 63 72 69 70 74 0d 0a 20  up/javascript.. 
90d0: 20 20 20 66 6f 73 73 69 6c 20 6e 65 77 20 6d 61     fossil new ma
90e0: 72 6b 69 74 75 70 2e 66 73 6c 0d 0a 20 20 20 20  rkitup.fsl..    
90f0: 66 6f 73 73 69 6c 20 75 69 20 6d 61 72 6b 69 74  fossil ui markit
9100: 75 70 2e 66 73 6c 20 7b 63 6f 6e 66 69 67 75 72  up.fsl {configur
9110: 65 20 74 68 65 20 70 72 6f 6a 65 63 74 29 0d 0a  e the project)..
9120: 20 20 20 20 64 6f 77 6e 6c 6f 61 64 20 6d 61 72      download mar
9130: 6b 69 74 75 70 20 61 6e 64 20 6a 71 75 65 72 79  kitup and jquery
9140: 0d 0a 20 20 20 20 75 6e 7a 69 70 20 69 6e 20 6d  ..    unzip in m
9150: 61 72 6b 69 74 75 70 2f 6a 61 76 61 73 63 72 69  arkitup/javascri
9160: 70 74 2c 20 63 64 20 6c 61 74 65 73 74 2c 20 6d  pt, cd latest, m
9170: 76 20 2a 20 2e 2e 2c 20 72 6d 64 69 72 20 6c 61  v * .., rmdir la
9180: 74 65 73 74 0d 0a 20 20 20 20 63 6f 70 79 20 6a  test..    copy j
9190: 71 75 65 72 79 2d 2e 2e 2e 2e 6a 73 20 74 6f 20  query-....js to 
91a0: 6a 61 76 61 73 63 72 69 70 74 2f 6a 71 75 65 72  javascript/jquer
91b0: 79 2e 6a 73 0d 0a 20 20 20 20 63 64 20 6d 61 72  y.js..    cd mar
91c0: 6b 69 74 75 70 0d 0a 20 20 20 20 66 6f 73 73 69  kitup..    fossi
91d0: 6c 20 6f 70 65 6e 20 2e 2e 2f 6d 61 72 6b 69 74  l open ../markit
91e0: 75 70 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73  up.fsl..    foss
91f0: 69 6c 20 61 64 64 20 6a 61 76 61 73 63 72 69 70  il add javascrip
9200: 74 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 63 6f  t..    fossil co
9210: 6d 6d 69 74 20 2d 6d 20 22 61 64 64 65 64 20 6d  mmit -m "added m
9220: 61 72 6b 69 74 75 70 20 61 6e 20 6a 71 75 65 72  arkitup an jquer
9230: 79 20 74 6f 20 74 68 65 20 70 72 6f 6a 65 63 74  y to the project
9240: 22 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 75 69  "..    fossil ui
9250: 0d 0a 3c 2f 70 72 65 3e 0d 0a 73 65 6c 65 63 74  ..</pre>..select
9260: 20 61 64 6d 69 6e 2f 68 65 61 64 65 72 73 20 61   admin/headers a
9270: 64 64 20 61 66 74 65 72 20 74 68 65 20 3c 2f 6c  dd after the </l
9280: 69 6e 6b 3e 20 70 75 74 0d 0a 3c 70 72 65 20 63  ink> put..<pre c
9290: 6c 61 73 73 3d 22 76 65 72 62 61 74 69 6d 22 3e  lass="verbatim">
92a0: 0d 0a 20 20 20 20 26 6c 74 3b 6c 69 6e 6b 20 72  ..    &lt;link r
92b0: 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22 20  el="stylesheet" 
92c0: 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22 20  type="text/css" 
92d0: 68 72 65 66 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a  href="/doc/tip/j
92e0: 61 76 61 73 63 72 69 70 74 2f 6d 61 72 6b 69 74  avascript/markit
92f0: 75 70 2f 73 6b 69 6e 73 2f 6d 61 72 6b 69 74 75  up/skins/markitu
9300: 70 2f 73 74 79 6c 65 2e 63 73 73 22 20 2f 26 67  p/style.css" /&g
9310: 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 6c 69 6e 6b  t;..    &lt;link
9320: 20 72 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74   rel="stylesheet
9330: 22 20 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73  " type="text/css
9340: 22 20 68 72 65 66 3d 22 2f 64 6f 63 2f 74 69 70  " href="/doc/tip
9350: 2f 6a 61 76 61 73 63 72 69 70 74 2f 6d 61 72 6b  /javascript/mark
9360: 69 74 75 70 2f 73 65 74 73 2f 64 65 66 61 75 6c  itup/sets/defaul
9370: 74 2f 73 74 79 6c 65 2e 63 73 73 22 20 2f 26 67  t/style.css" /&g
9380: 74 3b 0d 0a 0d 0a 20 20 20 20 26 6c 74 3b 73 63  t;....    &lt;sc
9390: 72 69 70 74 20 74 79 70 65 3d 22 74 65 78 74 2f  ript type="text/
93a0: 6a 61 76 61 73 63 72 69 70 74 22 20 73 72 63 3d  javascript" src=
93b0: 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63  "/doc/tip/javasc
93c0: 72 69 70 74 2f 6a 71 75 65 72 79 2e 6a 73 22 26  ript/jquery.js"&
93d0: 67 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 2f 73 63  gt;..    &lt;/sc
93e0: 72 69 70 74 26 67 74 3b 0d 0a 20 20 20 20 26 6c  ript&gt;..    &l
93f0: 74 3b 73 63 72 69 70 74 20 74 79 70 65 3d 22 74  t;script type="t
9400: 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74 22 20  ext/javascript" 
9410: 73 72 63 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a 61  src="/doc/tip/ja
9420: 76 61 73 63 72 69 70 74 2f 6d 61 72 6b 69 74 75  vascript/markitu
9430: 70 2f 6a 71 75 65 72 79 2e 6d 61 72 6b 69 74 75  p/jquery.markitu
9440: 70 2e 6a 73 22 26 67 74 3b 0d 0a 20 20 20 20 26  p.js"&gt;..    &
9450: 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a  lt;/script&gt;..
9460: 3c 2f 70 72 65 3e 0d 0a 0d 0a 61 6e 64 20 73 61  </pre>....and sa
9470: 76 65 0d 0a 73 65 6c 65 63 74 20 61 64 6d 69 6e  ve..select admin
9480: 2f 66 6f 6f 74 65 72 20 61 64 64 20 61 62 6f 76  /footer add abov
9490: 65 20 74 68 65 20 66 69 72 73 74 20 6c 69 6e 65  e the first line
94a0: 0d 0a 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22  ....<pre class="
94b0: 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 20  verbatim">..    
94c0: 26 6c 74 3b 73 63 72 69 70 74 20 74 79 70 65 3d  &lt;script type=
94d0: 27 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74  'text/javascript
94e0: 27 26 67 74 3b 0d 0a 20 20 20 20 20 20 76 61 72  '&gt;..      var
94f0: 20 6d 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65   m = document.ge
9500: 74 45 6c 65 6d 65 6e 74 73 42 79 54 61 67 4e 61  tElementsByTagNa
9510: 6d 65 28 27 74 65 78 74 61 72 65 61 27 29 0d 0a  me('textarea')..
9520: 20 20 20 20 20 20 76 61 72 20 6c 20 3d 20 6d 2e        var l = m.
9530: 6c 65 6e 67 74 68 0d 0a 20 20 20 20 20 20 76 61  length..      va
9540: 72 20 6e 0d 0a 20 20 20 20 20 20 3c 6e 6f 77 69  r n..      <nowi
9550: 6b 69 3e 76 61 72 20 6d 79 53 65 74 74 69 6e 67  ki>var mySetting
9560: 73 20 3d 20 7b 0d 0a 09 6e 61 6d 65 53 70 61 63  s = {...nameSpac
9570: 65 3a 20 20 20 20 20 20 20 22 68 74 6d 6c 22 2c  e:       "html",
9580: 20 2f 2f 20 55 73 65 66 75 6c 20 74 6f 20 70 72   // Useful to pr
9590: 65 76 65 6e 74 20 6d 75 6c 74 69 2d 69 6e 73 74  event multi-inst
95a0: 61 6e 63 65 73 20 43 53 53 20 63 6f 6e 66 6c 69  ances CSS confli
95b0: 63 74 0d 0a 09 6f 6e 53 68 69 66 74 45 6e 74 65  ct...onShiftEnte
95c0: 72 3a 20 20 20 20 7b 6b 65 65 70 44 65 66 61 75  r:    {keepDefau
95d0: 6c 74 3a 66 61 6c 73 65 2c 20 72 65 70 6c 61 63  lt:false, replac
95e0: 65 57 69 74 68 3a 27 26 6c 74 3b 62 72 20 2f 26  eWith:'&lt;br /&
95f0: 67 74 3b 5c 6e 27 7d 2c 0d 0a 09 6f 6e 43 74 72  gt;\n'},...onCtr
9600: 6c 45 6e 74 65 72 3a 20 20 20 20 20 7b 6b 65 65  lEnter:     {kee
9610: 70 44 65 66 61 75 6c 74 3a 66 61 6c 73 65 2c 20  pDefault:false, 
9620: 6f 70 65 6e 57 69 74 68 3a 27 5c 6e 26 6c 74 3b  openWith:'\n&lt;
9630: 70 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74  p&gt;', closeWit
9640: 68 3a 27 26 6c 74 3b 2f 70 26 67 74 3b 5c 6e 27  h:'&lt;/p&gt;\n'
9650: 7d 2c 0d 0a 09 6f 6e 54 61 62 3a 20 20 20 20 20  },...onTab:     
9660: 20 20 20 20 20 20 7b 6b 65 65 70 44 65 66 61 75        {keepDefau
9670: 6c 74 3a 66 61 6c 73 65 2c 20 6f 70 65 6e 57 69  lt:false, openWi
9680: 74 68 3a 27 20 20 20 20 20 27 7d 2c 0d 0a 09 6d  th:'     '},...m
9690: 61 72 6b 75 70 53 65 74 3a 20 20 5b 0d 0a 09 20  arkupSet:  [... 
96a0: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
96b0: 67 20 31 27 2c 20 6b 65 79 3a 27 31 27 2c 20 6f  g 1', key:'1', o
96c0: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 31 28  penWith:'&lt;h1(
96d0: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
96e0: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
96f0: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
9700: 68 31 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h1&gt;', placeHo
9710: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
9720: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
9730: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
9740: 67 20 32 27 2c 20 6b 65 79 3a 27 32 27 2c 20 6f  g 2', key:'2', o
9750: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 32 28  penWith:'&lt;h2(
9760: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
9770: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
9780: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
9790: 68 32 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h2&gt;', placeHo
97a0: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
97b0: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
97c0: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
97d0: 67 20 33 27 2c 20 6b 65 79 3a 27 33 27 2c 20 6f  g 3', key:'3', o
97e0: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 33 28  penWith:'&lt;h3(
97f0: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
9800: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
9810: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
9820: 68 33 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h3&gt;', placeHo
9830: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
9840: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
9850: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
9860: 67 20 34 27 2c 20 6b 65 79 3a 27 34 27 2c 20 6f  g 4', key:'4', o
9870: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 34 28  penWith:'&lt;h4(
9880: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
9890: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
98a0: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
98b0: 68 34 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h4&gt;', placeHo
98c0: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
98d0: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
98e0: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
98f0: 67 20 35 27 2c 20 6b 65 79 3a 27 35 27 2c 20 6f  g 5', key:'5', o
9900: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 35 28  penWith:'&lt;h5(
9910: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
9920: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
9930: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
9940: 68 35 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h5&gt;', placeHo
9950: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
9960: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
9970: 20 20 20 7b 6e 61 6d 65 3a 27 48 65 61 64 69 6e     {name:'Headin
9980: 67 20 36 27 2c 20 6b 65 79 3a 27 36 27 2c 20 6f  g 6', key:'6', o
9990: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 68 36 28  penWith:'&lt;h6(
99a0: 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61  !( class="[![Cla
99b0: 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20  ss]!]")!)&gt;', 
99c0: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f  closeWith:'&lt;/
99d0: 68 36 26 67 74 3b 27 2c 20 70 6c 61 63 65 48 6f  h6&gt;', placeHo
99e0: 6c 64 65 72 3a 27 59 6f 75 72 20 74 69 74 6c 65  lder:'Your title
99f0: 20 68 65 72 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20   here...' },... 
9a00: 20 20 20 7b 6e 61 6d 65 3a 27 50 61 72 61 67 72     {name:'Paragr
9a10: 61 70 68 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  aph', openWith:'
9a20: 26 6c 74 3b 70 28 21 28 20 63 6c 61 73 73 3d 22  &lt;p(!( class="
9a30: 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29 26  [![Class]!]")!)&
9a40: 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a  gt;', closeWith:
9a50: 27 26 6c 74 3b 2f 70 26 67 74 3b 27 20 20 7d 2c  '&lt;/p&gt;'  },
9a60: 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 74 6f  ...    {separato
9a70: 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  r:'-------------
9a80: 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61  --' },...    {na
9a90: 6d 65 3a 27 42 6f 6c 64 27 2c 20 6b 65 79 3a 27  me:'Bold', key:'
9aa0: 42 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c  B', openWith:'&l
9ab0: 74 3b 73 74 72 6f 6e 67 26 67 74 3b 27 2c 20 63  t;strong&gt;', c
9ac0: 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 73  loseWith:'&lt;/s
9ad0: 74 72 6f 6e 67 26 67 74 3b 27 20 7d 2c 0d 0a 09  trong&gt;' },...
9ae0: 20 20 20 20 7b 6e 61 6d 65 3a 27 49 74 61 6c 69      {name:'Itali
9af0: 63 27 2c 20 6b 65 79 3a 27 49 27 2c 20 6f 70 65  c', key:'I', ope
9b00: 6e 57 69 74 68 3a 27 26 6c 74 3b 65 6d 26 67 74  nWith:'&lt;em&gt
9b10: 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26  ;', closeWith:'&
9b20: 6c 74 3b 2f 65 6d 26 67 74 3b 27 20 20 7d 2c 0d  lt;/em&gt;'  },.
9b30: 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 53 74 72  ..    {name:'Str
9b40: 6f 6b 65 20 74 68 72 6f 75 67 68 27 2c 20 6b 65  oke through', ke
9b50: 79 3a 27 53 27 2c 20 6f 70 65 6e 57 69 74 68 3a  y:'S', openWith:
9b60: 27 26 6c 74 3b 64 65 6c 26 67 74 3b 27 2c 20 63  '&lt;del&gt;', c
9b70: 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 64  loseWith:'&lt;/d
9b80: 65 6c 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 20 20  el&gt;' },...   
9b90: 20 7b 73 65 70 61 72 61 74 6f 72 3a 27 2d 2d 2d   {separator:'---
9ba0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c  ------------' },
9bb0: 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 55 6c  ...    {name:'Ul
9bc0: 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74  ', openWith:'&lt
9bd0: 3b 75 6c 26 67 74 3b 5c 6e 27 2c 20 63 6c 6f 73  ;ul&gt;\n', clos
9be0: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 75 6c 26 67  eWith:'&lt;/ul&g
9bf0: 74 3b 5c 6e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b  t;\n' },...    {
9c00: 6e 61 6d 65 3a 27 4f 6c 27 2c 20 6f 70 65 6e 57  name:'Ol', openW
9c10: 69 74 68 3a 27 26 6c 74 3b 6f 6c 26 67 74 3b 5c  ith:'&lt;ol&gt;\
9c20: 6e 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26  n', closeWith:'&
9c30: 6c 74 3b 2f 6f 6c 26 67 74 3b 5c 6e 27 20 7d 2c  lt;/ol&gt;\n' },
9c40: 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 4c 69  ...    {name:'Li
9c50: 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74  ', openWith:'&lt
9c60: 3b 6c 69 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57  ;li&gt;', closeW
9c70: 69 74 68 3a 27 26 6c 74 3b 2f 6c 69 26 67 74 3b  ith:'&lt;/li&gt;
9c80: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 73 65 70 61  ' },...    {sepa
9c90: 72 61 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d  rator:'---------
9ca0: 2d 2d 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20  ------' },...   
9cb0: 20 7b 6e 61 6d 65 3a 27 50 69 63 74 75 72 65 27   {name:'Picture'
9cc0: 2c 20 6b 65 79 3a 27 50 27 2c 20 72 65 70 6c 61  , key:'P', repla
9cd0: 63 65 57 69 74 68 3a 27 26 6c 74 3b 69 6d 67 20  ceWith:'&lt;img 
9ce0: 73 72 63 3d 22 5b 21 5b 53 6f 75 72 63 65 3a 21  src="[![Source:!
9cf0: 3a 68 74 74 70 3a 2f 2f 5d 21 5d 22 20 61 6c 74  :http://]!]" alt
9d00: 3d 22 5b 21 5b 41 6c 74 65 72 6e 61 74 69 76 65  ="[![Alternative
9d10: 20 74 65 78 74 5d 21 5d 22 20 2f 26 67 74 3b 27   text]!]" /&gt;'
9d20: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
9d30: 27 4c 69 6e 6b 27 2c 20 6b 65 79 3a 27 4c 27 2c  'Link', key:'L',
9d40: 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 61   openWith:'&lt;a
9d50: 20 68 72 65 66 3d 22 5b 21 5b 4c 69 6e 6b 3a 21   href="[![Link:!
9d60: 3a 68 74 74 70 3a 2f 2f 5d 21 5d 22 28 21 28 20  :http://]!]"(!( 
9d70: 74 69 74 6c 65 3d 22 5b 21 5b 54 69 74 6c 65 5d  title="[![Title]
9d80: 21 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f  !]")!)&gt;', clo
9d90: 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 61 26 67  seWith:'&lt;/a&g
9da0: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72  t;', placeHolder
9db0: 3a 27 59 6f 75 72 20 74 65 78 74 20 74 6f 20 6c  :'Your text to l
9dc0: 69 6e 6b 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20  ink...' },...   
9dd0: 20 7b 73 65 70 61 72 61 74 6f 72 3a 27 2d 2d 2d   {separator:'---
9de0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c  ------------' },
9df0: 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 43 6c  ...    {name:'Cl
9e00: 65 61 6e 27 2c 20 72 65 70 6c 61 63 65 57 69 74  ean', replaceWit
9e10: 68 3a 66 75 6e 63 74 69 6f 6e 28 68 29 20 7b 20  h:function(h) { 
9e20: 72 65 74 75 72 6e 20 68 2e 73 65 6c 65 63 74 69  return h.selecti
9e30: 6f 6e 2e 72 65 70 6c 61 63 65 28 2f 26 6c 74 3b  on.replace(/&lt;
9e40: 28 2e 2a 3f 29 26 67 74 3b 2f 67 2c 20 22 22 29  (.*?)&gt;/g, "")
9e50: 20 7d 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d   } },...    {nam
9e60: 65 3a 27 50 72 65 76 69 65 77 27 2c 20 63 61 6c  e:'Preview', cal
9e70: 6c 3a 27 70 72 65 76 69 65 77 27 2c 20 63 6c 61  l:'preview', cla
9e80: 73 73 4e 61 6d 65 3a 27 70 72 65 76 69 65 77 27  ssName:'preview'
9e90: 20 7d 0d 0a 09 5d 0d 0a 20 20 20 20 20 20 7d 0d   }...]..      }.
9ea0: 0a 20 20 20 20 20 20 66 6f 72 28 76 61 72 20 69  .      for(var i
9eb0: 3d 30 20 3b 69 20 3c 20 6c 3b 69 2b 2b 29 7b 0d  =0 ;i < l;i++){.
9ec0: 0a 09 6e 20 3d 20 6d 5b 69 5d 2e 6e 61 6d 65 0d  ..n = m[i].name.
9ed0: 0a 09 69 66 28 20 27 63 6f 6d 6d 65 6e 74 27 20  ..if( 'comment' 
9ee0: 3d 3d 20 6e 20 7c 7c 20 27 63 6d 61 70 70 6e 64  == n || 'cmappnd
9ef0: 27 20 3d 3d 20 6e 20 7c 7c 20 22 77 22 20 20 3d  ' == n || "w"  =
9f00: 3d 20 6e 29 7b 0d 0a 09 20 20 20 20 6d 5b 69 5d  = n){...    m[i]
9f10: 2e 69 64 20 3d 20 6e 3c 2f 6e 6f 77 69 6b 69 3e  .id = n</nowiki>
9f20: 0d 0a 09 20 20 20 20 24 28 64 6f 63 75 6d 65 6e  ...    $(documen
9f30: 74 29 2e 72 65 61 64 79 28 66 75 6e 63 74 69 6f  t).ready(functio
9f40: 6e 28 29 20 7b 0d 0a 09 20 20 20 20 20 20 24 28  n() {...      $(
9f50: 22 23 22 20 2b 20 6e 29 2e 6d 61 72 6b 49 74 55  "#" + n).markItU
9f60: 70 28 6d 79 53 65 74 74 69 6e 67 73 29 3b 0d 0a  p(mySettings);..
9f70: 09 20 20 20 20 7d 29 3b 0d 0a 09 7d 0d 0a 20 20  .    });...}..  
9f80: 20 20 20 20 7d 0d 0a 20 20 20 20 26 6c 74 3b 2f      }..    &lt;/
9f90: 73 63 72 69 70 74 26 67 74 3b 0d 0a 20 3c 2f 70  script&gt;.. </p
9fa0: 72 65 3e 0d 0a 0a 5a 20 35 63 62 62 32 36 65 64  re>...Z 5cbb26ed
9fb0: 34 30 66 36 66 61 39 61 65 37 62 33 39 63 37 39  40f6fa9ae7b39c79
9fc0: 37 65 66 61 33 33 30 37 0a                       7efa3307.