Files
Martin Povišer b0a73b5144 platforms/nuttx: change bash references
There is a platform, NixOS Linux, on which '/bin/bash' is not available.
This commit changes the interpreter to '/usr/bin/env bash' in some
scripts essential to firmware building.
2020-11-02 13:52:42 -05:00

13 lines
400 B
Bash
Executable File

#! /usr/bin/env bash
#echo "DEBUG: kconfiglib kconfig-tweak wrapper, arguments: ${@}"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export APPSDIR="`pwd`/../apps"
# Example:
# kconfig-tweak --set-str CONFIG_APPS_DIR ../apps
# becomes
# python setconfig.py CONFIG_APPS_DIR=../apps
PYTHONPATH=${DIR} python ${DIR}/setconfig.py --kconfig=Kconfig ${2}=${3} > /dev/null