expose the SVN_REVISION in mapnik-config
This commit is contained in:
parent
a17c91c647
commit
4060f80841
2 changed files with 9 additions and 2 deletions
|
@ -33,7 +33,7 @@ if env['SYSTEM_FONTS']:
|
||||||
fonts = os.path.normpath(env['SYSTEM_FONTS'])
|
fonts = os.path.normpath(env['SYSTEM_FONTS'])
|
||||||
else:
|
else:
|
||||||
fonts = os.path.normpath(install_prefix + '/' + env['LIBDIR_SCHEMA'] + env['LIB_DIR_NAME'] + '/fonts')
|
fonts = os.path.normpath(install_prefix + '/' + env['LIBDIR_SCHEMA'] + env['LIB_DIR_NAME'] + '/fonts')
|
||||||
|
svn_revision = env['SVN_REVISION']
|
||||||
|
|
||||||
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
|
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
|
||||||
regex = 'boost_regex%s' % env['BOOST_APPEND']
|
regex = 'boost_regex%s' % env['BOOST_APPEND']
|
||||||
|
@ -68,6 +68,7 @@ other_libs='%(other_libs)s'
|
||||||
other_includes='%(other_includes)s'
|
other_includes='%(other_includes)s'
|
||||||
fonts='%(fonts)s'
|
fonts='%(fonts)s'
|
||||||
input_plugins='%(input_plugins)s'
|
input_plugins='%(input_plugins)s'
|
||||||
|
svn_revision='%(svn_revision)s'
|
||||||
''' % locals()
|
''' % locals()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ Known values for OPTION are:
|
||||||
--fonts print default fonts directory
|
--fonts print default fonts directory
|
||||||
--input-plugins print default input plugins directory
|
--input-plugins print default input plugins directory
|
||||||
--help display this help and exit
|
--help display this help and exit
|
||||||
-v --version output version information
|
-v --version output version information
|
||||||
|
--svn-revision output svn revision information
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
exit $1
|
exit $1
|
||||||
|
@ -63,6 +64,11 @@ while test $# -gt 0; do
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--svn-revision)
|
||||||
|
echo ${svn_revision}
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
--help)
|
--help)
|
||||||
usage 0
|
usage 0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue