Skip to content

Commit b316782

Browse files
committed
appveyor.bat: cleanup old stuff in appveyor.bat
and move the raco pkg install to the racket install section Signed-off-by: Christian Brabandt <[email protected]>
1 parent d865e6a commit b316782

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

appveyor.bat

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
SetLocal
77

8-
cd %APPVEYOR_BUILD_FOLDER%
8+
if defined APPVEYOR_BUILD_FOLDER (
9+
cd %APPVEYOR_BUILD_FOLDER%
10+
set "DEPENDENCIES=%APPVEYOR_BUILD_FOLDER%\dependencies"
11+
)
912

1013
if not defined APPVEYOR_REPO_TAG_NAME (
1114
for /F %%I in ('git describe --tags --always --abbrev^=0') do set "TAG_NAME=%%I"
@@ -27,8 +30,6 @@ if /I "%ARCH%"=="x64" (
2730
) else (
2831
set "BIT=32"
2932
)
30-
set "DEPENDENCIES=%APPVEYOR_BUILD_FOLDER%\dependencies"
31-
3233
:: -------- setting variables ----------------------------------------------
3334
:: Download URLs, local dirs and versions
3435

@@ -145,7 +146,6 @@ set "CYGWIN_DIR=c:\cygwin64"
145146
:: ----------------------------------------------------------------------
146147

147148
@rem Update PATH
148-
149149
path %PYTHON_DIR%;%PYTHON3_DIR%;%PERL_DIR%\bin;%LUA_DIR%;%RUBY_DIR%\bin;^
150150
%RUBY_DIR%\bin\ruby_builtin_dlls;%RACKET_DIR%;%RACKET_DIR%\lib;%TCL_DIR%;^
151151
%TCL_LIBRARY%;%Path%
@@ -165,7 +165,6 @@ exit 1
165165
:install_x64
166166
:: ----------- installing dependencies ------------------------------------------
167167
echo TAG_NAME: %TAG_NAME%
168-
@echo on
169168

170169
@rem Get Vim source code
171170
git submodule update --init --depth 20
@@ -251,7 +250,6 @@ call :downloadfile "%RUBY_SRC_URL%" downloads\ruby_src.zip
251250
move ..\ruby-%RUBY_BRANCH% ..\ruby > nul || exit 1
252251
pushd ..\ruby
253252
call win32\configure.bat
254-
@echo on
255253
nmake.exe -l .config.h.time || exit 1
256254
xcopy /S /Y .ext\include %RUBY_DIR%\include\ruby-%RUBY_API_VER_LONG%
257255
popd
@@ -263,6 +261,9 @@ call :downloadfile "%RACKET_URL%" downloads\racket-%BIT%.tgz
263261
move %DEPENDENCIES%\racket %RACKET_DIR%
264262
type NUL > %RACKET_DIR%\include\bc_suffix.h
265263

264+
@rem Install additional packages for Racket
265+
raco.exe pkg install -i --auto r5rs-lib
266+
266267
@rem Install libintl.dll and iconv.dll
267268
call :downloadfile "%GETTEXT_32_URL%" downloads\gettext32.zip
268269
7z.exe e -y downloads\gettext32.zip ^
@@ -307,20 +308,12 @@ if /I "%ARCH%"=="x64" (
307308
%SODIUM_DIR%\Win32\Release\v143\dynamic\libsodium.dll
308309
)
309310

310-
@rem Show PATH for debugging
311-
@ echo:%Path:;=&echo:%
312-
313-
@rem Install additional packages for Racket
314-
raco.exe pkg install -i --auto r5rs-lib
315-
316311
@echo off
317312
goto :eof
318313

319-
320314
:build_x86
321315
:build_x64
322316
:: -------- building the program -------------------------------------------
323-
@echo on
324317
cd vim\src
325318

326319
@ if not exist .\auto\nmake mkdir .\auto\nmake
@@ -362,15 +355,12 @@ type ver.txt
362355
start "" /W .\gvim.exe -u NONE -S ..\..\if_ver.vim -c quit
363356
type if_ver.txt
364357

365-
@echo off
366358
goto :eof
367359

368360
:package_x86
369361
:package_x64
370362
:: -------- creating packages ----------------------------------------------
371-
372-
@echo on
373-
cd %APPVEYOR_BUILD_FOLDER%
363+
if defined APPVEYOR_BUILD_FOLDER ( cd %APPVEYOR_BUILD_FOLDER% )
374364

375365
@rem Check if we need to copy libgcc_s_sjlj-1.dll.
376366
"%VCToolsInstallDir%bin\HostX86\x86\dumpbin.exe" ^
@@ -480,7 +470,6 @@ goto :eof
480470
:test_x86
481471
:test_x64
482472
:: -------- testing the build ----------------------------------------------
483-
@echo on
484473

485474
set "PLTCOLLECTS=%RACKET_DIR%\collects"
486475
set "PLTCONFIGDIR=%RACKET_DIR%\etc"

0 commit comments

Comments
 (0)