home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / scrconf / yast2_groups.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  913 b   |  41 lines

  1. /**
  2.  * File:    yast2_groups.scr
  3.  * Summary:    Agent for reading yast2 groups .desktop files
  4.  * Author:    Michal Svec <msvec@suse.cz>
  5.  * Access:    read only
  6.  *
  7.  * Example:
  8.  *   Dir(.yast2.groups)
  9.  *   (["lan", "modem", "isdn", ...])
  10.  **
  11.  *   Read(.yast2.groups.misc)
  12.  *   ("3")
  13.  *
  14.  * $Id: yast2_groups.scr 26716 2005-12-22 07:46:40Z visnov $
  15.  */
  16. .yast2.groups
  17.  
  18. `ag_ini(
  19.     `IniAgent( [ "/usr/share/applications/YaST2/groups/*.desktop" ],
  20.     $[
  21.         "options"    : [ ],
  22.         "comments"    : [ "^[ \t]*[;#].*", ";.*", "\\{[^}]*\\}", "^[ \t]*$" ],
  23.         "sections"    : [
  24.         $[ "begin" : [
  25.             "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*",
  26.             "[%s]",
  27.         ]],
  28.         ],
  29.         "params" : [
  30.         $[ "match" : [
  31.             "^[ \t]*([^=]*[^ \t=])[ \t]*=[ \t]*(.*[^ \t]|)[ \t]*$" ,
  32.             "%s=%s",
  33.         ]],
  34.         ],
  35. //        "rewrite" : [
  36. //        [ "/usr/share/applications/YaST2/(.*)\.desktop", "/usr/share/applications/YaST2/%s.desktop" ],
  37. //        ],
  38.     ]
  39.     )
  40. )
  41.