Project

General

Profile

1
#!/bin/bash
2
# Imports all inputs at once
3

    
4
import_all_main ()
5
{
6
    local self="${BASH_SOURCE[0]}"
7
    local selfDir="$(dirname -- "$self")"
8
    
9
    if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
10
        echo "Usage: . $self [vars...] (note initial \".\")"|fold -s >&2
11
        return 2
12
    fi
13
    
14
    make inputs/.TNRS/tnrs_accepted/reinstall
15
    make inputs/.TNRS/tnrs_other/reinstall
16
    
17
    make inputs/.geoscrub/import "$@" &
18
    sleep 5 # wait for make commands to scroll by
19
    
20
    make inputs/.NCBI/import by_col=1 "$@"
21
    # Must come after NCBI for cross links to be made
22
    make inputs/.TNRS/import "$@"
23
    
24
    wait %1 # geoscrub import
25
    
26
    make inputs/.TNRS/tnrs/tnrs-remake wait=1 "$@" &
27
    . "$selfDir/with_all" import "$@"
28
}
29
import_all_main "$@"
(24-24/61)