Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / rtadvd.aug
1 (*
2 Module: Rtadvd
3   Parses rtadvd configuration file
4
5 Author: Matt Dainty <matt@bodgit-n-scarper.com>
6
7 About: Reference
8        - man 5 rtadvd.conf
9
10 Each line represents a record consisting of a number of ':'-separated fields
11 the first of which is the name or identifier for the record. The name can
12 optionally be split by '|' and each subsequent value is considered an alias
13 of the first. Records can be split across multiple lines with '\'.
14
15 *)
16
17 module Rtadvd =
18   autoload xfm
19
20   let empty  = Util.empty
21
22   (* field must not contain ':' unless quoted *)
23   let cfield = /[a-zA-Z0-9-]+(#?@|#[0-9]+|=("[^"]*"|[^:"]*))?/
24
25   let lns = ( empty | Getcap.comment | Getcap.record cfield )*
26
27   let filter = incl "/etc/rtadvd.conf"
28              . Util.stdexcl
29
30   let xfm = transform lns filter
31
32 (* Local Variables: *)
33 (* mode: caml       *)
34 (* End:             *)