Blame lenses/afs_cellalias.aug
|
Packit Service |
a2ae7a |
(*
|
|
Packit Service |
a2ae7a |
Module: AFS_cellalias
|
|
Packit Service |
a2ae7a |
Parses AFS configuration file CellAlias
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
Author: Pat Riehecky <riehecky@fnal.gov>
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Reference
|
|
Packit Service |
a2ae7a |
This lens is targeted at the OpenAFS CellAlias file
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Lens Usage
|
|
Packit Service |
a2ae7a |
Sample usage of this lens in augtool
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
* Add a CellAlias for fnal.gov/files to fnal-files
|
|
Packit Service |
a2ae7a |
> set /files/usr/vice/etc/CellAlias/target[99] fnal.gov/files
|
|
Packit Service |
a2ae7a |
> set /files/usr/vice/etc/CellAlias/target[99]/linkname fnal-files
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: License
|
|
Packit Service |
a2ae7a |
This file is licensed under the LGPL v2+, like the rest of Augeas.
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
module AFS_cellalias =
|
|
Packit Service |
a2ae7a |
autoload xfm
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(************************************************************************
|
|
Packit Service |
a2ae7a |
* Group: USEFUL PRIMITIVES
|
|
Packit Service |
a2ae7a |
*************************************************************************)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Group: Comments and empty lines *)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: eol *)
|
|
Packit Service |
a2ae7a |
let eol = Util.eol
|
|
Packit Service |
a2ae7a |
(* View: comment *)
|
|
Packit Service |
a2ae7a |
let comment = Util.comment
|
|
Packit Service |
a2ae7a |
(* View: empty *)
|
|
Packit Service |
a2ae7a |
let empty = Util.empty
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Group: separators *)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: space
|
|
Packit Service |
a2ae7a |
* Separation between key and value
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
let space = Util.del_ws_spc
|
|
Packit Service |
a2ae7a |
let target = /[^ \t\n#]+/
|
|
Packit Service |
a2ae7a |
let linkname = Rx.word
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(************************************************************************
|
|
Packit Service |
a2ae7a |
* Group: ENTRIES
|
|
Packit Service |
a2ae7a |
*************************************************************************)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: entry *)
|
|
Packit Service |
a2ae7a |
let entry = [ label "target" . store target . space . [ label "linkname" . store linkname . eol ] ]
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: lns *)
|
|
Packit Service |
a2ae7a |
let lns = (empty | comment | entry)*
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let xfm = transform lns (incl "/usr/vice/etc/CellAlias")
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Local Variables: *)
|
|
Packit Service |
a2ae7a |
(* mode: caml *)
|
|
Packit Service |
a2ae7a |
(* End: *)
|