source: releases/Makefile @ 337

Revision 337, 1.6 KB checked in by mmckerns, 6 years ago (diff)

automate windows build (ticket #127)

Line 
1# CURRENT RELEASE:
2#---------------------------------------------------
3NPATCH_0_2a1 = 2
4#---------------------------------------------------
5
6all: patch release zip exe clean
7tgz: patch release clean
8src: patch release zip clean
9win: patch zip exe clean
10exe: installer distclean
11
12patch:
13        patch -p0 -i mystic-0.2a1-patch${NPATCH_0_2a1}.diff
14
15zip:
16        zip -r mystic-0.2a1-p${NPATCH_0_2a1}.zip mystic-0.2a1
17
18release:
19        tar -cvzf mystic-0.2a1-p${NPATCH_0_2a1}.tgz mystic-0.2a1
20
21installer:
22        cd mystic-0.2a1; python setup.py bdist --format=wininst; cd ..
23        cd mystic-0.2a1; cd dist; mv -f mystic-0.2a1*exe ..; cd ..; cd ..
24        cd mystic-0.2a1; mv -f mystic-0.2a1*exe ..; cd ..
25        mv -f mystic-0.2a1*exe mystic-0.2a1-p${NPATCH_0_2a1}.win32.exe
26
27distclean:
28        cd mystic-0.2a1; rm -rf build dist mystic.egg-info; cd ..
29
30clean:
31        cd mystic-0.2a1; cd examples; rm -f test_mogi*; cd ..; cd ..
32        cd mystic-0.2a1; cd mystic; rm -f tools*; cd ..; cd ..
33        cd mystic-0.2a1; cd mystic; rm -f differential_evolution*; cd ..; cd ..
34        svn up
35
36
37# PRIOR RELEASES:
38#---------------------------------------------------
39NPATCH_0_1a2 = 0
40#---------------------------------------------------
41
42release_0_1a2:
43        tar -cvzf mystic-0.1a2.tgz mystic-0.1a2
44
45clean_0_1a2:
46        svn up
47
48
49#---------------------------------------------------
50NPATCH_0_1a1 = 3
51#---------------------------------------------------
52patch_0_1a1:
53        patch -p0 -i mystic-0.1a1-patch${NPATCH_0_1a1}.diff
54
55release_0_1a1:
56        tar -cvzf mystic-0.1a1-p${NPATCH_0_1a1}.tgz mystic-0.1a1
57
58clean_0_1a1:
59        cd mystic-0.1a1; cd examples; rm -f README example*; cd ..; cd ..
60        cd mystic-0.1a1; cd mystic; rm -f scipy_optimize*; cd ..; cd ..
61        cd mystic-0.1a1; rm -f setup.py; cd ..
62        svn up
63
Note: See TracBrowser for help on using the repository browser.