This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch master in repository game-data-packager.
commit ef6f9b6b93ba221a1bf7b2b99956dc101c232672 Author: Simon McVittie <s...@debian.org> Date: Fri Oct 14 00:26:15 2016 +0100 Makefile: automatically pick up the right directories for the distro --- Makefile | 7 +++++-- tools/configure.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 14b95a3..f878df5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ -bindir := /usr/games +bindir := /usr/bin libdir := /usr/lib datadir := /usr/share gamedatadir := ${datadir} + +PYTHON := python3 +$(eval $(shell PYTHONPATH=. ${PYTHON} tools/configure.py)) + pkgdatadir := ${gamedatadir}/game-data-packager runtimedir := ${gamedatadir}/game-data-packager-runtime distro := $(shell lsb_release -si) -PYTHON := python3 PYFLAKES3 := $(shell if [ -x /usr/bin/pyflakes3 ] ; then echo pyflakes3 ; \ elif [ -x /usr/bin/pyflakes3k ] ; then echo pyflakes3k ; \ elif [ -x /usr/bin/python3-pyflakes ] ; then echo python3-pyflakes ; \ diff --git a/tools/configure.py b/tools/configure.py new file mode 100755 index 0000000..9c7dd43 --- /dev/null +++ b/tools/configure.py @@ -0,0 +1,32 @@ +#!/usr/bin/python3 +# encoding=utf-8 +# +# Copyright © 2016 Simon McVittie <s...@debian.org> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# You can find the GPL license text on a Debian system under +# /usr/share/common-licenses/GPL-2. + +import os +import sys + +from game_data_packager.packaging import (get_native_packaging_system) + +def main(): + print(get_native_packaging_system().substitute(''' + bindir := ${bindir} + datadir := ${datadir} + gamedatadir := ${assets} + ''', 'unknown-package-name')) + +if __name__ == '__main__': + main() + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits