head	1.13;
access;
symbols
	TIGRIS_1_1_0RC2:1.10.14.1
	TIGRIS_1_1_0RC1:1.10.14.1
	TIGRIS_1_1:1.10.14.1.0.2
	TIGRIS_1_0_8:1.10.14.1
	TIGRIS_1_0_8RC3:1.10.14.1
	TIGRIS_1_0_8RC2:1.10.14.1
	TIGRIS_1_0_8RC1:1.10.14.1
	TIGRIS_1_0_7:1.10.14.1
	TIGRIS_1_0_7RC3:1.10.14.1
	TIGRIS_1_0_7RC2:1.10.14.1
	TIGRIS_1_0_7RC1:1.10.14.1
	TIGRIS_1_0_6:1.10.14.1
	TIGRIS_1_0_6RC5:1.10.14.1
	TIGRIS_1_0_6RC4:1.10.14.1
	TIGRIS_1_0_6RC3:1.10.14.1
	TIGRIS_1_0_6RC2:1.10.14.1
	TIGRIS_1_0_6RC1:1.10.14.1
	TIGRIS_1_0_5:1.10.14.1
	TIGRIS_1_0_5RC6:1.10.14.1
	TIGRIS_1_0_5RC5:1.10.14.1
	TIGRIS_1_0_5RC4:1.10.14.1
	TIGRIS_1_0_5RC3:1.10.14.1
	TIGRIS_1_0_5RC2:1.10.14.1
	TIGRIS_1_0_5RC1:1.10.14.1
	TIGRIS_1_0_4:1.10.14.1
	TIGRIS_1_0_3:1.10.14.1
	TIGRIS_1_0_2:1.10.14.1
	TIGRIS_1_0_1:1.10.14.1
	TIGRIS_1_0:1.10.0.14
	TIGRIS_1_0_0:1.10
	TIGRIS_1_0_0_RC1:1.10.0.10
	HELM_PEER_PORT_BRANCH:1.10.0.8
	TIGRIS_0_9_2_4:1.10
	TIGRIS_0_9_2_3:1.10
	TIGRIS_0_9_2:1.10.0.6
	TIGRIS_0_9_0:1.10.0.4
	TIGRIS_0_8_4:1.10.0.2
	TIGRIS_710_FF:1.6
	TIGRIS_706:1.3;
locks; strict;
comment	@# @;


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

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

1.11
date	2001.05.15.19.09.31;	author stephane;	state Exp;
branches;
next	1.10;

1.10
date	2000.12.01.07.37.07;	author edk;	state Exp;
branches
	1.10.14.1;
next	1.9;

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

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

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

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

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

1.4
date	2000.10.27.16.44.03;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.10.26.21.56.48;	author edk;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.26.21.18.57;	author edk;	state Exp;
branches;
next	1.1;

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

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


desc
@@


1.13
log
@store + restore is kind of ugly; this is a prettier approach to how to
do certain operations in other directories.  parens cause an implicit
subshell, within which we do the cd & other operations.
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
#

include Makefile.config

default:

# build is a no op
build:

install-client: install

install-client-libs: install

install-server: install

install:
	@@echo 'Installing jar files and scripts' ; \
	if [ ! -d $(JAR_DIR) ] ; then \
	    mkdir $(JAR_DIR); \
	fi; \
	for file in $(JAR_FILES); do \
	  rm -f $(JAR_DIR)/$$file.jar; \
	  cp -f $$file-$(VERSION).jar $(JAR_DIR); \
	  ( cd $(JAR_DIR) && ln -s $$file-$(VERSION).jar $$file.jar ); \
	done; \
	if [ ! -d $(SCRIPTS_INSTALL_DIR) ] ; then \
	    mkdir $(SCRIPTS_INSTALL_DIR); \
	fi; \
	find $(SCRIPTS_DIR) -type f -exec chmod a+x {} \; ; \
	rsync -ar $(SCRIPTS_DIR) $(SCRIPTS_INSTALL_DIR); \
	if [ ! -d $(PERL_DIR) ] ; then \
	  mkdir -p $(PERL_DIR); \
	fi; \
	for file in $(PERL_FILES); do \
	  chmod a+x site/perl/$$file*; \
	  if [ -e $(PERL_DIR)/$$file ] ; then \
	    mv -f $(PERL_DIR)/$$file $(PERL_DIR)/$$file.orig ; \
	  fi; \
	  cp -p -f site/perl/$$file* $(PERL_DIR); \
	done; \
	unset file; /bin/true


clean:
	rm -f -r src *.jar classes

