2014-08-13 15:57:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Minimal pg_config implementation as replacement for the native pg_config application
|
|
|
|
# Only implements --includedir and --libdir
|
|
|
|
#
|
|
|
|
|
|
|
|
prefix=/usr
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
--includedir)
|
|
|
|
echo "$prefix/include"
|
|
|
|
;;
|
|
|
|
--libdir)
|
|
|
|
echo "$prefix/lib"
|
|
|
|
;;
|
2018-03-12 11:12:30 +01:00
|
|
|
--version)
|
|
|
|
echo "PostgreSQL @POSTGRESQL_VERSION@"
|
|
|
|
;;
|
2014-08-13 15:57:09 +02:00
|
|
|
*)
|
2018-03-12 11:12:30 +01:00
|
|
|
echo "Usage: $0 {--includedir|--libdir|--version}"
|
2014-08-13 15:57:09 +02:00
|
|
|
esac
|