Project

General

Profile

« Previous | Next » 

Revision 11373

bugfix: bin/with_all: in $all mode, just prepend the .* datasources to the user-selected (or default) @inputs, so that using $all to add these datasources doesn't inadvertently cause the action to be performed for all datasources

View differences:

bin/with_all
14 14
[vars...] (note initial \".\")"|fold -s >&2
15 15
        return 2
16 16
    fi
17
    if test -n "$all"; then inputs=(inputs/{.[^as.],}*/) #not . .. .svn .archive
18
    elif test ! "${inputs+isset}"; then inputs=(inputs/*/)
19
    fi
17
    if test ! "${inputs+isset}"; then inputs=(inputs/*/); fi
18
    if test "$all"; then inputs=(inputs/.[^as.]*/ "${inputs[@]}"); fi
19
        # not . .. .svn .archive
20 20
    
21 21
    for input in "${inputs[@]}"; do
22 22
        eval "yes|make ${input}$* &"

Also available in: Unified diff