From 7c9d6ce182bf7e48484a1edbd59a6d416f6c5152 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 25 Jul 2013 22:41:26 -0500 Subject: Juhani Haverinen pointed out that python 3 doesn't work with config2help.py, so you python2 binary until finishing the C rewrite. --- scripts/make.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/make.sh b/scripts/make.sh index 12a228eb..e2853bb3 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -134,11 +134,12 @@ GLOBSTRUCT="$(getglobals)" ) > generated/globals.h echo "generated/help.h" -# Only recreate generated/help.h if python is installed -if [ ! -z "$(which python)" ] && [ ! -z "$(grep 'CONFIG_TOYBOX_HELP=y' .config)" ] +# Only recreate generated/help.h if python2 is installed. Does not work with 3. +PYTHON="$(which python2)" +if [ ! -z "$PYTHON" ] && [ ! -z "$(grep 'CONFIG_TOYBOX_HELP=y' .config)" ] then echo "Extract help text from Config.in." - scripts/config2help.py Config.in > generated/help.h || exit 1 + "$PYTHON" scripts/config2help.py Config.in > generated/help.h || exit 1 fi # Extract a list of toys/*/*.c files to compile from the data in ".config": -- cgit v1.2.3