summaryrefslogtreecommitdiffstats
path: root/postgresql-check-db-dir.in
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-02 17:42:36 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-02 17:42:36 +0200
commit33481db83bb5f6f7d1017e17a00cd0012a06f117 (patch)
treeabcd8c201d69fac29edd8305a2c40cb44a7c4fef /postgresql-check-db-dir.in
parent0ba4ab7cbbd4e78cbc728ef205b98622244afbfb (diff)
downloadpostgresql-setup-33481db83bb5f6f7d1017e17a00cd0012a06f117.tar.gz
postgresql-setup-33481db83bb5f6f7d1017e17a00cd0012a06f117.tar.xz
postgresql-setup-33481db83bb5f6f7d1017e17a00cd0012a06f117.zip
buildsystem: better handle distro-README
Avoid detecting README.rpm-dist as we generate this file and we know the best where the file is. * configure.ac: Avoid detecting README path. Also substitute new variable README_DIST_BASENAME. * Makefile.am: Use the new $(README_DIST_BASENAME). * postgres-check-db-dir.in: Use README_DIST instead of PGDOCDIR.
Diffstat (limited to 'postgresql-check-db-dir.in')
-rw-r--r--postgresql-check-db-dir.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/postgresql-check-db-dir.in b/postgresql-check-db-dir.in
index e579edf..f8adc2d 100644
--- a/postgresql-check-db-dir.in
+++ b/postgresql-check-db-dir.in
@@ -45,8 +45,8 @@ PGMAJORVERSION=@PGMAJORVERSION@
# Previous major version, e.g., 8.4, for upgrades
PREVMAJORVERSION=@PREVMAJORVERSION@
-# Directory containing the postgresql package's documentation
-PGDOCDIR=@pgdocdir@
+# Distribution README file
+README_DIST=@README_DIST@
# Check for the PGDATA structure
if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
@@ -59,19 +59,19 @@ then
then
echo $"An old version of the database format was found."
echo $"Use \"postgresql-setup --upgrade\" to upgrade to version $PGMAJORVERSION."
- echo $"See $PGDOCDIR/README.rpm-dist for more information."
+ echo $"See $README_DIST for more information."
exit 1
else
echo $"An old version of the database format was found."
echo $"You need to dump and reload before using PostgreSQL $PGMAJORVERSION."
- echo $"See $PGDOCDIR/README.rpm-dist for more information."
+ echo $"See $README_DIST for more information."
exit 1
fi
else
# No existing PGDATA! Warn the user to initdb it.
echo $"\"$PGDATA\" is missing or empty."
echo $"Use \"postgresql-setup --initdb\" to initialize the database cluster."
- echo $"See $PGDOCDIR/README.rpm-dist for more information."
+ echo $"See $README_DIST for more information."
exit 1
fi