Created
October 27, 2011 20:15
-
-
Save jonforums/1320742 to your computer and use it in GitHub Desktop.
gvim windows build helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS | |
:: *** BEGIN CUSTOMIZATIONS *** | |
:: executables to build | |
set VIM=vim.exe | |
set GVIM=gvim.exe | |
set XXD_DIR=xxd | |
set XXD=xxd.exe | |
:: vim install directory | |
set VIM_DIR=C:\vim | |
set VIM_VER=vim73 | |
:: vim src location and build toolchain info | |
set SRC_DIR=C:\Users\Jon\Documents\vim-src\src | |
set MAKE=make | |
set MAKEFILE=Make_ming.mak | |
set TOOLCHAIN_DIR=C:\DevKit | |
:: *** END CUSTOMIZATIONS *** | |
pushd %SRC_DIR% | |
set PATH=%TOOLCHAIN_DIR%\bin;%TOOLCHAIN_DIR%\mingw\bin;%PATH% | |
:: build gvim.exe and xxd\xxd.exe | |
%MAKE% -f %MAKEFILE% clean | |
%MAKE% -f %MAKEFILE% %GVIM% %XXD_DIR%/%XXD% | |
xcopy %GVIM% %VIM_DIR%\%VIM_VER% /U /F /Y | |
xcopy %XXD_DIR%\%XXD% %VIM_DIR%\%VIM_VER% /U /F /Y | |
%MAKE% -f %MAKEFILE% clean | |
:: build vim.exe | |
%MAKE% -f %MAKEFILE% clean GUI=no | |
%MAKE% -f %MAKEFILE% %VIM% GUI=no | |
xcopy %VIM% %VIM_DIR%\%VIM_VER% /U /F /Y | |
%MAKE% -f %MAKEFILE% clean GUI=no | |
popd | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment