Mercurial > vim
annotate ci/appveyor.bat @ 34653:8079960136db v9.1.0211
patch 9.1.0211: page-wise scrolling does not support smooth-scrolling
Commit: https://github.com/vim/vim/commit/b9f5b95b7bec2414a5a96010514702d99afea18e
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Tue Mar 26 18:46:45 2024 +0100
patch 9.1.0211: page-wise scrolling does not support smooth-scrolling
Problem: Page-wise scrolling with Ctrl-F/Ctrl-B implements
it's own logic to change the topline and cursor.
In doing so, skipcol is not handled properly for
'smoothscroll', and virtual lines.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying
backward compatible as much as possible.
closes: #14268
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Mar 2024 19:00:04 +0100 |
parents | 0c7d833308c7 |
children | c21bafafb59d |
rev | line source |
---|---|
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 @echo off |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 :: Batch file for building/testing Vim on AppVeyor |
31748
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
3 set target=%1 |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 setlocal ENABLEDELAYEDEXPANSION |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 cd %APPVEYOR_BUILD_FOLDER% |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
8 :: Python3 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
9 set PYTHON3_VER=311 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
10 set PYTHON3_RELEASE=3.11.1 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
11 set PYTHON3_URL=https://www.python.org/ftp/python/%PYTHON3_RELEASE%/python-%PYTHON3_RELEASE%-amd64.exe |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
12 set PYTHON3_DIR=C:\python%PYTHON3_VER%-x64 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
13 |
31748
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
14 set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
15 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
16 if exist "%VSWHERE%" ( |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
17 for /f "usebackq delims=" %%i in ( |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
18 `"%VSWHERE%" -products * -latest -property installationPath` |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
19 ) do ( |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
20 set "VCVARSALL=%%i\VC\Auxiliary\Build\vcvarsall.bat" |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
21 ) |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
22 ) |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
23 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
24 if not exist "%VCVARSALL%" ( |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
25 set "VCVARSALL=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
26 ) |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
27 call "%VCVARSALL%" x64 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
28 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
29 goto %target% |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
30 echo Unknown build target. |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
31 exit 1 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
32 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
33 :: ---------------------------------------------------------------------------- |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
34 :install |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
35 @echo on |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
36 if not exist downloads mkdir downloads |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
37 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
38 :: Python 3 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
39 if not exist %PYTHON3_DIR% ( |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
40 call :downloadfile %PYTHON3_URL% downloads\python3.exe |
31748
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
41 cmd /c start /wait downloads\python3.exe /quiet TargetDir=%PYTHON3_DIR% ^ |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
42 Include_pip=0 Include_tcltk=0 Include_test=0 Include_tools=0 ^ |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
43 AssociateFiles=0 Shortcuts=0 Include_doc=0 Include_launcher=0 ^ |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
44 InstallLauncherAllUsers=0 |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
45 ) |
31748
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
46 @echo off |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
47 goto :eof |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
48 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
49 :: ---------------------------------------------------------------------------- |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
50 :build |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
51 |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 cd src |
17405
8292b2dde464
patch 8.1.1701: Appveyor build with MSVC fails puts progress bar in log
Bram Moolenaar <Bram@vim.org>
parents:
17399
diff
changeset
|
53 |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
54 echo "Building MSVC 64bit console Version" |
27388
83bd6e25d0b6
patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI
Bram Moolenaar <Bram@vim.org>
parents:
24721
diff
changeset
|
55 nmake -f Make_mvc.mak CPU=AMD64 ^ |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
56 OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^ |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
57 FEATURES=%FEATURE% |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
58 if not exist vim.exe ( |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
59 echo Build failure. |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
60 exit 1 |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
61 ) |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
62 |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
63 :: build MSVC huge version with python and channel support |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
64 :: GUI needs to be last, so that testing works |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
65 echo "Building MSVC 64bit GUI Version" |
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
66 if "%FEATURE%" == "HUGE" ( |
27388
83bd6e25d0b6
patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI
Bram Moolenaar <Bram@vim.org>
parents:
24721
diff
changeset
|
67 nmake -f Make_mvc.mak CPU=AMD64 ^ |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
68 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
69 PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^ |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
70 PYTHON3_VER=%PYTHON3_VER% DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR% ^ |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
71 FEATURES=%FEATURE% |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
72 ) ELSE ( |
27388
83bd6e25d0b6
patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI
Bram Moolenaar <Bram@vim.org>
parents:
24721
diff
changeset
|
73 nmake -f Make_mvc.mak CPU=AMD64 ^ |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
74 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^ |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
75 FEATURES=%FEATURE% |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
76 ) |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
77 if not exist gvim.exe ( |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
78 echo Build failure. |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
79 exit 1 |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
80 ) |
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
81 .\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt || exit 1 |
8242
1313d2e282dc
commit https://github.com/vim/vim/commit/81275ca9ce3059148fdb65dff29f7ecdbca446fb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
82 |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
83 echo "version output MSVC console" |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
84 .\vim --version || exit 1 |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
20931
diff
changeset
|
85 echo "version output MSVC GUI" |
24721
8a3659f78064
patch 8.2.2899: Appveyor script does not detect nmake failure
Bram Moolenaar <Bram@vim.org>
parents:
21534
diff
changeset
|
86 type ver_msvc.txt || exit 1 |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
87 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
88 goto :eof |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
89 |
31748
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
90 :: ---------------------------------------------------------------------------- |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
91 :test |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
92 @echo on |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
93 cd src/testdir |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
94 :: Testing with MSVC gvim |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
95 path %PYTHON3_DIR%;%PATH% |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
96 nmake -f Make_mvc.mak VIMPROG=..\gvim |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
97 nmake -f Make_mvc.mak clean |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
98 :: Testing with MSVC console version |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
99 nmake -f Make_mvc.mak VIMPROG=..\vim |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
100 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
101 @echo off |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
102 goto :eof |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
103 |
0c7d833308c7
patch 9.0.1206: testing with Python on AppVeyor does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
31736
diff
changeset
|
104 :: ---------------------------------------------------------------------------- |
31736
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
105 :downloadfile |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
106 :: call :downloadfile <URL> <localfile> |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
107 if not exist %2 ( |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
108 curl -f -L %1 -o %2 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
109 ) |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
110 if ERRORLEVEL 1 ( |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
111 rem Retry once. |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
112 curl -f -L %1 -o %2 || exit 1 |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
113 ) |
4fac5d2c5a3c
patch 9.0.1200: AppVeyor builds with an old Python version
Bram Moolenaar <Bram@vim.org>
parents:
31716
diff
changeset
|
114 @goto :eof |