head	1.5;
access;
symbols
	TIGRIS_0_9_2_4:1.4
	TIGRIS_0_9_2_3:1.4
	TIGRIS_0_9_2:1.4.0.6
	TIGRIS_0_9_0:1.4.0.4
	TIGRIS_0_8_4:1.4.0.2
	EYEBROWSE_WM_0_89:1.3;
locks; strict;
comment	@# @;


1.5
date	2001.02.06.12.54.01;	author ms;	state dead;
branches;
next	1.4;

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

1.3
date	2000.09.27.23.35.31;	author ms;	state Exp;
branches;
next	1.2;

1.2
date	2000.09.27.20.28.57;	author ms;	state Exp;
branches;
next	1.1;

1.1
date	2000.09.27.00.41.37;	author ms;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Here is the move we've all been waiting for. No more confusing (well 1 :\)
references to SANDBOX all over the place, extra config files that are collabnet
specific and what not.
The 60* files have been moved to helm/conf/eyebrowse and the logic removed from
the Makefiles (which only were useful to tigris instantiations) is now in
build-helm.xml (antfile).
Changed conf data to match documentation and make more sense in general.
The only SANDBOX ref is in the "eyebrowse" wrapper script, this can go away also,
I just havent gotten around to that.
The next thing to go are the helmservlets and templates.
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
# 
#  This cooks the templates (if necessary), and copies them into the 
#  installation location.
#

include Makefile.config

cook: clean
	@@if [ $(SANDBOX) = "" ]; then \
	  echo 'You must install the templates by hand for eyebrowse, to match what is in the ' \
	  echo 'eyebrowse.properties file ' \
	  exit 1; \
	fi 
	mkdir -p $(COOKED_DIR); \
	rsync -a --exclude CVS --delete $(RAW_DIR) $(COOKED_DIR); \
	/$(SANDBOX)/scripts/template-cooker; \
	find $(COOKED_DIR) -type f -name '*.wm' | xargs perl -pi -e 's,\$$SERVLET_TEMPLATE_ROOT;,$(SERVLET_TEMPLATE_ROOT),g'; \
	$(SANDBOX)/scripts/opersx 'ls *.wm &> /dev/null && $(SANDBOX)/scripts/link-cooker *.wm' '$(COOKED_DIR)'

clean:
	- rm -rf $(COOKED_DIR)

install:
	@@if [ $(SANDBOX) = "" ]; then \
	  echo 'You must install the templates by hand for eyebrowse, to ' \
	  echo 'match what is in the eyebrowse.properties file ' ; \
	  exit 1; \
	fi ; \
	mkdir -p --verbose $(INSTALL_DIR); \
	if [ "$(USE_COOKED_TEMPLATES)" = 'true' ]; then \
	  if [ -d $(COOKED_DIR) ]; then \
	    echo 'Copying cooked templates'; \
	    rsync -a --delete $(COOKED_DIR)/$(RAW_DIR) $(INSTALL_DIR)/org; \
	  else \
	    echo -n 'Cannot copy cooked templates: '; \
	    echo '$(COOKED_DIR) directory does not exist'; \
	  fi; \
	else \
	  mkdir -p --verbose $(INSTALL_DIR)/$(RAW_DIR) ; \
	  echo 'Copying uncooked templates'; \
	  rsync -a --delete $(RAW_DIR)/$(PROJECT) $(INSTALL_DIR)/$(RAW_DIR); \
	fi ; \
	if [ ! -d $(INSTALL_DIR)/$(RAW_DIR)/$(PROJECT) ]; then \
	  echo 'Your setup is non-standard, you will need to install the ' ; \
	  echo 'templates by hand to match what is in eyebrowse.properties'; \
	  echo "$(INSTALL_DIR)/$(RAW_DIR)/$(PROJECT)" ; \
	  exit 1 ; \
	fi ; \
	cp $(RAW_DIR)/$(PROJECT)/*.wm $(INSTALL_DIR)/$(RAW_DIR)/$(PROJECT)
@


1.4
log
@correct syntax & logical errors
@
text
@@


1.3
log
@Made template-cooker work with eyebrowse and alert user if they need to install the templates by hand
Submitted by:	Michael Salmon
@
text
@d27 2
a28 2
	  echo 'You must install the templates by hand for eyebrowse, to match what is in the ' \
	  echo 'eyebrowse.properties file ' \
d30 1
a30 1
	fi
d41 1
d43 2
a44 2
	  rsync -a --delete $(RAW_DIR)/$(PROJECT) $(INSTALL_DIR); \
	fi
d46 5
a50 3
	  echo "Your setup is non-standard, you will need to install the templates by hand to match what is in eyebrowse.properties"; \
	  exit 1
	fi
@


1.2
log
@Edited template installer to think about people not using sandbox's and report to them a small msg.
Submitted by:	Michael Salmon
@
text
@d44 5
@


1.1
log
@Makefiles to install templates into proper place, whether that be a sandbox or not.
Submitted by:	Michael Salmon
Reviewed by:	Michael Stack
@
text
@d11 6
a16 1
	@@mkdir $(COOKED_DIR); \
d18 1
a18 1
	/$(SANDBOX)/scripts/template-cooker -i ; \
a20 1
	chgrp -R httpd $(COOKED_DIR)
d26 6
a31 1
	@@mkdir -p --verbose $(INSTALL_DIR); \
d35 1
a35 1
	    rsync -a $(COOKED_DIR)/$(RAW_DIR)/ $(INSTALL_DIR); \
d42 1
a42 1
          rsync -a $(RAW_DIR)/ $(INSTALL_DIR)/$(RAW_DIR); \
@

