Commit fe7dadc2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(doinstall): Use mkinstalldirs.

parent a54e202d
# $Id: Makefile.src,v 1.9 1994/03/06 20:04:17 ceder Exp $ # $Id: Makefile.src,v 1.10 1994/03/06 20:31:44 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association. # Copyright (C) 1991 Lysator Academic Computer Association.
# #
# This file is part of the LysKOM server. # This file is part of the LysKOM server.
...@@ -37,17 +37,13 @@ dnl ...@@ -37,17 +37,13 @@ dnl
dnl Most of the real installation is done from various other Makefiles, but dnl Most of the real installation is done from various other Makefiles, but
dnl most directories are created here. dnl most directories are created here.
define([doinstall],dnl define([doinstall],dnl
[[ [ -d $(prefix) ] || mkdir $(prefix) [[ $(SCRIPTDIR)/mkinstalldirs $(prefix) $(exec_prefix) $(bindir) $(dbdir)\
[ -d $(exec_prefix) ] || mkdir $(exec_prefix) $(etcdir) $(coredir)
[ -d $(bindir) ] || mkdir $(bindir)
[ -d $(dbdir) ] || mkdir $(dbdir)
chmod 700 $(dbdir) chmod 700 $(dbdir)
if [ ! -f $(dbdir)/lyskomd-data ] && [ ! -f $(dbdir)/lyskomd-texts ];\ if [ ! -f $(dbdir)/lyskomd-data ] && [ ! -f $(dbdir)/lyskomd-texts ];\
then cp $(srcdir)/db-crypt/db/lyskomd-data $(dbdir)/lyskomd-data && \ then cp $(srcdir)/db-crypt/db/lyskomd-data $(dbdir)/lyskomd-data && \
cp $(srcdir)/db-crypt/db/lyskomd-texts $(dbdir)/lyskomd-texts ;\ cp $(srcdir)/db-crypt/db/lyskomd-texts $(dbdir)/lyskomd-texts ;\
else true; fi else true; fi
[ -d $(etcdir) ] || mkdir $(etcdir)
[ -d $(coredir) ] || mkdir $(coredir)
]])dnl ]])dnl
[ [
includes: $(INCLUDEDIR) includes: $(INCLUDEDIR)
......
Supports Markdown
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