head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.5
	TIGRIS_1_1_0RC1:1.5
	TIGRIS_1_1:1.5.0.10
	TIGRIS_1_0_8:1.5
	TIGRIS_1_0_8RC3:1.5
	TIGRIS_1_0_8RC2:1.5
	TIGRIS_1_0_8RC1:1.5
	TIGRIS_1_0_7:1.5
	TIGRIS_1_0_7RC3:1.5
	TIGRIS_1_0_7RC2:1.5
	TIGRIS_1_0_7RC1:1.5
	TIGRIS_1_0_6:1.5
	TIGRIS_1_0_6RC5:1.5
	TIGRIS_1_0_6RC4:1.5
	TIGRIS_1_0_6RC3:1.5
	TIGRIS_1_0_6RC2:1.5
	TIGRIS_1_0_6RC1:1.5
	TIGRIS_1_0_5:1.5
	TIGRIS_1_0_5RC6:1.5
	TIGRIS_1_0_5RC5:1.5
	TIGRIS_1_0_5RC4:1.5
	TIGRIS_1_0_5RC3:1.5
	TIGRIS_1_0_5RC2:1.5
	TIGRIS_1_0_5RC1:1.5
	TIGRIS_1_0_4:1.5
	TIGRIS_1_0_3:1.5
	TIGRIS_1_0_2:1.5
	TIGRIS_1_0_1:1.5
	TIGRIS_1_0:1.5.0.12
	TIGRIS_1_0_0:1.5
	TIGRIS_1_0_0_RC1:1.5.0.8
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.5
	TIGRIS_0_9_2_3:1.5
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.5
	TIGRIS_0_9_2_1:1.5
	TIGRIS_0_9_2:1.5.0.6
	TIGRIS_0_9_0:1.5.0.4
	TIGRIS_0_8_4:1.5.0.2;
locks; strict;
comment	@# @;


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

1.7
date	2001.08.06.20.31.30;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.29.22.54.29;	author ms;	state Exp;
branches;
next	1.5;

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

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

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

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

1.1
date	2000.11.22.02.24.15;	author ms;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.28.09;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@make does one level of interpolation; to access shell variable in
makefiles, you must use $${VARNAME} since $$ is transformed to $ for
interpolation by the shell.
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
#

default:
	@@echo 'Run `make install`'

include Makefile.config

install: install-dest
	@@echo 'Installing cron files into site'; \
	for p in $(CRON_PERIODS); do \
	  rsync -a --delete-excluded --force \
                --exclude="*_cron" --exclude="CVS" --exclude="*.in" --exclude="*.old" \
	    $(CRON_DIR)/$${p}/* $(INSTALL_DIR)/$${p}; \
	done; \
	if [ $${UID} = 0 ]; then \
	  echo 'Copying the cron job launchers to system directory'; \
	  for p in $(CRON_PERIODS); do \
	    chmod +x ./$${p}/$(MODULE)_$${p}_cron; \
	    if [ ! -d $(SYSTEM_CRON_BASE).$${p} ] ; then \
	      mkdir $(SYSTEM_CRON_BASE).$${p} ; \
	    fi; \
	    cp ./$${p}/$(MODULE)_$${p}_cron $(SYSTEM_CRON_BASE).$${p}/; \
	  done; \
	fi

install-dest:
	@@for p in $(CRON_PERIODS); do \
	  if [ ! -d $(INSTALL_DIR)/$${p} ]; then \
	    mkdir -p $(INSTALL_DIR)/$${p}; \
	  fi; \
	done

clean:
	@@rm -rf $(INSTALL_DIR)

FORCE:
@


1.7
log
@Corrected spacing.
@
text
@d17 1
a17 1
	if [ ${UID} = 0 ]; then \
@


1.6
log
@using UID from the env is more portable then id -u, which doesnt work for all unixes
@
text
@d23 1
a23 1
	    fi ; \
d31 1
a31 1
	   mkdir -p $(INSTALL_DIR)/$${p}; \
@


1.5
log
@sigh ... finish fixing error
@
text
@d17 1
a17 1
	if [ `id -u` = 0 ]; then \
@


1.4
log
@fix syntactic error
@
text
@d21 1
a21 1
	    if [ ! -d $(SYSTEM_CRON_BASE).$${p} ] ; \
@


1.3
log
@create the system base cron directory if it doesn't exist
@
text
@d21 1
a21 1
	    if [ ! -d $(SYSTEM_CRON_BASE).$${p} ; \
@


1.2
log
@Added directory 5mins with the ensuing cron inside it, moved functionality out of the Makefile and into a standalone script install_system_crons which reads data in eyebrowse.crontab to add to /etc/crontab
@
text
@d20 5
a24 2
            chmod +x ./$${p}/$(MODULE)_$${p}_cron; \
	    cp ./$${p}/$(MODULE)_$${p}_cron $(SYSTEM_CRON_BASE).$${p}; \
d27 1
@


1.1
log
@System to run crons from $SANDBOX/site/cron
@
text
@d13 2
a14 1
	  rsync -a --delete-excluded --force --exclude="CVS" \
d20 2
a21 2
	    chmod +x $(MODULE)_$${p}_cron; \
	    cp $(MODULE)_$${p}_cron $(SYSTEM_CRON_BASE).$${p}; \
a23 1

@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d13 1
a13 2
	  rsync -a --delete-excluded --force \
                --exclude="*_cron" --exclude="CVS" --exclude="*.in" --exclude="*.old" \
d19 2
a20 5
	    chmod +x ./$${p}/$(MODULE)_$${p}_cron; \
	    if [ ! -d $(SYSTEM_CRON_BASE).$${p} ] ; then \
	      mkdir $(SYSTEM_CRON_BASE).$${p} ; \
	    fi ; \
	    cp ./$${p}/$(MODULE)_$${p}_cron $(SYSTEM_CRON_BASE).$${p}/; \
@


