head	1.15;
access;
symbols
	TIGRIS_1_1_0RC2:1.15.12.1
	TIGRIS_1_1_0RC1:1.15.12.1
	TIGRIS_1_1:1.15.12.1.0.2
	TIGRIS_1_0_8:1.15.12.1
	TIGRIS_1_0_8RC3:1.15.12.1
	TIGRIS_1_0_8RC2:1.15.12.1
	TIGRIS_1_0_8RC1:1.15.12.1
	TIGRIS_1_0_7:1.15.12.1
	TIGRIS_1_0_7RC3:1.15.12.1
	TIGRIS_1_0_7RC2:1.15.12.1
	TIGRIS_1_0_7RC1:1.15.12.1
	TIGRIS_1_0_6:1.15.12.1
	TIGRIS_1_0_6RC5:1.15.12.1
	TIGRIS_1_0_6RC4:1.15.12.1
	TIGRIS_1_0_6RC3:1.15.12.1
	TIGRIS_1_0_6RC2:1.15.12.1
	TIGRIS_1_0_6RC1:1.15.12.1
	TIGRIS_1_0_5:1.15.12.1
	TIGRIS_1_0_5RC6:1.15.12.1
	TIGRIS_1_0_5RC5:1.15.12.1
	TIGRIS_1_0_5RC4:1.15.12.1
	TIGRIS_1_0_5RC3:1.15.12.1
	TIGRIS_1_0_5RC2:1.15.12.1
	TIGRIS_1_0_5RC1:1.15.12.1
	TIGRIS_1_0_4:1.15.12.1
	TIGRIS_1_0_3:1.15.12.1
	TIGRIS_1_0_2:1.15.12.1
	TIGRIS_1_0_1:1.15.12.1
	TIGRIS_1_0:1.15.0.12
	TIGRIS_1_0_0:1.15
	TIGRIS_1_0_0_RC1:1.15.0.8
	HELM_PEER_PORT_BRANCH:1.15.0.6
	TIGRIS_0_9_2_4:1.15
	TIGRIS_0_9_2_3:1.15
	TIGRIS_0_9_2:1.15.0.4
	TIGRIS_0_9_0:1.15.0.2
	TIGRIS_0_8_4:1.14.0.2
	TIGRIS_710_FF:1.12
	TIGRIS_706:1.6;
locks; strict;
comment	@# @;


1.15
date	2000.12.08.21.48.56;	author edk;	state Exp;
branches
	1.15.12.1;
next	1.14;

1.14
date	2000.11.22.06.19.49;	author edk;	state Exp;
branches;
next	1.13;

1.13
date	2000.11.06.16.25.06;	author edk;	state Exp;
branches;
next	1.12;

1.12
date	2000.11.06.06.51.48;	author edk;	state Exp;
branches;
next	1.11;

1.11
date	2000.11.06.03.24.48;	author edk;	state Exp;
branches;
next	1.10;

1.10
date	2000.11.06.03.14.15;	author edk;	state Exp;
branches;
next	1.9;

1.9
date	2000.11.01.06.02.18;	author edk;	state Exp;
branches;
next	1.8;

1.8
date	2000.11.01.03.35.15;	author edk;	state Exp;
branches;
next	1.7;

1.7
date	2000.10.30.06.49.01;	author edk;	state Exp;
branches;
next	1.6;

1.6
date	2000.10.26.21.56.48;	author edk;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.26.21.18.57;	author edk;	state Exp;
branches;
next	1.4;

1.4
date	2000.10.19.22.09.57;	author edk;	state Exp;
branches;
next	1.3;

1.3
date	2000.09.25.22.13.47;	author ed;	state Exp;
branches;
next	1.2;

1.2
date	2000.09.01.11.31.08;	author ed;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.29.05.56.53;	author ed;	state Exp;
branches;
next	;

1.15.12.1
date	2001.04.12.18.30.55;	author edk;	state Exp;
branches;
next	;


desc
@@


1.15
log
@make the make process less verbose
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
#

include Makefile.config

default: build

# only install the conf files on make install
build:

install: install-server install-client-libs

