2020-10-30 11:07:43 -03:00
|
|
|
#! /usr/bin/env bash
|
2019-03-17 15:30:12 -03:00
|
|
|
|
|
|
|
echo "DEBUG: kconfiglib kconfig-conf wrapper, arguments: ${@}"
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
export APPSDIR="`pwd`/../apps"
|
|
|
|
|
2020-03-28 13:08:23 -03:00
|
|
|
if [ "command -v python3" ]; then
|
|
|
|
PYTHON_EXECUTABLE=python3
|
|
|
|
else
|
|
|
|
PYTHON_EXECUTABLE=python
|
|
|
|
fi
|
|
|
|
|
2019-03-17 15:30:12 -03:00
|
|
|
if [ "${1}" = "--olddefconfig" ]; then
|
2020-03-28 13:08:23 -03:00
|
|
|
PYTHONPATH=${DIR} ${PYTHON_EXECUTABLE} ${DIR}/olddefconfig.py > /dev/null
|
2019-03-17 15:30:12 -03:00
|
|
|
else
|
|
|
|
echo "ERROR: ${@} unsupported"
|
|
|
|
exit 1
|
|
|
|
fi
|