X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fpython-vars.sh;h=6a21a93301b4e65a1b514e4cf6e25d20ed97d97b;hb=74017b56cbadf675de023f7bee6a0b18877c0a74;hp=56c2b619fc1408c744c1fc442cc41031ea2417b2;hpb=119d65e9e06ffc6e8997d3ba386429db6cc2ef27;p=platform%2Fupstream%2Fautomake.git diff --git a/t/python-vars.sh b/t/python-vars.sh old mode 100755 new mode 100644 index 56c2b61..6a21a93 --- a/t/python-vars.sh +++ b/t/python-vars.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-2013 Free Software Foundation, Inc. # # 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 @@ -18,20 +18,18 @@ # advertised in the manual. required=python -. ./defs || Exit 1 +. test-init.sh # In case the user's config.site defines pythondir or pyexecdir. CONFIG_SITE=/dev/null; export CONFIG_SITE -PYTHON=python - # Update the definition below if the documentation changes. # Note that the value of the 'pythondir' and 'pyexecdir' variables can # vary among different python installations, so we need more relaxed # and ad-hoc checks for them. Also, more proper "functional" checks -# on them should be done in the 'python-virtualenv.test' test. -PYTHON_VERSION=`$PYTHON -c 'import sys; print(sys.version[:3])'` || Exit 1 -PYTHON_PLATFORM=`$PYTHON -c 'import sys; print(sys.platform)'` || Exit 1 +# on them should be done in the 'python-virtualenv.sh' test. +PYTHON_VERSION=$($PYTHON -c 'import sys; print(sys.version[:3])') || exit 1 +PYTHON_PLATFORM=$($PYTHON -c 'import sys; print(sys.platform)') || exit 1 PYTHON_EXEC_PREFIX='${exec_prefix}' PYTHON_PREFIX='${prefix}' pkgpythondir="\${pythondir}/$me"