Makefile.am 566 B

123456789101112
  1. # We're going to abuse install-data-local for a pre-install check.
  2. # This is to be considered a short term hack and is expected to be removed
  3. # in a near future version.
  4. install-data-local:
  5. if test -e $(localstatedir)/$(PACKAGE)/zone.sqlite3; then \
  6. $(SHELL) $(top_builddir)/src/bin/dbutil/run_dbutil.sh --check \
  7. $(localstatedir)/$(PACKAGE)/zone.sqlite3 || \
  8. (echo "\nSQLite3 DB file schema version is old. " \
  9. "Please run: " \
  10. "$(abs_top_builddir)/src/bin/dbutil/run_dbutil.sh --upgrade " \
  11. "$(localstatedir)/$(PACKAGE)/zone.sqlite3"; exit 1) \
  12. fi