Revision 1546
Added by Aaron Marcuse-Kubitza almost 13 years ago
import-all | ||
---|---|---|
2 | 2 |
# Imports all inputs at once |
3 | 3 |
# Usage: . self (note initial ".") |
4 | 4 |
|
5 |
self="$(readlink -f -- "$BASH_SOURCE")" |
|
6 |
selfDir="$(dirname -- "$self")" |
|
7 |
|
|
5 | 8 |
for input in inputs/*/; do |
6 | 9 |
make ${input}import & |
10 |
disown -h "$(jobs|tail -1|"$selfDir/jobspecs")" # ignore SIGHUP |
|
7 | 11 |
sleep 2 # wait for initial output so that outputs don't become jumbled |
8 | 12 |
done |
Also available in: Unified diff
import-all: disown each new import process to ignore SIGHUP