Project

General

Profile

« Previous | Next » 

Revision 13981

bin/import_all: documented that this must be run in a subshell (obtained by running `$0`)

View differences:

import_all
17 17
    pushd "$selfDir/.."
18 18
    
19 19
    if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
20
        echo "usage: [version=...] [inputs=(inputs/src/ ...)]; . $self \
21
[vars...] (note initial \".\")"|fold -s >&2
20
        echo "usage: (*in subshell*) [version=...] [inputs=(inputs/src/ ...)]; \
21
. $self [vars...] (note initial \".\")"|fold -s >&2
22 22
        return 2
23 23
    fi
24 24
    : ${version=$(make -s version)}

Also available in: Unified diff