install-client: install-client-libs
	@@echo 'Installing client project configuration files to sandbox'; \
	for f in $(SERVLETS_CONF_FILES); do \
	  echo "  $${f}"; \
	  if [ -f $(SERVLETS_CONF_DIR)/$${f} ]; then \
	    mv -f $(SERVLETS_CONF_DIR)/$${f} $(SERVLETS_CONF_DIR)/$${f}.orig; \
	  fi; \
	  cp -f $${f}* $(SERVLETS_CONF_DIR); \
	done; \
	echo 'Installation of project configuration files complete'; \
	unset f ; true


install-client-libs: install-common-conf
	@@echo 'Installing client lib configuration files to sandbox'; \
	for f in $(PROPERTIES_CONF_FILES); do \
	  echo -n "  $${f}"; \
	  if [ -f $(PROPERTIES_CONF_DIR)/$${f} ]; then \
	    mv -f $(PROPERTIES_CONF_DIR)/$${f} $(PROPERTIES_CONF_DIR)/$${f}.orig; \
	  fi; \
	  cp -f $${f}* $(PROPERTIES_CONF_DIR); \
	done; \
	echo ''; \
	echo 'Installation of client lib configuration files complete'; \
	unset f ; true

create-directories:
	@@if [ ! -d $(BASE_ANZU_DIR) ]; then \
	  mkdir -p $(BASE_ANZU_DIR); \
	fi; \
	if [ ! -d $(SERVER_CONTROL_DIR) ]; then \
	  mkdir -p $(SERVER_CONTROL_DIR); \
	fi; \
	if [ ! -d $(SERVER_DATA_DIR) ]; then \
	  mkdir -p $(SERVER_DATA_DIR); \
	fi; \
	if [ ! -d $(SERVER_DATA_DOMAINS_DIR) ]; then \
	  mkdir -p $(SERVER_DATA_DOMAINS_DIR); \
	fi; \
	if [ ! -d $(COMMON_PROPERTIES_DIR) ]; then \
	  mkdir -p $(COMMON_PROPERTIES_DIR); \
	fi; \
	if [ ! -d $(MAIL_USER_HOME_DIR) ] ; then \
	  mkdir -p $(MAIL_USER_HOME_DIR); \
	fi;

secret:
	@@if [ ! -e $(SANDBOX)/data/anzu/secret ]; then \
	  ssh-keygen -N '' -f $(SANDBOX)/data/anzu/secret ; \
	fi

install-common-conf: create-directories secret
	@@for f in $(COMMON_PROPERTIES_FILES); do \
	  echo -n "  $${f}"; \
	  if [ -f $(COMMON_PROPERTIES_DIR)/$${f} ]; then \
	    mv -f $(COMMON_PROPERTIES_DIR)/$${f} $(COMMON_PROPERTIES_DIR)/$${f}.orig; \
	  fi; \
	  echo ''; \
	  cp -f $${f}* $(COMMON_PROPERTIES_DIR); \
	done; \
	unset f ; true

install-server: create-directories install-common-conf
	@@echo 'Installing server configuration files to sandbox'; \
	for f in $(SERVER_CONTROL_FILES); do \
	  echo -n "  $${f}"; \
	  if [ -f $(SERVER_CONTROL_DIR)/$${f}.orig ]; then \
	     rm -fr $(SERVER_CONTROL_DIR)/$${f}.orig ; \
	  fi; \
	  if [ -f $(SERVER_CONTROL_DIR)/$${f} ]; then \
	    mv -f $(SERVER_CONTROL_DIR)/$${f} $(SERVER_CONTROL_DIR)/$${f}.orig; \
	  fi; \
	  cp -fr $${f} $(SERVER_CONTROL_DIR); \
	done; \
	for f in $(SERVER_DATA_FILES); do \
	  echo -n "  $${f}"; \
	  if [ ! -f $(SERVER_DATA_DIR)/$${f} ]; then \
	    if [ -f "$$f" ]; then \
	      cp $${f} $(SERVER_DATA_DIR)/; \
	    else \
	      touch $(SERVER_DATA_DIR)/$${f}; \
	    fi; \
	  fi; \
	done;  \
	for f in $(QMAIL_DOT_FILES); do \
	  echo -n "  $${f}"; \
	  if [ -f $(MAIL_USER_HOME_DIR)/$${f} ]; then \
	    mv $(MAIL_USER_HOME_DIR)/$${f} $(MAIL_USER_HOME_DIR)/orig-$${f}; \
	  fi; \
	  cp -f homedir/$${f} $(MAIL_USER_HOME_DIR)/.$${f}; \
	  cp -f homedir/$${f}.in $(MAIL_USER_HOME_DIR)/.$${f}.in; \
	done; \
	echo ''; \
	echo 'Installation of server configuration files complete'; \
	unset f ; true


