[Zope-Checkins] SVN: Zope/trunk/inst/Makefile.win.in |- Add version_txt target

Sidnei da Silva sidnei at awkly.org
Wed Apr 13 22:01:49 EDT 2005


Log message for revision 29976:
  
  |- Add version_txt target
  |- Call version_txt target from install target
  |
  

Changed:
  U   Zope/trunk/inst/Makefile.win.in

-=-
Modified: Zope/trunk/inst/Makefile.win.in
===================================================================
--- Zope/trunk/inst/Makefile.win.in	2005-04-14 02:00:15 UTC (rev 29975)
+++ Zope/trunk/inst/Makefile.win.in	2005-04-14 02:01:49 UTC (rev 29976)
@@ -50,13 +50,17 @@
 	-$(RMRF) $(BUILD_BASE)
 
 # install:     Install a software home.
-install: build
+install: build version_txt
 	$(PYTHON) "$(BASE_DIR)\setup.py" $(DISTUTILS_OPTS) install \
            --prefix="$(PREFIX)" $(BUILD_FLAGS) $(INSTALL_FLAGS)
 	@ echo.
 	@ echo Zope binaries installed successfully.
 	@ echo Now run '$(PYTHON) $(PREFIX)\bin\mkzopeinstance.py'
 
+# version_txt: create a version file in lib/python/version.txt
+version_txt:
+	echo "Zope $(MAJOR_VERSION).$(MINOR_VERSION)-$(RELEASE_TAG)" >\
+          "$(BASE_DIR)/lib/python/version.txt"
 
 # clean:       Delete the build files and any binaries/bytecode files in
 #              the source directory for good measure.



More information about the Zope-Checkins mailing list