Ignore:
Timestamp:
03/13/12 12:34:44 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
cb5c9256673c36206f681679614c96ffc835fe73
Message:

Remove old binary versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/createSnapshot.btm

    r10275 r10503  
    99set ADDON_TEXT_SNAPSHOT=orangeAddOn-text-snapshot-hg-%daystr 
    1010set SOURCE_SNAPSHOT=orange-source-snapshot-hg-%daystr.zip 
    11  
    12 rem # update source(s) to revision HEAD 
    13 cdd %TMPDIR 
    1411 
    1512rem # build core 
     
    2724del /syeqtx sourcestopack 
    2825 
    29 call hg archive sourcestopack 
     26call hg clone . sourcestopack 
    3027 
    3128cd sourcestopack 
     
    3330rem # build source distribution 
    3431e:\Python27\python.exe setup.py sdist 
     32 
    3533rem # build msi file 
     34rem # build_msi only handles StrictVersion so we change Orange\version.py 
     35rem # and remove the .hg dir so the short_version is used 
     36e:\Python27\python.exe -c"print open('Orange/version.py', 'rb').read().replace('if not release:', 'if not release and False:')" > version.py.1 
     37move /z version.py.1 Orange\version.py 
     38del /syeqtx .hg 
     39 
    3640e:\Python27\python.exe setup.py bdist_msi 
    3741 
    38 rem del %DOWNLOADDIR\orange-source-snapshot-????-??-??.zip 
     42break_on_error 
     43 
     44rem # if no errors then publish on web (everything at the same time) 
     45rem # remove any old files   
     46rem # leave 10 latest versions.  
     47e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.exe'), reverse=True)[30:]]" 
     48e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-w-python-snapshot-hg-*.exe'), reverse=True)[30:]]" 
     49e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orangeAddOn-bioinformatics-snapshot-hg-*.exe'), reverse=True)[30:]]" 
     50e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orangeAddOn-text-snapshot-hg-*.exe'), reverse=True)[30:]]" 
     51 
     52e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-source-snapshot-hg-*.zip'), reverse=True)[10:]]" 
     53e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.exe'), reverse=True)[10:]]" 
     54e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.msi'), reverse=True)[10:]]" 
     55 
     56rem except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe 
     57 
     58rem # publish 
     59 
    3960move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT 
    4061move /z dist\Orange-?.*.msi %DOWNLOADDIR\%WIN_SNAPSHOT.msi 
    4162 
    42  
    43 rem # if no errors then publish on web (everything at the same time) 
    44 rem # remove any old files     
    45  
    46 except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe 
    47  
    48 rem # publish 
    4963cdd %TMPDIR 
    5064move /z *.exe %DOWNLOADDIR 
Note: See TracChangeset for help on using the changeset viewer.