include-trace:
	@@file=$(FILE); \
	while [ "$$file" ]; do \
	  last=$$file; \
	  file=`grep -i "^ *include *. *.*$${file} *$$" * 2> /dev/null | \
	    grep -v "registry\.$${file}" | \
	    perl -p -e 's/^(.*):.*$$/$$1/i' | \
	    grep -v '.*\.in$$'`; \
	done; \
	echo $$last; \
	unset last
@


1.15.12.1
log
@use -f test instead of -e (since it's portable)
@
text
@d61 1
a61 1
	@@if [ ! -f $(SANDBOX)/data/anzu/secret ]; then \
@


1.14
log
@create the secret file if it doesn't already exist.
@
text
@d30 1
a30 1
	  echo "  $${f}"; \
d36 1
d67 1
a67 1
	  echo "  $${f}"; \
d71 1
d79 1
a79 1
	  echo "  $${f}"; \
d89 1
a89 1
	  echo "  $${f}"; \
d99 1
a99 1
	  echo "  $${f}"; \
d106 1
@


1.13
log
@more info during install
@
text
@d59 6
a64 1
install-common-conf: create-directories
@


1.12
log
@create the directory, even if some parent dirs are missing
@
text
@d82 1
d92 1
@


1.11
log
@fix copying of qmail files
@
text
@d56 1
a56 1
	  mkdir $(MAIL_USER_HOME_DIR); \
@


1.10
log
@switch to non "." filenames -- it turns out this is easy to do, and
is much clearer.  add the archive address.
@
text
@d94 2
a95 2
	  cp -f homedir/.$${f} $(MAIL_USER_HOME_DIR); \
	  cp -f homedir/.$${f}.in $(MAIL_USER_HOME_DIR); \
@


1.9
log
@make sure to create the directories -- even if they don't exist already.
(anzu may be installed before helm is, -- if so, the data directory
won't exist).
@
text
@d54 3
d90 7
a99 11

#	if [ ! -d $(MAIL_USER_HOME_DIR) ] ; then \
#	  mkdir $(MAIL_USER_HOME_DIR); \
#	fi; \
#	for f in $(QMAIL_DOT_FILES); do \
#	  echo "  $${f}"; \
#	  if [ -f $(MAIL_USER_HOME_DIR)/$${f} ]; then \
#	    mv $(MAIL_USER_HOME_DIR)/$${f} $(MAIL_USER_HOME_DIR)/orig-$${f}; \
#	  fi; \
#	  cp -f homedir/$${f} $(MAIL_USER_HOME_DIR); \
#	done; \
@


1.8
log
@reorganized targets to be a little more logical
@
text
@d41 1
a41 1
	  mkdir $(BASE_ANZU_DIR); \
d44 1
a44 1
	  mkdir $(SERVER_CONTROL_DIR); \
d47 1
a47 1
	  mkdir $(SERVER_DATA_DIR); \
d50 1
a50 1
	  mkdir $(SERVER_DATA_DOMAINS_DIR); \
d53 1
a53 1
	  mkdir $(COMMON_PROPERTIES_DIR); \
@


1.7
log
@fix dumb mistake in anzu.properties.in ; move it into a different
directory where it can be accessed via Class.getResourceAsStream
(after that directory has been added to the classpath).
@
text
@d12 14
a25 1
install-client: install
a38 12
install: install-client-libs
	@@echo 'Installing client project configuration files to sandbox'; \
	for f in $(SERVLETS_CONF_FILES); do \
	  echo "  $${f}"; \
	  if [ -f $(SERVLETS_CONF_DIR)/$${f} ]; then \
	    mv -f $(SERVLETS_CONF_DIR)/$${f} $(SERVLETS_CONF_DIR)/$${f}.orig; \
	  fi; \
	  cp -f $${f}* $(SERVLETS_CONF_DIR); \
	done; \
	echo 'Installation of project configuration files complete'; \
	unset f ; true

d66 1
a66 1
install-server: install-common-conf
@


1.6
log
@lots of changes for cleaner make procedures : find joist.jar in
$SANDBOX/site/lib/; produce only one jar file; and make the install
target install-client-libs + install-server; finally, create a directory
required w/in the sandbox.
@
text
@d14 1
a14 1
install-client-libs:
d38 2
a39 3
install-server:
	@@echo 'Installing server configuration files to sandbox'; \
	if [ ! -d $(BASE_ANZU_DIR) ]; then \
d45 22
a76 6
	if [ ! -d $(SERVER_DATA_DIR) ]; then \
	  mkdir $(SERVER_DATA_DIR); \
	fi; \
	if [ ! -d $(SERVER_DATA_DOMAINS_DIR) ]; then \
	  mkdir $(SERVER_DATA_DOMAINS_DIR); \
	fi; \
@


1.5
log
@add a target for client-libs (for use w/ newhelm servlets) and add
a default initArgs property to tell that anzu has been installed
@
text
@d40 3
@


1.4
log
@Lots of changes which include making Add & Edit at least partially
functional and closer to the current mockup.  Many things don't work
yet; this is a checkpoint commit.
@
text
@d14 2
a15 2
install:
	@@echo 'Installing client project configuration files to sandbox'; \
d23 5
@


1.3
log
@starting to implement new design for how mail delivery works
@
text
@d19 1
a19 1
	    mv $(PROPERTIES_CONF_DIR)/$${f} $(PROPERTIES_CONF_DIR)/$${f}.orig; \
d26 1
a26 1
	    mv $(SERVLETS_CONF_DIR)/$${f} $(SERVLETS_CONF_DIR)/$${f}.orig; \
d35 2
a36 2
	if [ ! -d $(SERVER_CONF_DIR) ]; then \
	  mkdir $(SERVER_CONF_DIR); \
d38 1
a38 1
	for f in $(SERVER_CONF_FILES); do \
d40 2
a41 2
	  if [ -f $(SERVER_CONF_DIR)/$${f} ]; then \
	    mv $(SERVER_CONF_DIR)/$${f} $(SERVER_CONF_DIR)/$${f}.orig; \
d43 4
a46 1
	  cp -f $${f} $(SERVER_CONF_DIR); \
d48 2
a49 3
	\
	if [ ! -d $(SERVER_DEFAULT_OPTIONS_DIR) ] ; then \
	  mkdir $(SERVER_DEFAULT_OPTIONS_DIR); \
d51 2
a52 4
	cp -f defaults/* $(SERVLETS_CONF_DIR); \
	\
	if [ ! -d $(MAIL_USER_HOME_DIR) ] ; then \
	  mkdir $(MAIL_USER_HOME_DIR); \
d54 7
a60 4
	for f in $(QMAIL_DOT_FILES); do \
	  echo "  $${f}"; \
	  if [ -f $(MAIL_USER_HOME_DIR)/$${f} ]; then \
	    mv $(MAIL_USER_HOME_DIR)/$${f} $(MAIL_USER_HOME_DIR)/orig-$${f}; \
d62 1
a62 2
	  cp -f homedir/$${f} $(MAIL_USER_HOME_DIR); \
	done; \
d65 12
@


1.2
log
@add install server target; rename addresses directory to address
@
text
@d45 1
d50 11
@


1.1
log
@add anzu conf files for the new reconfigure.pl system
@
text
@d12 2
d15 1
a15 1
	@@echo 'Installing project configuration files to sandbox'; \
d31 19
@

