Changeset 11829:03f07890cba5 in orange


Ignore:
Timestamp:
01/13/14 11:34:38 (3 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Upload the built snapshots and logs using sftp.

Location:
install-scripts
Files:
1 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/callCreateSnapshot.btm

    r6044 r11829  
     1rem # Required env variables: 
     2rem #    PUBLISH_URL - url (user@host) of the publish server 
     3rem #    ID_KEY - identity key file for logging into publish server 
     4 
    15@echo off 
    26set QTVER=qt44-3rdparty 
     
    1418 
    1519rem # copy log(s) to web in any case (success or error) 
    16 set BUILDLOGDIR=%DOWNLOADDIR\buildLogs\winxp 
    17 if not direxist %BUILDLOGDIR mkdir /s %BUILDLOGDIR 
    18 del /eq %BUILDLOGDIR\win-snapshot-*.log 
    19 move /z %SCRIPTDIR\win-snapshot-create.%QTVER.log %BUILDLOGDIR 
    20 move /z %TMPDIR\win-snapshot*.log %BUILDLOGDIR 
     20rem # create a ftp script for moving the logs 
     21 
     22echo cd files/buildLogs/winxp > move.scr 
     23echo put %SCRIPTDIR%\win-snapshot-create.%QTVER%.log >> move.scr 
     24echo exit >> move.scr 
     25 
     26psftp -i "%ID_KEY%" "%PUBLISH_URL%" -batch -b move.scr 
  • install-scripts/createCommonAddOns__.btm

    r9730 r11829  
    2828  %PYTHON\python setup.py build -c mingw32 bdist_wininst > %COMPILELOG 
    2929  break_on_error 
    30 rem when compiled:  move /z %TMPDIR\Bioinformatics\dist\*.win32-py%npver.exe %TMPDIR\%PKG_BIOINFORMATICS-py%npver.exe 
    31   move /z %TMPDIR\Bioinformatics\dist\*.win32.exe %TMPDIR\%PKG_BIOINFORMATICS-py%npver.exe 
     30  move /z dist\*.win32.exe %TMPDIR\%PKG_BIOINFORMATICS-py%npver.exe 
    3231 
    33   REM # publish, add record to stamps_pyd.txt, needed for update from web (accessed by updateFromSVN.bat)   
    34   set TMPBINDIR=%TMPDIR\binaries\%pyver\add-ons\Bioinformatics 
    35   if not direxist %TMPBINDIR mkdir /s %TMPBINDIR 
    36    
    37   cdd %TMPDIR\Bioinformatics\build\lib.win32-%npver 
    38   for %pydf in (*.pyd) do ( 
    39     copy %pydf %TMPBINDIR 
    40     set MD5=%@MD5[%pydf] 
    41     echo add-ons\Bioinformatics\%pydf %MD5 >> %TMPDIR\binaries\%pyver\stamps_pyd.txt 
    42   ) 
    4332) 
    4433 
     
    5948  %PYTHON\python setup.py build -c mingw32 bdist_wininst > %COMPILELOG 
    6049  rem break_on_error 
    61   move /z %TMPDIR\Text\dist\*.win32-py%npver.exe %TMPDIR\%PKG_TEXT-py%npver.exe 
    62  
    63   REM # publish, add record to stamps_pyd.txt, needed for update from web (accessed by updateFromSVN.bat)   
    64   set TMPBINDIR=%TMPDIR\binaries\%pyver\add-ons\Text 
    65   if not direxist %TMPBINDIR mkdir /s %TMPBINDIR 
    66  
    67   cdd %TMPDIR\Text\build\lib.win32-%npver 
    68   for %pydf in (*.pyd) do ( 
    69     copy %pydf %TMPBINDIR 
    70     set MD5=%@MD5[%pydf] 
    71     echo add-ons\Text\%pydf %MD5 >> %TMPDIR\binaries\%pyver\stamps_pyd.txt     
    72   ) 
     50  move /z dist\*.win32-py%npver.exe %TMPDIR\%PKG_TEXT-py%npver.exe 
    7351) 
  • install-scripts/createCommon__.btm

    r11686 r11829  
    6060  if exist %TMPDIR\Orange\orangeqt.pyd del /q %TMPDIR\Orange\orangeqt.pyd 
    6161 
    62   REM # compress pyd and create stamps_pyd.txt, needed for update from web (accessed by updateFromSVN.bat) 
    63   set TMPBINDIR=%TMPDIR\binaries\%pyver 
    64   if not direxist %TMPBINDIR\%pyver mkdir /s %TMPBINDIR 
    65  
    6662  cdd %PYORANGEDIR 
    6763  except (*_d.pyd) for %pydf in (*.pyd) do ( 
    6864    if exist %TMPDIR\Orange\%pydf del /q %TMPDIR\Orange\%pydf 
    6965    copy %pydf %TMPDIR\Orange\ 
    70     copy %pydf %TMPBINDIR 
    71   ) 
    72  
    73   cdd %TMPBINDIR 
    74   if exist stamps_pyd.txt del /q stamps_pyd.txt 
    75   for %pydf in (*.pyd) do ( 
    76     set MD5=%@MD5[%pydf] 
    77     echo %pydf %MD5 >> stamps_pyd.txt 
    7866  ) 
    7967 
     
    9381    echo installation file was not built because no 3rd-party software available 
    9482  ) 
     83  type %COMPILELOG% 
    9584) 
    96  
    97 rem # compile documentation 
    98 REM cdd %SCRIPTDIR\doc 
    99 REM call compileDocumentation.btm 
    100 REM cdd %WEBDOCDIR 
    101 REM winrar a %DOWNLOADDIR\orange-chm.zip *.chm 
    102 REM break_on_error 
  • install-scripts/createSnapshot.btm

    r11534 r11829  
    22rem # %1 - folder with 3rd party software 
    33rem # - HG repository is updated to head 
     4rem # Required env variables: 
     5rem #    PUBLISH_URL - url (user@host) of the publish server 
     6rem #    ID_KEY - identity key file for logging into publish server 
    47 
    58call updateSetVariables__.btm snapshot 
     
    3336break_on_error 
    3437 
    35 rem # build msi file (disabled due to StrictVersion requirement for .msi) 
    36 rem e:\Python27\python.exe setup.py bdist_msi 
     38move /z dist\Orange-?.*.zip %TMPDIR\%SOURCE_SNAPSHOT 
    3739 
    38 break_on_error 
     40cd %TMPDIR 
     41rem # remember new filenames 
     42call "%SCRIPTDIR\updateVersionsPy__.btm" filenames_win.set 
    3943 
    4044rem # if no errors then publish on web (everything at the same time) 
    41 rem # remove any old files   
    42 rem # leave 10 latest versions. 
    43 e:\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:]]" 
    44 e:\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:]]" 
    45 e:\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:]]" 
    46 e:\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:]]" 
    4745 
    48 e:\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:]]" 
    49 e:\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:]]" 
    50 e:\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:]]" 
     46rem # Create a ftp batch script "move.scr". 
     47rem # (problem is sftp does not support an atomic move operation) 
    5148 
    52 rem except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe 
     49echo cd files > move.scr 
    5350 
    54 rem # publish 
     51for %FILENAME in (*.exe) do ( 
     52    echo put %FILENAME %FILENAME.tmp >> move.scr 
     53    echo rm %FILENAME >> move.scr 
     54    echo rename %FILENAME.tmp %FILENAME >> move.scr 
     55) 
    5556 
    56 move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT 
    57 move /z dist\Orange-?.*.msi %DOWNLOADDIR\%WIN_SNAPSHOT.msi 
     57echo put %SOURCE_SNAPSHOT %SOURCE_SNAPSHOT.tmp >> move.scr 
     58echo rm  %SOURCE_SNAPSHOT >> move.scr 
     59echo rename %SOURCE_SNAPSHOT.tmp %SOURCE_SNAPSHOT >> move.scr 
    5860 
    59 cdd %TMPDIR 
    60 move /z *.exe %DOWNLOADDIR 
    61 if not direxist %DOWNLOADDIR\binaries mkdir %DOWNLOADDIR\binaries 
    62 move /sdz binaries %DOWNLOADDIR\binaries 
     61echo put filenames_win.set filenames_win.set.tmp >> move.scr 
     62echo rm filenames_win.set >> move.scr 
     63echo rename filenames_win.set.tmp filenames_win.set >> move.scr 
    6364 
    64 rem # remember new filenames 
    65 cdd %SCRIPTDIR 
    66 call updateVersionsPy__.btm 
     65echo exit >> move.scr 
     66 
     67rem # Finally move all the files 
     68psftp -i "%ID_KEY%" %PUBLISH_URL% -batch -be -b move.scr 
     69 
     70rem # Cleanup 
     71del /Q *.exe 
     72del /Q *.zip 
  • install-scripts/updateAndCall.btm

    r11085 r11829  
    11 
    22cdd e:\orange\scripts 
    3  
    4  
    5 REM # Until orange-install-scripts repo is up this does not yet run 
    6 REM call hg clone https://bitbucket.org/biolab/orange-install-scripts . 
    7 REM call hg pull --update  
     3  
    84 
    95REM call hg clone https://bitbucket.org/biolab/orange snapshot 
     
    3632 
    3733call callCreateSnapshot.btm 
    38 shutdown -s 
  • install-scripts/updateSetVariables__.btm

    r11687 r11829  
    88set TMPDIR=%SCRIPTDIR\%1 
    99set SOURCEDIR=%TMPDIR\source 
    10 set DOWNLOADDIR=Z:\Volumes\download\ 
    11  
    12 REM # read filenames of current packages 
    13 set /r %DOWNLOADDIR\filenames_win.set 
    1410 
    1511set daystr=%_YEAR-%@format[02,%_MONTH]-%@format[02,%_DAY] 
     
    2723set PYTHONBASE=e:\Python 
    2824set PYTHONVERSIONS=26 27 
    29 REM # text mining can not be compiled for Python 23 
    30 set PYTHONVERSIONS_ADDONs=25 26 27 
     25 
     26set PYTHONVERSIONS_ADDONs=26 27 
    3127alias python="%PYTHONBASE%27\python.exe" 
    32 set .py="%PYTHONBASE%25\python.exe" 
    3328 
    3429alias nsis="c:\program files\nsis\makensis.exe" 
    35 alias winrar="c:\program files\winrar\winrar.exe" 
    36 alias upx="c:\program files\upx.exe" 
    3730alias cmake="c:\program files\cmake 2.8\bin\cmake.exe" 
    3831set QTVARS="e:\Qt\4.7.3\bin\qtvars.bat" 
  • install-scripts/updateVersionsPy__.btm

    r5516 r11829  
    11@echo off 
    2 set fhandle=%@FILEOPEN[%DOWNLOADDIR\filenames_win.set, write, t] 
     2set fhandle=%@FILEOPEN[%1, write, t] 
    33set foo=%@FILEWRITE[%fhandle,VERSION=%VERSION] 
    44set foo=%@FILEWRITE[%fhandle,RELEASE_DATE=%RELEASE_DATE] 
Note: See TracChangeset for help on using the changeset viewer.