[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RMO root properties



=>      
=> The Resource Hierarchy Reference Guide says:
=>  >
=>  > 5.1.1  Root and Location properties
=>  > 
=>  > A user often needs to specify the location of external files relative
=>  > to a system object, so the properties Root and Location frequently
=>  > appear in rmo's. The Location property value is a path indicating the
=>  > location of an object with respect to a root directory, indicated by
=>  > the Root property value. Possible values for Root are:
=>  > 
=>  >    o app : [...]
=>  > 
=>  >    o user : [...]
=>  > 
=>  >    o abs : the root directory is ignored. The system considers the
=>  >      value of Location an absolute path and looks for the object in
=>  >      that directory.
=>  >
=> 
=> I don't understand what exactly is the semantics of the `abs' value.
=> Does it means that I have to specify an absolout system path, i.e. one
=> that starts with `/' under UNIX, 

Yes, a UNIX path. Either starting from /, or relative to the current directory
(at the time the file is loaded => a rather impredictable value).

=> or can I also give a  path that is
=> relative to the rdb file that specifies the Root property? 

No, you cannot. And nothing in the documentation suggests that this feature is
available. Due to technical reasons (use of X software today, and Intrinsics
compliance in the future) I think that this cannot be supported.

=> 
=> This is what I would like to have, because when moving a directory
=> that contains .rdb files, I don't want to have to modify all their
=> Location properties. What I need is a Root property value `local', or
=> `rel', that avoids this.
=> 
=> Or is there an other way to do that?

Maybe you can use cpp to configure your resource files, setting location
resources according to the directory where your software is to be installed.

Also, the #include directive will be allowed in resource files to have other
resource files loaded as soon as Centaur is compiled using X11R5 libraries.

Vincent