Skip to content
Snippets Groups Projects
Commit 445164d4 authored by Christian Engwer's avatar Christian Engwer
Browse files

[dunecontrol]

add support to run the dependencies in revers order
(necessarry for "make distclean")

[[Imported from SVN: r6849]]
parent eae7a547
No related branches found
No related tags found
No related merge requests found
......@@ -519,6 +519,10 @@ create_module_list() {
sort_modules $MODULES
fi
if test "x$REVERSE_FLAG" = "xyes"; then
export MODULES="$REVERSEMODULES"
fi
if test "x$SKIPFIRST" = "xyes" ; then
export MODULES=`echo $MODULES " " | cut '--delimiter= ' --fields=2-`
fi
......@@ -542,6 +546,7 @@ export SEARCH_MODULES=""
export MODULES=""
export ONLY=""
export RESUME_FLAG=no
export REVERSE_FLAG=no
export SKIPFIRST=no
# parse commandline parameters
......@@ -645,6 +650,9 @@ while test $# -gt 0; do
--resume)
export RESUME_FLAG="yes"
;;
--reverse)
export REVERSE_FLAG="yes"
;;
--skipfirst)
export SKIPFIRST=yes
;;
......
......@@ -232,6 +232,7 @@ EOF
sort_modules() {
# reset lists
export SORTEDMODULES=""
export REVERSEMODULES=""
export SORTEDMODULES_INFO=""
export SORTEDMODULES_DEPS=""
export SORTEDMODULES_SUGS=""
......@@ -375,6 +376,7 @@ _sort_module() {
# it is sufficient to check that the module hasn't been handled yet,
# as dependencies are handled before suggestions
export SORTEDMODULES="$SORTEDMODULES $module"
export REVERSEMODULES="$module $REVERSEMODULES"
export SORTEDMODULES_INFO="$SORTEDMODULES_INFO $module[$mode]"
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment