Testsuite: MySQL portability
[users/heiko/exim.git] / test / bin / locate.sh
1 #!/bin/sh
2
3 [ -d bin.sys ] || mkdir bin.sys
4 cd bin.sys
5
6 while [ $# -gt 0 ]
7 do
8   while read d
9   do
10     if [ -x $d/$1 ]
11     then
12       rm -f ./$1
13       ln -s $d/$1 .
14       break
15     fi
16   done <<-HERE
17         /bin
18         /usr/bin
19         /usr/sbin
20         /usr/libexec
21         /usr/local/bin
22         /usr/lib/postgresql/10/bin
23         /usr/lib/postgresql/9.5/bin
24         /usr/lib/postgresql/9.4/bin
25         /usr/lib/postgresql/9.3/bin
26         /usr/lib/postgresql/9.2/bin
27         /usr/lib/postgresql/9.1/bin
28         /usr/lib/postgresql/9/bin
29 HERE
30   shift
31 done
32