changeset 17:15107282d9eb

Redefined SYSCONFDIR installation path variable so that it appends APPNAME. * Although this deviates from GNU standards this relatively minor change makes it easier to write paths that are portable to Windows.
author M. George Hansen <technopolitica@gmail.com>
date Thu, 09 Jun 2011 21:40:51 -1000
parents 927f2cf75357
children 2e2d6d9009a3
files waf_paths.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/waf_paths.py	Thu Jun 09 21:35:19 2011 -1000
+++ b/waf_paths.py	Thu Jun 09 21:40:51 2011 -1000
@@ -8,7 +8,6 @@
     'bindir'        : ('user executables', '${EXEC_PREFIX}/bin'),
     'sbindir'       : ('system admin executables', '${EXEC_PREFIX}/sbin'),
     'libexecdir'    : ('program executables', '${EXEC_PREFIX}/libexec'),
-    'sysconfdir'    : ('read-only single-machine data', '${PREFIX}/etc'),
     'sharedstatedir': ('modifiable architecture-independent data',
                        '${PREFIX}/com'),
     'localstatedir' : ('modifiable single-machine data', '${PREFIX}/var'),
@@ -17,11 +16,13 @@
     'oldincludedir' : ('C header files for non-gcc', '/usr/include'),
     'datarootdir'   : ('read-only arch.-independent data root',
                        '${PREFIX}/share'),
-    # datadir definition deviates from GNU by appending the ${APPNAME}, but it
-    # makes the install script simpler since we don't have to redefine install
-    # paths on Windows.
+    # datadir and sysconfdir definitions deviate from GNU standards by
+    # appending the ${APPNAME}, but it makes the install script simpler since
+    # we don't have to redefine install paths on Windows.
     'datadir'       : ('read-only architecture-independent data',
                        '${DATAROOTDIR}/${APPNAME}'),
+    'sysconfdir'    : ('read-only single-machine data',
+                       '${PREFIX}/etc/${APPNAME}'),
     'infodir'       : ('info documentation', '${DATAROOTDIR}/info'),
     'localedir'     : ('locale-dependent data', '${DATAROOTDIR}/locale'),
     'mandir'        : ('man documentation', '${DATAROOTDIR}/man'),