Project

General

Profile

1 1551 aaronmk
#!/bin/bash
2 1541 aaronmk
# Imports all inputs at once
3
4 1952 aaronmk
import_all_main ()
5
{
6
    local self="${BASH_SOURCE[0]}"
7
    local selfDir="$(dirname -- "$self")"
8
9 1953 aaronmk
    if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
10 5039 aaronmk
        echo "Usage: . $self [vars...] (note initial \".\")"|fold -s >&2
11 1952 aaronmk
        return 2
12
    fi
13
14 5111 aaronmk
    make inputs/.TNRS/tnrs/install # clean up any new entries
15 5055 aaronmk
    make inputs/.TNRS/import "$@"
16 5081 aaronmk
    make inputs/.TNRS/tnrs/tnrs-remake &
17 5039 aaronmk
    . "$selfDir/with_all" import "$@"
18 1952 aaronmk
}
19
import_all_main "$@"