export number of sources

This commit is contained in:
Nico Schottelius 2007-05-31 11:55:37 +02:00
parent 13b47585a8
commit 1d68408541

View file

@ -99,6 +99,9 @@ while [ "$i" -le $# ]; do
if [ "$NO_MORE_ARGS" = 1 ]; then
eval source_${no_sources}=\"$arg\"
no_sources=$(($no_sources+1))
# make variable available for subscripts
eval export source_${no_sources}
else
case "$arg" in
-a|--all)
@ -126,6 +129,9 @@ while [ "$i" -le $# ]; do
i=$(($i+1))
done
# also export number of sources
export no_sources
#
# be really, really, really verbose
#