[Zope-CVS] CVS: Zope - Makefile.in:1.1.4.1 makeinstance.in:1.1.2.1

Chris McDonough chrism@zope.com
Wed, 28 Aug 2002 00:12:31 -0400


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv3154

Added Files:
      Tag: chrism-install-branch
	Makefile.in makeinstance.in 
Log Message:
Do a better job of copying files and directories to the target directory.  Set sane permissions for each file and directory copied.

Moved lots of logic into Python to avoid the vagaries of cross-platform shell scripting.


=== Added File Zope/Makefile.in ===
# Zope2 build and install Makefile.

# We do as much as possible in Python in order to avoid needing to
# learn autoconf or some other awful thing. ;-)

PYTHON=%(python)s
ZOPE_HOME=%(zope_home)s
BUILD_DIR=%(build_dir)s
RM=rm -rf
FIND=find
XARGS=xargs

.PHONY : clean install uninstall

build:
	${PYTHON} ${BUILD_DIR}/inst/compile_all.py
	${PYTHON} -c "open('${BUILD_DIR}/build', 'w+')"
	@echo
	@echo Zope built.  Next, do \'make install\'.

install: build
	${PYTHON} ${BUILD_DIR}/inst/source_install.py --src="${BUILD_DIR}"\
          --dst="${ZOPE_HOME}" --rm-from-dst="Makefile Makefile.in configure\
          stupid_clean w_pcgi.py wo_pcgi.py setup.py start stop build\
          inituser makeinstance.in *.pyc *.pyo"
	@echo
	@echo Zope binaries installed successfully.
	@echo Now run \'${ZOPE_HOME}/makeinstance.\'

uninstall:
	${RM} ${ZOPE_HOME}

clean:
	${FIND} ${BUILD_DIR} -name '*.o' -o -name '*.so' -o -name '*.py[co]' \
          -o -name 'core*' | ${XARGS} rm -f
	${RM} ${BUILD_DIR}/build


=== Added File Zope/makeinstance.in ===
#!/bin/sh
%(python)s %(zope_home)s/inst/make_instance.py