summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-16 07:40:53 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-17 15:55:54 +0200
commitb03397aa09b57fe3e426af2ee8e88e40b4d09a38 (patch)
tree15a695a44e251d94e3a3fc0c4c0b22837d8771b2 /bin/ptxdist
parent2fcabe372c86feadde4aa3d74da1aa5f7552810a (diff)
downloadptxdist-b03397aa09b57fe3e426af2ee8e88e40b4d09a38.tar.gz
ptxdist-b03397aa09b57fe3e426af2ee8e88e40b4d09a38.tar.xz
ptxdist: rename PTX_FORCE -> PTXDIST_FORCE for consistency and export it
All other variables like this start with PTXDIST_. Export it, so it can be used later during the build. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist15
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 9c0b739a7..2ff289a10 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -192,7 +192,7 @@ check_version() {
# (or if beeing forced)
#
if [ "${1}" = "${PTXDIST_VERSION_FULL}" -o \
- -n "${PTX_FORCE}" ]; then
+ -n "${PTXDIST_FORCE}" ]; then
return 0
fi
@@ -253,7 +253,7 @@ _get_config_ptx() {
return 1
fi
- if [ -n "${PTX_FORCE}" ]; then
+ if [ -n "${PTXDIST_FORCE}" ]; then
return
fi
@@ -310,7 +310,7 @@ _check_config_platform() {
return 1
fi
- if [ -n "${PTX_FORCE}" ]; then
+ if [ -n "${PTXDIST_FORCE}" ]; then
return
fi
@@ -1059,7 +1059,7 @@ clean() {
return
fi
- if [ ! -n "${PTX_FORCE}${PTXDIST_QUIET}${PTXCONF_SETUP_DIRECT_CLEAN}" ]; then
+ if [ ! -n "${PTXDIST_FORCE}${PTXDIST_QUIET}${PTXCONF_SETUP_DIRECT_CLEAN}" ]; then
read -e -p "really clean all? [y/N] " r
case "${r}" in
y|Y) ;;
@@ -1238,7 +1238,7 @@ parse_first()
PTXDIST_PEDANTIC=true
;;
-f|--force)
- PTX_FORCE=true
+ PTXDIST_FORCE=true
;;
--force-download)
PTXDIST_FORCE_DOWNLOAD=true
@@ -1525,7 +1525,7 @@ do_select()
fi
# check if magic is present in config file
- if ! egrep -q "^${magic}$" "${file}" && [ -z "${PTX_FORCE}" ]; then
+ if ! egrep -q "^${magic}$" "${file}" && [ -z "${PTXDIST_FORCE}" ]; then
ptxd_dialog_msgbox \
"error: Couldn't verify that\n" \
" '${file}'\n" \
@@ -1699,7 +1699,7 @@ do_select_toolchain() {
#
do_migrate()
{
- local PTX_FORCE=true
+ local PTXDIST_FORCE=true
local part
for part in ptx platform; do
@@ -2705,6 +2705,7 @@ setup_export() {
PTXDIST_ICECC \
PTXDIST_LOG_PROMPT \
PTXDIST_OUTPUT_SYNC \
+ PTXDIST_FORCE \
PTXDIST_PEDANTIC \
PTXDIST_QUIET \
PTXDIST_VERBOSE