Changes

Tweak glob patterns
Line 105: Line 105:  
'''include'''
 
'''include'''
   −
Files to include to implementations.
+
[[#Glob patterns|Glob pattern]] for files to include to implementations.
   −
  include = <glob-mask> [, ...]
+
  include = <glob-pattern> [, ...]
 
  −
A glob-mask could be two types:
  −
 
  −
* mask doesn't contain '/' symbol, will be applied only to file names (not names of sub-directories within parent directory)
  −
* mask contains '/' symbol, will be applied to the full file path (relative to the root) thus could affect several files
      
By default all files will be included.
 
By default all files will be included.
Line 118: Line 113:  
'''exclude'''
 
'''exclude'''
   −
Files to exclude from implementations. Uses the same format like ''include'' parameter.
+
[[#Glob patterns|Glob pattern]] for files to exclude from implementations.
   −
  exclude = <glob-mask> [, ...]
+
  exclude = <glob-pattern> [, ...]
    
'''langs'''
 
'''langs'''
Line 127: Line 122:     
   langs = <lang-name> [, ...]
 
   langs = <lang-name> [, ...]
   include[<lang-name>] = <glob-mask> [, ...]
+
   include[<lang-name>] = <glob-pattern> [, ...]
   exclude[<lang-name>] = <glob-mask> [, ...]
+
   exclude[<lang-name>] = <glob-pattern> [, ...]
    
If language is mentioned in ''langs'' list but doesn't have ''include''/''exclude'' options, regular rule is assumed i.e. include all files by default.
 
If language is mentioned in ''langs'' list but doesn't have ''include''/''exclude'' options, regular rule is assumed i.e. include all files by default.
Line 224: Line 219:     
Shell command, executed from service root directory. If this command starts to get complicated, you should move it to a script and just set this attribute to the command to run the script. By default 0sugar just bundle entirely service directory excluding temporary files. If source parameter exists in this section, command will be executed within extracted directory of downloaded tarball.
 
Shell command, executed from service root directory. If this command starts to get complicated, you should move it to a script and just set this attribute to the command to run the script. By default 0sugar just bundle entirely service directory excluding temporary files. If source parameter exists in this section, command will be executed within extracted directory of downloaded tarball.
 +
 +
== Glob patterns ==
 +
 +
A pattern could be two types:
 +
 +
* doesn't contain ''/'' symbol, will be applied only to file names (not names of sub-directories within parent directory)
 +
* contains ''/'' symbol, will be applied to the full file path (relative to the root) thus could affect several files
 +
 +
Only these pattern symbols are allowed:
 +
 +
* ''*'' matches everything except directory separator
 +
* ''?'' matches any single character except directory separator
 +
* ''**'' matches everything including directory separator
    
== Sub services ==
 
== Sub services ==