aboutsummaryrefslogtreecommitdiff
path: root/scripts/make.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-12-19 15:02:18 -0600
committerRob Landley <rob@landley.net>2013-12-19 15:02:18 -0600
commit0201900cadbab691386298f195b1574a301c1b99 (patch)
treef8342527a8532028006ca9ca816027d94532918a /scripts/make.sh
parentdb1009dc5c7606e5abf01d41f82ca18001dc1f52 (diff)
downloadtoybox-0201900cadbab691386298f195b1574a301c1b99.tar.gz
Regression test against Ancient Build Environment (Ubuntu 8.04), fixup bit-rot.
Diffstat (limited to 'scripts/make.sh')
-rwxr-xr-xscripts/make.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index a685010c..5c86e26d 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -126,7 +126,9 @@ GLOBSTRUCT="$(getglobals)"
echo "generated/help.h"
# Only recreate generated/help.h if python2 is installed. Does not work with 3.
-PYTHON="$(which python2 || which python2.6 || which python2.7)"
+[ -z "$(python --version | grep 'Python 2')" ] &&
+ PYTHON="$(which python2 || which python2.6 || which python2.7)" ||
+ PYTHON=python
if [ ! -z "$(grep 'CONFIG_TOYBOX_HELP=y' $KCONFIG_CONFIG)" ];
then
if [ -z "$PYTHON" ];