forked from ndmitchell/hoogle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
31 lines (23 loc) · 768 Bytes
/
deploy.bat
File metadata and controls
31 lines (23 loc) · 768 Bytes
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
@echo off
echo Running Hoogle deploy script
if "%1"=="--quick" goto remote
REM Check no patches need pushing
if exist deploy.patch del deploy.patch
darcs send -o deploy.path --quiet
if exist deploy.patch del deploy.patch && echo You must push first && goto error
REM Build Hoogle
if not exist .hpc mkdir .hpc
if not exist .hpc\opt mkdir .hpc\opt
ghc --make -isrc -i. src/Paths.hs src/Main.hs -w -odir .hpc/opt -hidir .hpc/opt -o .hpc/opt/hoogle -threaded -O -package transformers
REM Run the tests
.hpc\opt\hoogle data --redownload
if not %errorlevel%==0 goto error
.hpc\opt\hoogle test --example
if not %errorlevel%==0 goto error
:remote
echo Starting to deploy
ssh ndm@haskell.org -m deploy.sh
goto end
:error
echo Error!
:end