This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.bat file tidy up plus shake-0.16 compatibility (#392)
* Switch from @ to @echo off in the batch files * Make sure the .bat files do setlocal - ensures if it fails you don't keep the directory change * Give RuleResult instances to all the oracles, as required by the forthcoming shake-0.16
- Loading branch information
1 parent
67ae38d
commit df4848c
Showing
9 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
@cd %~dp0 | ||
@mkdir bin 2> nul | ||
@echo off | ||
setlocal | ||
cd %~dp0 | ||
mkdir bin 2> nul | ||
|
||
@set ghcArgs=--make ^ | ||
-Wall ^ | ||
-fno-warn-name-shadowing ^ | ||
-XRecordWildCards ^ | ||
src\Main.hs ^ | ||
-threaded ^ | ||
-isrc ^ | ||
-i..\libraries\Cabal\Cabal ^ | ||
-rtsopts ^ | ||
-with-rtsopts=-I0 ^ | ||
-outputdir=bin ^ | ||
-j ^ | ||
-O ^ | ||
-o bin\hadrian | ||
set ghcArgs=--make ^ | ||
-Wall ^ | ||
-fno-warn-name-shadowing ^ | ||
-XRecordWildCards ^ | ||
src\Main.hs ^ | ||
-threaded ^ | ||
-isrc ^ | ||
-i..\libraries\Cabal\Cabal ^ | ||
-rtsopts ^ | ||
-with-rtsopts=-I0 ^ | ||
-outputdir=bin ^ | ||
-j ^ | ||
-O ^ | ||
-o bin\hadrian | ||
|
||
@set hadrianArgs=--lint ^ | ||
--directory ^ | ||
".." ^ | ||
%* | ||
set hadrianArgs=--lint ^ | ||
--directory ^ | ||
".." ^ | ||
%* | ||
|
||
|
||
@ghc %ghcArgs% | ||
ghc %ghcArgs% | ||
|
||
@if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL% | ||
if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL% | ||
|
||
@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains | ||
@set GHC_PACKAGE_PATH= | ||
@bin\hadrian %hadrianArgs% | ||
rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains | ||
set GHC_PACKAGE_PATH= | ||
bin\hadrian %hadrianArgs% |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
@rem Change the current directory to the one containing this script | ||
@cd %~dp0 | ||
@echo off | ||
setlocal | ||
rem Change the current directory to the one containing this script | ||
cd %~dp0 | ||
|
||
@rem Build Hadrian and dependencies and exit the script if the build failed | ||
@stack build | ||
@if %errorlevel% neq 0 exit /B %errorlevel% | ||
rem Build Hadrian and dependencies and exit the script if the build failed | ||
stack build | ||
if %errorlevel% neq 0 exit /B %errorlevel% | ||
|
||
@rem Run Hadrian in GHC top directory forwarding additional user arguments | ||
@stack exec hadrian -- --lint --directory ".." %* | ||
rem Run Hadrian in GHC top directory forwarding additional user arguments | ||
stack exec hadrian -- --lint --directory ".." %* |
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
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
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
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
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
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
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