diff options
author | lloyd <[email protected]> | 2015-01-07 11:47:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-07 11:47:09 +0000 |
commit | 0c5301a6dde28b22257415c74e0d1491228fafb6 (patch) | |
tree | bec7b4f06b39134b72407617304355d2fc34fe71 /src/scripts/install.py | |
parent | 1fe84e0451a6a37783a67bf191c0cdec70c86baf (diff) |
The pkgconfig file should be installed relative to the library dir
rather than the base destdir. Pointed out by hexchain in github pull 38.
Version the docdir with the full version incl patch.
Diffstat (limited to 'src/scripts/install.py')
-rwxr-xr-x | src/scripts/install.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripts/install.py b/src/scripts/install.py index daa4a928e..5b6be7ce4 100755 --- a/src/scripts/install.py +++ b/src/scripts/install.py @@ -18,7 +18,7 @@ import sys if 'dont_write_bytecode' in sys.__dict__: sys.dont_write_bytecode = True -from botan_version import release_major, release_minor +from botan_version import release_major, release_minor, release_patch import combine_relnotes def parse_command_line(args): @@ -52,9 +52,9 @@ def parse_command_line(args): install_group.add_option('--versioned-include-dir', metavar='SUFFIX_DIR', default='botan-%d.%d' % (release_major, release_minor), help='Name of versioned include dir') - install_group.add_option('--doc-dir-suffix', metavar='SUFFIX', - default='-%d.%d' % (release_major, release_minor), - help='Set optional suffix on doc dir (default %default)') + install_group.add_option('--doc-dir-suffix', metavar='V', + default='-%d.%d.%d' % (release_major, release_minor, release_patch), + help='Set optional suffix on doc dir (default \'%default\')') install_group.add_option('--umask', metavar='MASK', default='022', help='Umask to set (default %default)') @@ -194,7 +194,7 @@ def main(args = None): os.path.join(bin_dir, os.path.basename(build_vars['botan_config']))) if 'botan_pkgconfig' in build_vars: - pkgconfig_dir = os.path.join(options.destdir, options.pkgconfigdir) + pkgconfig_dir = os.path.join(options.destdir, options.libdir, options.pkgconfigdir) makedirs(pkgconfig_dir) shutil.copyfile(build_vars['botan_pkgconfig'], os.path.join(pkgconfig_dir, os.path.basename(build_vars['botan_pkgconfig']))) |