Changeset 36830 for other-projects
- Timestamp:
- 2022-10-18T09:35:06+13:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/expeditee-release-kits/trunk/create-expeditee.bat
r30406 r36830 7 7 8 8 9 :: currentdir (C:\Research\Nightly)10 set currentdir=%CD%9 :: installdir (C:\expeditee\expeditee-release-kits) 10 set installdir=%CD% 11 11 12 12 :: 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 (13 if not exist %installdir%\rke-setup.bat ( 14 14 echo. 15 15 echo ******************* 16 16 echo. 17 echo First edit %currentdir%\tools\expeditee-release-kits\rke-setup.bat.in18 echo to generate %currentdir%\tools\expeditee-release-kits\rke-setup.bat17 echo First generate %installdir%\rke-setup.bat by copying 18 echo %installdir%\rke-setup.bat.in and editing it for your environment 19 19 echo. 20 20 echo ******************* … … 23 23 ) 24 24 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 28 26 call rke-setup.bat 29 27 if ERRORLEVEL 1 ( 30 echo error level 1 or more 31 popd 28 echo error level 1 or more 32 29 exit /B 1 33 30 ) 34 popd35 31 36 32 37 33 :: Make sure the expeditee folder and its rke-build.properties file exist 38 34 :: Then run the 'rke' command from snapshots\expeditee 39 pushd % currentdir%\snapshots35 pushd %installdir%\snapshots 40 36 ::http://www.robvanderwoude.com/battech_ifexistfolder.php 41 37 if exist expeditee\ echo Deleting snapshots\expeditee&& rmdir /s /q expeditee 42 38 if 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.properties39 if not exist expeditee\rke-build.properties copy %installdir%\rke-build.properties.in expeditee\rke-build.properties 44 40 pushd expeditee 41 echo About to call rke 45 42 call rke 46 43 44 45 echo rke done 46 echo Getting uploads ready 47 47 :: Uploading 48 48 mkdir uploads 49 49 copy products\Expeditee-1%products_suffix%.exe uploads\Expeditee-1-%mydate%%uploads_suffix%.exe 50 50 copy 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]54 51 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 53 cd uploads && tar -c * | plink -T -i "%identity_file%" [email protected] 60 54 :end 61 55 62 cd % currentdir%56 cd %installdir% 63 57 endlocal 64 58 ::exit
Note:
See TracChangeset
for help on using the changeset viewer.