Project

General

Profile

« Previous | Next » 

Revision 6202

with_all: Added $all option to also include datasources starting with . such as .TNRS/. This is necessary for reinstall_all, which needs to install all datasources.

View differences:

with_all
10 10
    
11 11
    # Was run without initial ".", or with insufficient parameters
12 12
    if test "${BASH_LINENO[1]}" = 0 -o "$#" -lt 1; then
13
        echo "Usage: . $self make_target [vars...] (note initial \".\")"\
13
        echo "Usage: [all=1;] . $self make_target [vars...] (note initial \".\")"\
14 14
        |fold -s >&2
15 15
        return 2
16 16
    fi
17
    if test -n "$all"; then inputs=(inputs/{.[^s.],}*/) # exclude ., .., .svn
18
    else inputs=(inputs/*/)
19
    fi
17 20
    
18
    for input in inputs/*/; do
21
    for input in "${inputs[@]}"; do
19 22
        eval "make ${input}$* &"
20 23
        disown -h "$(jobs|tail -1|"$selfDir/jobspecs")" # ignore SIGHUP
21 24
        sleep 2 # wait for initial output so that outputs don't become jumbled

Also available in: Unified diff