From 6f7bba33da79f90b63173c7355b1eb4eacc2579e Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Tue, 1 Aug 2006 19:28:19 +0000 Subject: [PATCH] fixed option --only [[Imported from SVN: r4659]] --- bin/dunecontrol | 6 +++++- bin/dunemodules.inc | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/dunecontrol b/bin/dunecontrol index 975bf4dae..19fd36dd6 100755 --- a/bin/dunecontrol +++ b/bin/dunecontrol @@ -32,7 +32,11 @@ build_modules() { command=$1 load_opts $command local runcommand=run_$command - for module in $MODULES; do + modules=$MODULES + if test x"$ONLY" != x; then + modules=$ONLY + fi + for module in $modules; do local path=$(eval "echo \$PATH_${module}") eval echo "--- calling $command for \$NAME_${module} ---" if ! ( diff --git a/bin/dunemodules.inc b/bin/dunemodules.inc index c6e4174a9..25b01bb97 100644 --- a/bin/dunemodules.inc +++ b/bin/dunemodules.inc @@ -103,9 +103,6 @@ sort_modules() { exit 1 fi done - if test x"$ONLY" != x; then - SORTEDMODULES=$ONLY - fi export MODULES=$SORTEDMODULES } -- GitLab