Commit 034f6906 authored by Florian Schulze's avatar Florian Schulze

Some more changes to accomodate for the Zope2 egg/buildout.

parent 18c52d7b
...@@ -25,6 +25,7 @@ BUILD_FLAGS=--build-base="${BUILD_BASE}" \ ...@@ -25,6 +25,7 @@ BUILD_FLAGS=--build-base="${BUILD_BASE}" \
RM=rm -f RM=rm -f
RMRF=rm -rf RMRF=rm -rf
FIND=find FIND=find
GREP=grep
XARGS=xargs XARGS=xargs
CD=cd CD=cd
LN=ln -sfn LN=ln -sfn
...@@ -103,7 +104,9 @@ uninstance: ...@@ -103,7 +104,9 @@ uninstance:
# the source directory for good measure. # the source directory for good measure.
clean: unbuild clean: unbuild
${FIND} "${BASE_DIR}" \ ${FIND} "${BASE_DIR}" \
-name '*.py[co]' -o -name '*.so' -o -name '*.o' | ${XARGS} ${RM} -name '*.py[co]' -o -name '*.so' -o -name '*.o' | \
grep -vE "${BASE_DIR}/src|${BASE_DIR}/parts|${BASE_DIR}/eggs" | \
${XARGS} ${RM}
${RM} "$(BASE_DIR)/lib/python/Zope2/version.txt" ${RM} "$(BASE_DIR)/lib/python/Zope2/version.txt"
${RMRF} build ${RMRF} build
...@@ -112,7 +115,7 @@ version_txt: ...@@ -112,7 +115,7 @@ version_txt:
printf "Zope ${MAJOR_VERSION}.${MINOR_VERSION}-${RELEASE_TAG}" >\ printf "Zope ${MAJOR_VERSION}.${MINOR_VERSION}-${RELEASE_TAG}" >\
"${BASE_DIR}/lib/python/Zope2/version.txt" "${BASE_DIR}/lib/python/Zope2/version.txt"
sdist: clobber sdist_tgz sdist: clean sdist_tgz
# sdist_tgz: Create a tgz archive file as a source distribution. # sdist_tgz: Create a tgz archive file as a source distribution.
# #
...@@ -130,6 +133,7 @@ sdist_tgz: version_txt ...@@ -130,6 +133,7 @@ sdist_tgz: version_txt
--exclude=build-base \ --exclude=build-base \
--exclude=bootstrap \ --exclude=bootstrap \
--exclude=develop-eggs \ --exclude=develop-eggs \
--exclude=eggs \
--exclude=include \ --exclude=include \
--exclude=parts \ --exclude=parts \
--exclude=src \ --exclude=src \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment