Project

General

Profile

1 1541 aaronmk
#!/bin/sh
2
# Imports all inputs at once
3
# Usage: . self (note initial ".")
4
5 1546 aaronmk
self="$(readlink -f -- "$BASH_SOURCE")"
6
selfDir="$(dirname -- "$self")"
7
8 1541 aaronmk
for input in inputs/*/; do
9 1547 aaronmk
    eval "make ${input}import &"
10 1546 aaronmk
    disown -h "$(jobs|tail -1|"$selfDir/jobspecs")" # ignore SIGHUP
11 1541 aaronmk
    sleep 2 # wait for initial output so that outputs don't become jumbled
12
done