From 75d6d1cbf4fd0842a64a2574f81b44a79604ad0f Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Mon, 27 Oct 2008 23:26:29 +0000 Subject: [PATCH] Added menu item to deselect the progress_bar display. Requested by Matthew Burgess --- Config.in | 7 +++++++ common/libs/func_wrt_Makefile | 4 ++-- jhalfs | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Config.in b/Config.in index a8235da..97f2999 100644 --- a/Config.in +++ b/Config.in @@ -914,6 +914,13 @@ menu "--- Build Settings" help #-- Install the optional vim-lang package + config NO_PROGRESS_BAR + bool "DO NOT use/display progress_bar " + default n + help + #-- No not use the progress bar routine. On slower machines + # this functions consumes precious CPU cycles. + config TIMEZONE string "TimeZone" default "GMT" diff --git a/common/libs/func_wrt_Makefile b/common/libs/func_wrt_Makefile index 0c500c5..7a49f83 100644 --- a/common/libs/func_wrt_Makefile +++ b/common/libs/func_wrt_Makefile @@ -109,7 +109,7 @@ cat << EOF $i: $PREV @\$(call echo_message, Building) - @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & +${NO_PROGRESS} @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & @echo "\$(nl_)\`date\`\$(nl_)" >logs/\$@ @\$(PRT_DU) >>logs/\$@ EOF @@ -126,7 +126,7 @@ cat << EOF $i: $PREV @\$(call echo_message, Building) - @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & +${NO_PROGRESS} @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & @echo "\$(nl_)\`date\`\$(nl_)" >logs/\$@ @\$(PRT_DU_CR) >>logs/\$@ EOF diff --git a/jhalfs b/jhalfs index 7b4b4ac..c87543c 100755 --- a/jhalfs +++ b/jhalfs @@ -119,6 +119,11 @@ SET_WARNINGS=${SET_WARNINGS:=n} SET_MISC=${SET_MISC:=n} SET_BLOWFISH=${SET_BLOWFISH:=n} +if [[ "${NO_PROGRESS_BAR}" = "y" ]] ; then + NO_PROGRESS="#" +fi + + # Sanity check on the location of $BUILDDIR / $JHALFSDIR CWD=$(cd `dirname $0` && pwd) if [[ $JHALFSDIR == $CWD ]]; then