#install:
#	@@echo 'Installing project configuration files to sandbox'; \
#	for f in $(CONF_FILES); do \
#	  echo "  $${f}"; \
#	  if [ -f $(CONF_DIR)/$${f} ]; then \
#	    mv $(CONF_DIR)/$${f} $(CONF_DIR)/$${f}.orig; \
#	  fi; \
#	  cp -f $${f} $(CONF_DIR); \
#	  registry=`echo $${f} | perl -pw -e 's/(.+)\.$(PROJECT)/$$1/'`; \
#	  registry=$(CONF_DIR)/registry.$${registry}; \
#	  if [ -r "$${registry}" ]; then \
#	    if [ ! "`grep -v '^#' $${registry} | grep $${f}`" ]; then \
#	      if [ "`make include-trace FILE=$$f | grep httpd`" ]; then \
#	        echo "Include conf/$${f}" >> $${registry}; \
#	      else \
#	        echo "include=$(CONF_DIR)/$${f}" >> $${registry}; \
#	      fi; \
#	    fi; \
#	  fi; \
#	done; \
#	for f in $(HTTPD_CONF_FILES); do \
#	  echo "  $${f}"; \
#	  if [ -f $(HTTPD_CONF_DIR)/$${f} ]; then \
#	    mv $(HTTPD_CONF_DIR)/$${f} $(HTTPD_CONF_DIR)/$${f}.orig; \
#	  fi; \
#	  cp -f $${f}* $(HTTPD_CONF_DIR); \
#	done; \
#	echo 'Installation of project configuration files complete'; \
#	unset registry f

@


1.12
log
@return to current directory where necessary
@
text
@a19 1
	OLDDIR=`pwd`; \
d26 1
a26 1
	  cd $(JAR_DIR) && ln -s $$file-$(VERSION).jar $$file.jar; \
a30 1
	cd $$OLDDIR ; unset OLDDIR; \
@


1.11
log
@Fixed symlinking of anzu jar to be relative.


----------------------------------------------------------------------
@
text
@d20 1
d32 1
@


1.10
log
@copy the scripts required for e-mail delivery into a reasonable location
@
text
@d26 1
a26 1
	  ln -s $(JAR_DIR)/$$file-$(VERSION).jar $(JAR_DIR)/$$file.jar; \
@


1.10.14.1
log
@use -f test instead of -e (since it's portable)
@
text
@d38 1
a38 1
	  if [ -f $(PERL_DIR)/$$file ] ; then \
@


1.9
log
@don't delete stuff (or the supervise info will be blown away)
@
text
@d25 3
a27 3
          cp -f $$file-$(VERSION).jar $(JAR_DIR); \
          ln -s $(JAR_DIR)/$$file-$(VERSION).jar $(JAR_DIR)/$$file.jar; \
        done; \
d33 12
a44 1
        unset file; /bin/true
@


1.8
log
@switch to supervise to start anzu server
@
text
@d32 1
a32 1
	rsync -ar --delete $(SCRIPTS_DIR) $(SCRIPTS_INSTALL_DIR); \
@


1.7
log
@copy the stop_anzu.pl script ; also, try to make backups
@
text
@d28 2
a29 2
	if [ ! -d $(PERL_DIR) ] ; then \
	    mkdir $(PERL_DIR); \
d31 2
a32 7
	for file in $(PERL_FILES); do \
          chmod a+x site/perl/$$file*; \
          if [ -e $(PERL_DIR)/$$file ] ; then \
              mv -f $(PERL_DIR)/$$file $(PERL_DIR)/$$file.orig ; \
          fi; \
          cp -p -f site/perl/$$file* $(PERL_DIR); \
        done; \
@


1.6
log
@fix a typo (missing semicolon)
@
text
@d33 3
@


1.5
log
@a number of small bug fixes & some reorganization to put this into
a framework where it can be tested.
@
text
@d32 1
a32 1
          chmod a+x site/perl/$$file* \
@


1.4
log
@The default for a `make` in this directory is to do nothing.
@
text
@d19 1
a19 1
	@@echo 'Installing jar files' ; \
d24 2
a25 4
	  if [ -f "$(JAR_DIR)/$$file" ] ; then \
	      rm $(JAR_DIR)/$$file.jar; \
	  fi; \
          cp $$file-$(VERSION).jar $(JAR_DIR); \
d27 7
@


1.3
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
@d7 2
@


1.2
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
@d14 2
d17 1
a17 1
	@@echo 'Installing client jar files' ; \
d21 1
a21 1
	for file in $(JAR_CLIENT_FILES); do \
a29 14
install-server:
	@@echo 'Installing server jar files' ; \
	if [ ! -d $(JAR_DIR) ] ; then \
	    mkdir $(JAR_DIR); \
	fi; \
	for file in $(JAR_SERVER_FILES); do \
	  if [ -f "$(JAR_DIR)/$$file.jar" ] ; then \
	      rm $(JAR_DIR)/$$file.jar; \
	  fi; \
          cp $$file-$(VERSION).jar $(JAR_DIR); \
          ln -s $(JAR_DIR)/$$file-$(VERSION).jar $(JAR_DIR)/$$file.jar; \
        done; \
        unset file; /bin/true

d31 1
a31 1
	rm -f -r src *.jar
@


1.1
log
@basic makefiles to install jar files.
@
text
@d12 2
@

