Changeset 30395 for other-projects

Show
Ignore:
Timestamp:
08.03.2016 18:15:48 (3 years ago)
Author:
ak19
Message:

Got uploading to work at last.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/expeditee-release-kits/create-expeditee.bat

    r30393 r30395  
    11@echo off 
    22setlocal 
     3 
     4:: http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us 
     5for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) 
     6echo The current date is %mydate% 
     7 
    38 
    49:: currentdir (C:\Research\Nightly) 
     
    4045call rke 
    4146 
     47:: Uploading 
     48mkdir uploads 
     49copy products\Expeditee-1-windows.exe uploads\Expeditee-1-%mydate%-windows.exe 
     50copy rke.out uploads\rke-%mydate%-windows.out 
     51set PATH=C:\Windows\System32\linuxtools;C:\Program Files (x86)\PuTTY2;%PATH% 
     52:: Works from the cmd line: 
     53:: cd uploads && tar.exe -c * | plink.exe -T -i "C:\Research\Nightly\tools\keys\upload-expeditee.ppk" anupama@wharariki.cms.waikato.ac.nz 
     54rem set identity_file=C:\Research\Nightly\tools\keys\upload-expeditee.ppk 
     55:: The following setcmd ends up partially running the cmd and uploading everything in snapshots\expeditee onto the remote machine 
     56rem set upload_cmd=cd uploads && tar -c * | plink -T -i "C:\Research\Nightly\tools\keys\upload-expeditee.ppk" anupama@wharariki.cms.waikato.ac.nz 
     57rem echo %upload_cmd% 
     58cd uploads && tar -c * | plink -T -i "C:\Research\Nightly\tools\keys\upload-expeditee.ppk" anupama@wharariki.cms.waikato.ac.nz 
     59 
    4260:end 
    4361