j  <� ht://Dig: Configuration file format -- Variable Expansion � 0  

2 Configuration file format -- Variable Expansion



W ht://Dig Copyright © 1995-2002 The ht://Dig Group
8 Please see the file COPYING for license information.




 Attribute values can contain@ references to other attributes. This is done similarly to howA Perl, Bourne shell, and Makefiles use variables. The variablesB that are referenced will be expanded when the variable is used,@ not when it is defined. This means that attributes don't have2 to be defined in the order that they are used. 



5 Example attribute reference in an attribute value:

' database_base: ${database_dir}/htdig


 or 

% database_base: $database_dir/htdig


? Many default values use the attribute expansion mechanism to. make configuration easier and more generic.



< In addition to variable expansion, it is also possible to? include the contents of a file as the value of an attribute.: This is done by putting the filename in backquotes (`).? Within the backquotes, variable expansion will still work so9 that files can be specified relative to some path. The? backquotes and the filename will be replaced by the contents: of the file if it exists. All whitespace (spaces, tabs,? newlines, etc) in the file are condensed to one space before@ the substitution takes place. The following are some examples( of the use of the backquoting scheme:

  
2 start_url: `${common_dir}/starting_points`
- limit_urls_to: `${common_dir}/limit_list`


+Last modified: $Date: 2002/01/27 05:33:20 $   ,      X      = D@(q ss8`addWords      M M M     M M MPt uH)SYNONYMCompaq C++ V6.2-016 xObject v(i~Object v P dvPpvicomparepv  tvvhCopyv    ( 4v  w0wh Serialize0w  0w@wph Deserialize@w  @wx operator<<PwPdStringPw 9`xw w` xlengthxoperator char *x operator<<x operator<<w(hSynonymwC # # # # # # # #(w x@xg~Synonym@x@ # # # # # # #Lx Hy0fgetWordsW $ $ $ $ $ $ $ $ $P f openIndex3 # # #؀ ppyecreateDBpy # # # #8  # #  # # # # # # # ]a<  ]l ]o #   oo I I I I # # # ]l #( #  #  # # Ly T0 xCount+ METAPHONECompaq C++ V6.2-016 xObjectЃm~ObjectЃ P P mcompare   $0HmCopy0    ( 4d l Serialize  l Deserialize  iString :`( D` xlengthxoperator char *x operator<<x operator<<`l Metaphone`B z y y y y y y y, Ѕl ~Metaphone(     @4 pXk generateKey                        h     %ܔ 1      h : 6X 6 E 2  2  2  L S S ` k0 n[ p$       ` ` XjaddWord       JM JM JM     JU JU JUD8 P+ SUBSTRINGCompaq C++ V6.2-016 xObject@p~Object@ P Ppcompare  pCopy    ( 4Ԕ ,PPp SerializeP  P`@p Deserialize`  `po Substringp0      $ ̕ho ~Substring(     @4 pngetWords|            \ Xn openIndex  m generateKey  maddWord  + ENDINGSDBCompaq C++ V6.2-016 xObjectxw~Object P Phwcompare   0wCopy     ( 4T Кv SerializeК  Кv Deserialize  x operator<<hqString 9` 4`xoperator char *x operator<<x operator<<PPvcreateDBP j+ j+ j+ k+       + + + +I + IA IA IA IA + 4 L0t mungeWord :, :, :, R R R& y }    =,;Q y, y, C,< Z ` f l rPu createRoot +  + + +  + + + + + + + + + + + + + , , , I I ,X F , g  a  a  a , 0 1 2 a  a  a  , g  +< +) %, Y %, [T$ l t readRules + + + + +  + + + + + y  + I I I + + + ++ +0L؟ T r expandWord , , , , , , , , ,, , , , , g* a4 a4 , IO IO IO , ,X |S IS , I^ , IY I^ I^ ,<   , ,   g+& , , ,0@  x operator[] xCount- SUFFIXENTRYCompaq C++ V6.2-016 xObjectвx~Objectв P P 0{compare   $0zCopy0    ( 4d z Serialize  z Deserialize  yString +`( D`xoperator char *x operator<<x operator<<`Pz SuffixEntry`9         Xy ~SuffixEntryR 0    w w w w w,$  xparse   A B ?  K L & ; ; ; RL L N L , ; ; ;DP Xl*WORDLISTCompaq C++ V6.2-016xHtIsStrictWordCharxHtStripPunctuation xObject{~Object P ĸPиcompareи  ԸhCopy    ( 4 l Serialize   Deserialize  String `ع ` xlengthxoperator char *pWordListpH          d ~WordList?       Lļ 0P WordTempFilePK & (      0 BadWordFile             $   `  (Word       =        Y                X  p@~ MarkScanned@"    h~MarkGone"    @~ MarkModified@"    h~Flush\ X  X  ^  g  k  _  q  } valid_word  +  +  ,  0  { 3  6  p p  6  :  6 G C  6   ?  6   6  H  4 4p || OpenTempFileE        LX| CloseTempFile !  $\ WordReference .pH dp|~WordReference; /     4 H*DEFAULTSCompaq C++ V6.2-016*@__init_DEFAULTS_CC_1_defaults@ l 3&__fini_DEFAULTS_CC_1_defaults_00000000 H H- DOCUMENTREFCompaq C++ V6.2-016x HtIsWordCharxHtIsStrictWordCharxHtStripPunctuation xObject ~Object  P dPp8comparep  tCopy    ( 4  0 Serialize0  0@ Deserialize@  @x operator<<PStringP `x ` xlengthxoperator char *x operator<<x Start_Get xCount` DocumentRefI + + + + + + + + +  p ~DocumentRefT +0 + + +h a& a& a& a& a&44 0H Serialize D, D,                                                                 4#  4#         8       8       8       8 S $    A A A A   A A A A \ S $    A A A A   A A A A \       8      R 8       X @ Deserialize , , , , |  , , ,  _- 7- 5- 5- \- 7#'  7#'  7#'  -00D P0  DocHead/ + + + . .