Testsuite: Better platform portability by searching for Postgres server binaries
[exim.git] / test / bin / locate.sh
1 #!/bin/sh
2
3 [ -e bin.sys ] || mkdir bin.sys
4 cd bin.sys
5
6 while read d
7 do
8 if [ -x $d/$1 ]
9 then
10 while [ $# -gt 0 ]
11 do
12 rm -f ./$1
13 ln -s $d/$1 .
14 shift
15 done
16 fi
17 done <<-HERE
18 /bin
19 /usr/bin
20 /usr/local/bin
21 /usr/lib/postgresql/10/bin
22 /usr/lib/postgresql/9/bin
23 HERE
24