Commit 75313fe5 authored by Per Cederqvist's avatar Per Cederqvist

(install-data-local): Don't install the database if lyskomd-backup

	exists.  Don't install it if any of the databases exist.
parent a514d3ed
# $Id: Makefile.am,v 1.4 1999/06/25 21:18:27 ceder Exp $
# $Id: Makefile.am,v 1.5 1999/07/11 21:20:31 ceder Exp $
# Copyright (C) 1998 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -32,9 +32,14 @@ db_DATA =
EXTRA_DIST = lyskomd-data lyskomd-texts .cvsignore lyskomd-data-en
install-data-local: installdirs
test -f $(DESTDIR)$(dbdir)/lyskomd-data \
|| $(INSTALL_DATA) $(srcdir)/lyskomd-data$(LANGUAGE_SUFFIX) \
$(DESTDIR)$(dbdir)/lyskomd-data
test -f $(DESTDIR)$(dbdir)/lyskomd-texts \
|| $(INSTALL_DATA) $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts
if test -f $(DESTDIR)$(dbdir)/lyskomd-data \
|| test -f $(DESTDIR)$(dbdir)/lyskomd-backup \
|| test -f $(DESTDIR)$(dbdir)/lyskomd-texts; \
then \
echo installed database found; \
else \
$(INSTALL_DATA) $(srcdir)/lyskomd-data$(LANGUAGE_SUFFIX) \
$(DESTDIR)$(dbdir)/lyskomd-data || exit 1 ; \
$(INSTALL_DATA) $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts || exit 1; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment