Changeset 36830 for other-projects


Ignore:
Timestamp:
2022-10-18T09:35:06+13:00 (19 months ago)
Author:
kjdon
Message:

create-expeditee.bat updated to work on new greenstone windows build machine, uploading results to www-internal.

File:
1 edited

Legend:

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

    r30406 r36830  
    77
    88
    9 :: currentdir (C:\Research\Nightly)
    10 set currentdir=%CD%
     9:: installdir (C:\expeditee\expeditee-release-kits)
     10set installdir=%CD%
    1111
    1212:: Need to edit rke-setup.bat and fill it in with local env vars values
    13 if not exist %currentdir%\tools\expeditee-release-kits\rke-setup.bat (
     13if not exist %installdir%\rke-setup.bat (
    1414echo.
    1515echo *******************
    1616echo.
    17 echo First edit %currentdir%\tools\expeditee-release-kits\rke-setup.bat.in
    18 echo to generate %currentdir%\tools\expeditee-release-kits\rke-setup.bat
     17echo First generate %installdir%\rke-setup.bat by copying
     18echo %installdir%\rke-setup.bat.in and editing it for your environment
    1919echo.
    2020echo *******************
     
    2323)
    2424
    25 :: rke-setup.bat uses local paths, so cd into expeditee-release-kits first
    26 :: then call rke-setup.bat to source the environment vars it sets
    27 pushd %currentdir%\tools\expeditee-release-kits
     25:: call rke-setup.bat to set the environment vars expeditee RK needs
    2826call rke-setup.bat
    2927if ERRORLEVEL 1 (
    30     echo error level 1 or more
    31     popd   
     28    echo error level 1 or more 
    3229    exit /B 1
    3330)
    34 popd
    3531
    3632
    3733:: Make sure the expeditee folder and its rke-build.properties file exist
    3834:: Then run the 'rke' command from snapshots\expeditee
    39 pushd %currentdir%\snapshots
     35pushd %installdir%\snapshots
    4036::http://www.robvanderwoude.com/battech_ifexistfolder.php
    4137if exist expeditee\ echo Deleting snapshots\expeditee&& rmdir /s /q expeditee
    4238if not exist expeditee\ mkdir expeditee
    43 if not exist expeditee\rke-build.properties copy C:\Research\Nightly\tools\expeditee-release-kits\rke-build.properties.in expeditee\rke-build.properties
     39if not exist expeditee\rke-build.properties copy %installdir%\rke-build.properties.in expeditee\rke-build.properties
    4440pushd expeditee
     41echo About to call rke
    4542call rke
    4643
     44
     45echo rke done
     46echo Getting uploads ready
    4747:: Uploading
    4848mkdir uploads
    4949copy products\Expeditee-1%products_suffix%.exe uploads\Expeditee-1-%mydate%%uploads_suffix%.exe
    5050copy rke.out uploads\rke-%mydate%%os_suffix%-windows.out
    51 set 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" [email protected]
    5451
    55 :: The following setcmd ends up partially running the cmd and uploading everything in snapshots\expeditee onto the remote machine
    56 rem set upload_cmd=cd uploads && tar -c * | plink -T -i "C:\Research\Nightly\tools\keys\upload-expeditee.ppk" [email protected]
    57 rem echo %upload_cmd%
    58 cd uploads && tar -c * | plink -T -i "%identity_file%" [email protected]
    59 
     52:: For now, we are uploading to www-internal. authorised_keys at that end will untar into /greenstone/files/expeditee
     53cd uploads && tar -c * | plink -T -i "%identity_file%" [email protected]
    6054:end
    6155
    62 cd %currentdir%
     56cd %installdir%
    6357endlocal
    6458::exit
Note: See TracChangeset for help on using the changeset viewer.