Project

General

Profile

1
#!/bin/sh
2
# Imports all inputs at once
3
# Usage: . self (note initial ".")
4

    
5
self="$(readlink -f -- "$BASH_SOURCE")"
6
selfDir="$(dirname -- "$self")"
7

    
8
for input in inputs/*/; do
9
    make ${input}import &
10
    disown -h "$(jobs|tail -1|"$selfDir/jobspecs")" # ignore SIGHUP
11
    sleep 2 # wait for initial output so that outputs don't become jumbled
12
done
(12-12/35)