Project

General

Profile

« Previous | Next » 

Revision 14903

bin/import_all: converted to a runscript so it can use runscript functionality

View differences:

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

  
4
. "$(dirname "${BASH_SOURCE[0]}")"/../lib/runscripts/util.run "$@"
5

  
3 6
set -o errexit -o pipefail # errexit since may be called from shell
4 7

  
5 8
if test "$1" = .; then set --; fi # was .-included without args, so $@ is wrong
......
33 36
. $self [vars...] (note initial \".\")"|fold -s >&2
34 37
        return 0 # not nonzero because this will close the subshell
35 38
    fi
36
    : ${version=$(make -s version)}
39
    : ${version=$(output_data=1 make -s version)}
37 40
    local by_col=${by_col-1} full_import=1
38 41
    export version by_col full_import
39 42
    
......
72 75
    popd
73 76
    delete_logs # manually run b/c `trap EXIT` doesn't run until *shell* exit
74 77
}
75
main "$@"
78

  
79
on_exit

Also available in: Unified diff