build: install input config files into doc dir

Users using binary packages don't have obvious access to them, so this
seems like a good idea.
This commit is contained in:
wm4 2014-10-11 16:16:02 +02:00 committed by Alessandro Ghedini
parent 9b8b2933f3
commit 58b511d947
1 changed files with 5 additions and 0 deletions

View File

@ -447,6 +447,11 @@ def build(ctx):
install_path = ctx.env.BINDIR, install_path = ctx.env.BINDIR,
**cprog_kwargs **cprog_kwargs
) )
for f in ['example.conf', 'input.conf', 'mplayer-input.conf', \
'restore-old-bindings.conf']:
import os
ctx.install_as(os.path.join(ctx.env.DOCDIR, f),
os.path.join('etc/', f))
build_shared = ctx.dependency_satisfied('libmpv-shared') build_shared = ctx.dependency_satisfied('libmpv-shared')
build_static = ctx.dependency_satisfied('libmpv-static') build_static = ctx.dependency_satisfied('libmpv-static')