summaryrefslogtreecommitdiff
path: root/test/bin/locate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/bin/locate.sh')
-rwxr-xr-xtest/bin/locate.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/bin/locate.sh b/test/bin/locate.sh
new file mode 100755
index 000000000..dad0bd49f
--- /dev/null
+++ b/test/bin/locate.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+[ -e bin.sys ] || mkdir bin.sys
+cd bin.sys
+
+while read d
+do
+ if [ -x $d/$1 ]
+ then
+ while [ $# -gt 0 ]
+ do
+ rm -f ./$1
+ ln -s $d/$1 .
+ shift
+ done
+ fi
+done <<-HERE
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /usr/lib/postgresql/10/bin
+ /usr/lib/postgresql/9/bin
+HERE
+