summarylogtreecommitdiffstats
path: root/wrapper
blob: e4803b935c3877f0d6b3de4797dbc16ba110ec83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

libdir=/usr/lib/ascii-fluid-dynamics-git

bin_suff=''
files=()
for arg; do
	 if [ -f "$arg" ]; then
		  files+=("$arg")
	 elif [ -f "$libdir/$arg" ]; then
		  files+=("$libdir/$arg")
	 elif [ "$arg" = --color ]; then
		  bin_suff=_color
	 else
		  echo "Unknown arg: $arg"
	 fi
done

for file in "${files[@]}"; do
	 "$libdir/endoh1${bin_suff}" < "$file"
done