Commit 05cff6f5 authored by sumpfralle's avatar sumpfralle

allow more flexibility for the Makefile operation

updated the Changelog regarding the new distutils packaging


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@237 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 469c6272
Version 0.2.2 - UNRELEASED Version 0.2.2 - UNRELEASED
* added a graphical installer for Windows (via distutils)
* fixed broken commandline parameter "--template" * fixed broken commandline parameter "--template"
* added workaround for ODE collision detection, that is broken under specific circumstances * added workaround for ODE collision detection, that is broken under specific circumstances
* fixed "division by zero" error in non-ODE mode * fixed "division by zero" error in non-ODE mode
* allow to disable ODE via commandline option * allow to disable ODE via commandline option
* bugs fixed in cylindrical and toroidal cutter when using dropcutter on horizontal triangles * bugs fixed in cylindrical and toroidal cutter when using dropcutter on horizontal triangles
* fixed "setup.py" for distutils packaging (contributed by Arthur Magill)
Version 0.2.1 - 2010-03-09 Version 0.2.1 - 2010-03-09
* fixed code that depended on GTK 2.16 (instead of 2.12) * fixed code that depended on GTK 2.16 (instead of 2.12)
......
# BEWARE: this makefile is solely used for preparing a release - it is not useful for compiling/installing the program
# use something like "VERSION=0.2 make" to override the VERSION on the command line # use something like "VERSION=0.2 make" to override the VERSION on the command line
VERSION ?= svn VERSION ?= $(shell sed -n "s/^.*[\t ]*version[\t ]*=[\t ]*[\"']\([^\"']*\)[\"'].*/\1/gp" setup.py)
SVN_BASE = https://pycam.svn.sourceforge.net/svnroot/pycam SVN_BASE ?= https://pycam.svn.sourceforge.net/svnroot/pycam
RELEASE_PREFIX = pycam- RELEASE_PREFIX ?= pycam-
ARCHIVE_DIR_RELATIVE ?= release-archives
EXPORT_DIR = $(RELEASE_PREFIX)$(VERSION) EXPORT_DIR = $(RELEASE_PREFIX)$(VERSION)
EXPORT_FILE_PREFIX = $(EXPORT_DIR) EXPORT_FILE_PREFIX = $(EXPORT_DIR)
EXPORT_ZIP = $(EXPORT_FILE_PREFIX).zip EXPORT_ZIP = $(ARCHIVE_DIR)/$(EXPORT_FILE_PREFIX).zip
EXPORT_TGZ = $(EXPORT_FILE_PREFIX).tar.gz EXPORT_TGZ = $(ARCHIVE_DIR)/$(EXPORT_FILE_PREFIX).tar.gz
EXPORT_WIN32 = $(EXPORT_FILE_PREFIX).win32.exe EXPORT_WIN32 = $(ARCHIVE_DIR)/$(EXPORT_FILE_PREFIX).win32.exe
EXPORT_ARCHIVE_DIR = $(EXPORT_DIR)/dist
# turn the destination directory into an absolute path
ARCHIVE_DIR := $(shell pwd)/$(ARCHIVE_DIR_RELATIVE)
.PHONY: zip tgz win32 clean dist svn_export tag .PHONY: zip tgz win32 clean dist svn_export upload create_archive_dir
dist: zip tgz win32 dist: zip tgz win32
@# remove the tmp directory when everything is done @# remove the tmp directory when everything is done
...@@ -22,17 +26,20 @@ clean: ...@@ -22,17 +26,20 @@ clean:
svn_export: clean svn_export: clean
svn export --quiet "$(SVN_BASE)/trunk" "$(EXPORT_DIR)" svn export --quiet "$(SVN_BASE)/trunk" "$(EXPORT_DIR)"
zip: svn_export create_archive_dir:
python "$(EXPORT_DIR)/setup.py" sdist --format zip mkdir -p "$(ARCHIVE_DIR)"
zip: create_archive_dir svn_export
cd "$(EXPORT_DIR)"; python setup.py sdist --format zip --dist-dir "$(ARCHIVE_DIR)"
tgz: svn_export tgz: create_archive_dir svn_export
python "$(EXPORT_DIR)/setup.py" sdist --format gztar cd "$(EXPORT_DIR)"; python setup.py sdist --format gztar --dist-dir "$(ARCHIVE_DIR)"
win32: svn_export win32: create_archive_dir svn_export
# this is a binary release # this is a binary release
python "$(EXPORT_DIR)/setup.py" bdist --format wininst cd "$(EXPORT_DIR)"; python setup.py bdist --format wininst --dist-dir "$(ARCHIVE_DIR)"
tag: upload:
svn cp "$(SVN_BASE)/trunk" "$(SVN_BASE)/tags/release-$(VERSION)" -m "tag release $(VERSION)" svn cp "$(SVN_BASE)/trunk" "$(SVN_BASE)/tags/release-$(VERSION)" -m "tag release $(VERSION)"
svn import "$(EXPORT_ZIP)" "$(SVN_BASE)/tags/archives/$(EXPORT_ZIP)" -m "added released zip file for version $(VERSION)" svn import "$(EXPORT_ZIP)" "$(SVN_BASE)/tags/archives/$(EXPORT_ZIP)" -m "added released zip file for version $(VERSION)"
svn import "$(EXPORT_TGZ)" "$(SVN_BASE)/tags/archives/$(EXPORT_TGZ)" -m "added released tgz file for version $(VERSION)" svn import "$(EXPORT_TGZ)" "$(SVN_BASE)/tags/archives/$(EXPORT_TGZ)" -m "added released tgz file for version $(VERSION)"
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
- commit the changes - commit the changes
2) create the archives 2) create the archives
- VERSION=0.2 make dist - "make dist" (the release version is extracted from "setup.py")
- carefully check the resulting content of the archives - carefully check the resulting content of the archives
3) create an svn tag for the release (includes uploading the archive files) 3) create an svn tag for the release (includes uploading the archive files)
- VERSION=0.2 make tag - "make upload"
4) upload files to sourceforge 4) upload files to sourceforge
- https://sourceforge.net/project/admin/explorer.php?group_id=237831 - https://sourceforge.net/project/admin/explorer.php?group_id=237831
......
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