forked from juanjosegarciaripoll/emacs-build
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathemacs-build.cmd
34 lines (28 loc) · 859 Bytes
/
emacs-build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
if x%1 == x goto default
if %1 == --default-nativecomp goto nativecomp
if %1 == --clean goto clean
if %1 == --clean-all goto cleanall
if %1==--help goto help
if %1==-h goto help
if %1==-? goto help
goto run
:cleanall
cd %~dp0 && for %%i in (git build zips pkg) do if exist %%i rmdir /S /Q %%i
goto:eof
:clean
cd %~dp0 && for %%i in (build pkg) do if exist %%i rmdir /S /Q %%i
goto:eof
:default
emacs-build.cmd --clone --deps --build --pack-emacs --pdf-tools --mu --isync --aspell --pack-all
goto:eof
:nativecomp
emacs-build.cmd --nativecomp --clone --deps --build --pack-emacs --pdf-tools --mu --isync --aspell --pack-all
goto:eof
:help
powershell -noprofile -c scripts\setup-msys2.ps1
.\scripts\msys2.cmd -c "./emacs-build.sh --help"
goto:eof
:run
powershell -noprofile -c scripts\setup-msys2.ps1
.\scripts\msys2.cmd -c "./emacs-build.sh %*"