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state Exp;
branches;
next	1.11;

1.11
date	2001.04.24.00.28.37;	author dlr;	state Exp;
branches;
next	1.10;

1.10
date	2001.04.23.23.07.28;	author jasonb;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.29.22.54.29;	author ms;	state Exp;
branches;
next	1.8;

1.8
date	2000.12.18.20.07.13;	author thom;	state Exp;
branches;
next	1.7;

1.7
date	2000.12.06.09.31.08;	author lucas;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.13.23.13.58;	author lucas;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2000.11.12.22.57.30;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.18.19.48.48;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2000.09.18.19.29.10;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2000.07.12.03.48.22;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2000.07.11.21.49.00;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.14.07;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.31.48;	author dlr;	state Exp;
branches;
next	;

1.6.2.1
date	2000.12.06.07.53.37;	author lucas;	state Exp;
branches;
next	;


desc
@@


1.13
log
@edk and ms (the resident Solaris experts) have decided that checking
$USER is child safe in this situation.
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
#

include Makefile.config
PATCH_PERMISSIONS=scripts/patch_permissions
ID_CMD=id


default: 
	@@echo 'Run `make install` to install $(PROJECT) user data'

install: checkdirs checkfiles
	@@mkdir -p --verbose $(INSTALL_DIR); \
	echo 'Installing initial user data into sandbox $(SANDBOX)'; \
        mkdir -p --verbose $(INSTALL_DIR)/fileserv; \
	for d in $(DATA_DIRS); do \
	  rsync -ar --cvs-exclude $${d} $(INSTALL_DIR); \
	done; \
	unset d; \
	if [ "${USER}" = 'root' ]; then \
		echo 'running patch_permissions'; \
		$(SANDBOX)/$(PATCH_PERMISSIONS); \
	fi

checkdirs:
	@@for d in $(CVS_DIRS); do \
	  [ -d $${d} ] || mkdir --parents --verbose $${d}; \
	done

checkfiles:
	@@for f in $(CVS_FILES); do \
	  [ -f $${f} ] || touch $${f}; \
	done

clean:
@


1.12
log
@A wee bit more cleanup.
@
text
@d21 1
a21 1
	if [ `id -u` = '0' ]; then \
@


1.11
log
@Hopefully more portable.
@
text
@d21 1
a21 1
	if [ `id -u` = "0" ]; then \
a25 1

a34 1

@


1.10
log
@Corrected handling of shell variable.  This doesn't look very portable...
- dlr@@collab.net
@
text
@d21 1
a21 1
	if [ "$${UID}" = "0" ]; then \
@


1.9
log
@using UID from the env is more portable then id -u, which doesnt work for all unixes
@
text
@d21 2
a22 2
	if [ ${UID} = "0" ] ; then \
		echo running patch_permissions ; \
@


1.8
log
@move creation of missing dirs/files from path_perms to makefile
@
text
@d21 1
a21 1
	if [ `id -u` = "0" ] ; then \
@


1.7
log
@Fixed compile error

Added support for file upload/download

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d13 1
a13 1
install:
d25 11
@


1.6
log
@Moved logic for calling patch_permissions to the proper directory

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d16 1
@


1.6.2.1
log
@Added the creation of the fileserv directory

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a15 1
        mkdir -p --verbose $(INSTALL_DIR)/fileserv; \
@


1.5
log
@Resolved merge conflicts.
@
text
@d6 3
d19 6
a24 1
	unset d
@


1.4
log
@a little safer
@
text
@d17 2
@


1.3
log
@trying to avoid CVS dirs with references to tigris.org and
projects.collab.net in the $SANDBOX/data dir
@
text
@d14 1
a14 1
	  rsync -ar --exclude CVS --delete $${d} $(INSTALL_DIR); \
@


1.2
log
@Just the output please...
@
text
@d12 1
a12 1
	echo 'Installing user data into sandbox $(SANDBOX)'; \
d14 1
a14 1
	  cp -rf $${d} $(INSTALL_DIR); \
@


1.1
log
@Shiny new Makefile for the user data directories.
@
text
@d8 1
a8 1
	echo 'Run `make install` to install $(PROJECT) user data'
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@d8 1
a8 1
	@@echo 'Run `make install` to install $(PROJECT) user data'
d12 1
a12 1
	echo 'Installing initial user data into sandbox $(SANDBOX)'; \
d14 1
a14 1
	  rsync -ar --cvs-exclude $${d} $(INSTALL_DIR); \
a16 3

clean:

@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a5 3
PATCH_PERMISSIONS=scripts/patch_permissions
ID_CMD=id

d10 1
a10 1
install: checkdirs checkfiles
a12 1
        mkdir -p --verbose $(INSTALL_DIR)/fileserv; \
d16 1
a16 5
	unset d; \
	if [ `id -u` = "0" ] ; then \
		echo running patch_permissions ; \
		$(SANDBOX)/$(PATCH_PERMISSIONS); \
	fi
d18 1
a19 12
checkdirs:
	@@for d in $(CVS_DIRS); do \
	  [ -d $${d} ] || mkdir --parents --verbose $${d}; \
	done

checkfiles:
	@@for f in $(CVS_FILES); do \
	  [ -f $${f} ] || touch $${f}; \
	done


clean:
@


