Rombobjörn

summaryrefslogtreecommitdiff
path: root/comfignat.gpr.gp
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-10-09 21:09:42 +0200
committerBjörn Persson <bjorn@rombobjörn.se>2013-10-09 21:09:42 +0200
commit0a7d36c71e387b5c2fa95fb14685ea274e6d5aca (patch)
tree00d9dfb7b377f7edc2ddb1da2f4d54568d5810cf /comfignat.gpr.gp
parent47462f14c4f9fae7684c8eb1cd08a6f127a31dea (diff)
Renamed runtimedir to runstatedir.
A new variable named runstatedir has been defined in the GNU Coding Standards. Comfignat had runtimedir for the same purpose. The name is now changed to keep Comfignat compatible with the GNU Coding Standards. This change also improves the documentation of runstatedir and lockdir.
Diffstat (limited to 'comfignat.gpr.gp')
-rw-r--r--comfignat.gpr.gp38
1 files changed, 19 insertions, 19 deletions
diff --git a/comfignat.gpr.gp b/comfignat.gpr.gp
index 22fab2d..4c9d8eb 100644
--- a/comfignat.gpr.gp
+++ b/comfignat.gpr.gp
@@ -136,6 +136,25 @@ abstract project Comfignat is
Logdir := Localstatedir & "/log";
#end if;
+ -- Small files that take part in describing the state of the system and that
+ -- exist only while the program is running, such as process identifier files
+ -- and transient Unix-domain sockets, shall be sought and created under
+ -- Runstatedir. (This is NOT the place for temporary files in general.)
+ #if Runstatedir'Defined then
+ Runstatedir := $Runstatedir;
+ #else
+ Runstatedir := "/run";
+ #end if;
+
+ -- Lock files that are used to prevent multiple programs from trying to
+ -- access a device or other resource at the same time shall be sought and
+ -- created under Lockdir.
+ #if Lockdir'Defined then
+ Lockdir := $Lockdir;
+ #else
+ Lockdir := Runstatedir & "/lock";
+ #end if;
+
-- Source files to be used in the compilation of software using libraries
-- are under Includedir.
#if Includedir'Defined then
@@ -203,25 +222,6 @@ abstract project Comfignat is
Miscdocdir := Datarootdir & "/doc";
#end if;
- -- Small files that take part in describing the state of the system, and
- -- that exist only while the program is running, such as process identifier
- -- files and transient Unix-domain sockets, shall be created under
- -- Runtimedir. (This is NOT the place for temporary files in general.)
- #if Runtimedir'Defined then
- Runtimedir := $Runtimedir;
- #else
- Runtimedir := "/run";
- #end if;
-
- -- Lock files that are used to prevent multiple programs from trying to
- -- access a device or other resource at the same time shall be created under
- -- Lockdir.
- #if Lockdir'Defined then
- Lockdir := $Lockdir;
- #else
- Lockdir := Runtimedir & "/lock";
- #end if;
-
--
-- The following variables are for use in attributes to control where