source: orange/install-scripts/createSnapshot.btm @ 8976:f16bad51a0b9

Revision 8976:f16bad51a0b9, 1.7 KB checked in by ales_erjavec <ales.erjavec@…>, 3 years ago (diff)

Another fix for source snapshot.

Line 
1rem # input arguments
2rem # %1 - folder with 3rd party software
3rem # - SVN is updated to head
4
5call updateSetVariables__.btm snapshot
6set WIN_SNAPSHOT=orange-win-snapshot-%daystr
7set WIN_PYTHON_SNAPSHOT=orange-win-w-python-snapshot-%daystr
8set ADDON_BIOINFORMATICS_SNAPSHOT=orangeAddOn-bioinformatics-snapshot-%daystr
9set ADDON_TEXT_SNAPSHOT=orangeAddOn-text-snapshot-%daystr
10set SOURCE_SNAPSHOT=orange-source-snapshot-%daystr.zip
11
12rem # update source(s) to revision HEAD
13cdd %TMPDIR
14svn cleanup
15svn update --ignore-externals
16
17rem # build core
18cdd %SCRIPTDIR
19call createCommon__.btm snapshot %1 %WIN_SNAPSHOT %WIN_PYTHON_SNAPSHOT
20break_on_error
21
22rem # build add ons
23cdd %SCRIPTDIR
24call createCommonAddOns__.btm snapshot %ADDON_BIOINFORMATICS_SNAPSHOT %ADDON_TEXT_SNAPSHOT
25break_on_error
26
27rem # if no errors then publish on web (everything at the same time)
28rem # remove any old files
29except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe
30
31rem # pack sources
32cdd %TMPDIR
33del /syeqtx sourcestopack
34mkdir sourcestopack
35cd sourcestopack
36svn export --native-eol LF -q http://orange.biolab.si/svn/orange/trunk/orange
37cd orange
38del *.pyd *.dll *.bat
39svn export --native-eol LF -q http://orange.biolab.si/svn/orange/trunk/source
40copy doc\LICENSES .
41copy doc\COPYING .
42copy doc\LICENSES source
43copy doc\COPYING source
44rem # build source distribution
45e:\Python26\python.exe setup.py sdist
46del %DOWNLOADDIR\orange-source-snapshot-????-??-??.zip
47move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT
48
49rem # publish
50cdd %TMPDIR
51move /z *.exe %DOWNLOADDIR
52if not direxist %DOWNLOADDIR\binaries mkdir %DOWNLOADDIR\binaries
53move /sdz binaries %DOWNLOADDIR\binaries
54
55rem # remember new filenames
56cdd %SCRIPTDIR
57call updateVersionsPy__.btm
Note: See TracBrowser for help on using the repository browser.