expose the SVN_REVISION in mapnik-config

This commit is contained in:
Dane Springmeyer 2010-11-17 19:43:03 +00:00
parent a17c91c647
commit 4060f80841
2 changed files with 9 additions and 2 deletions

View file

@ -33,7 +33,7 @@ if env['SYSTEM_FONTS']:
fonts = os.path.normpath(env['SYSTEM_FONTS'])
else:
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']
regex = 'boost_regex%s' % env['BOOST_APPEND']
@ -68,6 +68,7 @@ other_libs='%(other_libs)s'
other_includes='%(other_includes)s'
fonts='%(fonts)s'
input_plugins='%(input_plugins)s'
svn_revision='%(svn_revision)s'
''' % locals()

View file

@ -14,6 +14,7 @@ Known values for OPTION are:
--input-plugins print default input plugins directory
--help display this help and exit
-v --version output version information
--svn-revision output svn revision information
EOF
exit $1
@ -63,6 +64,11 @@ while test $# -gt 0; do
exit 0
;;
--svn-revision)
echo ${svn_revision}
exit 0
;;
--help)
usage 0
;;