Commit cc1e2fb2 authored by Chris McDonough's avatar Chris McDonough

Write version.txt to the right directory.

parent d5c2e9a3
...@@ -104,13 +104,13 @@ uninstance: ...@@ -104,13 +104,13 @@ uninstance:
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' | ${XARGS} ${RM}
${RM} "$(BASE_DIR)/lib/python/version.txt" ${RM} "$(BASE_DIR)/lib/python/Zope2/version.txt"
${RMRF} build ${RMRF} build
# version_txt: create a version file in lib/python/version.txt # version_txt: create a version file in lib/python/version.txt
version_txt: version_txt:
printf "Zope ${MAJOR_VERSION}.${MINOR_VERSION}-${RELEASE_TAG}" >\ printf "Zope ${MAJOR_VERSION}.${MINOR_VERSION}-${RELEASE_TAG}" >\
"${BASE_DIR}/lib/python/version.txt" "${BASE_DIR}/lib/python/Zope2/version.txt"
sdist: clobber sdist_tgz sdist: clobber sdist_tgz
......
...@@ -105,13 +105,13 @@ uninstance: ...@@ -105,13 +105,13 @@ uninstance:
clean: clean:
$(CD) "$(BASE_DIR)" $(CD) "$(BASE_DIR)"
-$(RM) /s *.pyc *.pyo *.dll *.o *.obj *.pyd -$(RM) /s *.pyc *.pyo *.dll *.o *.obj *.pyd
-$(EXISTS) "$(BASE_DIR)\lib\python\version.txt" $(RM) "$(BASE_DIR)\lib\python\version.txt" -$(EXISTS) "$(BASE_DIR)\lib\python\Zope2\version.txt" $(RM) "$(BASE_DIR)\lib\python\Zope2\version.txt"
-$(EXISTS) build $(RMRF) build -$(EXISTS) build $(RMRF) build
# version_txt: create a version file in lib/python/version.txt # version_txt: create a version file in lib/python/Zope2/version.txt
version_txt: version_txt:
echo Zope $(MAJOR_VERSION).$(MINOR_VERSION)-$(RELEASE_TAG) > \ echo Zope $(MAJOR_VERSION).$(MINOR_VERSION)-$(RELEASE_TAG) > \
"$(BASE_DIR)/lib/python/version.txt" "$(BASE_DIR)/lib/python/Zope2/version.txt"
# sdist: Create a source distribution file (implies clobber). # sdist: Create a source distribution file (implies clobber).
# #
......
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