Commit affe0bd9 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Rename project executable to hadrian.

parent 11759a8e
......@@ -38,16 +38,16 @@ mkdir -p "$root/.shake"
# Notes/Random thoughts:
#
# - if ghc.git had a top-level `cabal.project` file, we could maybe avoid the
# boilerplate above, as we could simply say `cabal exec ghc-shake` from within
# boilerplate above, as we could simply say `cabal exec hadrian` from within
# any GHC folder not shadowed by a nearer shadowing `cabal.project` file.
pushd "$root/"
cabal new-build --disable-profiling --disable-documentation -j exe:ghc-shake
cabal new-build --disable-profiling --disable-documentation -j exe:hadrian
PKGVER="$(awk '/^version:/ { print $2 }' shaking-up-ghc.cabal)"
PKGVER="$(awk '/^version:/ { print $2 }' hadrian.cabal)"
cp -v "$root/dist-newstyle/build/shaking-up-ghc-${PKGVER}/build/ghc-shake/ghc-shake" \
cp -v "$root/dist-newstyle/build/hadrian-${PKGVER}/build/hadrian/hadrian" \
"$root/.shake/build"
popd
......
......@@ -40,7 +40,7 @@ if ! ( cabal sandbox hc-pkg list 2>&1 > /dev/null ); then
--disable-shared
fi
cabal run ghc-shake -- \
cabal run hadrian -- \
--lint \
--directory "$absoluteRoot/.." \
--colour \
......
......@@ -33,7 +33,7 @@ cd "$absoluteRoot"
stack build --no-library-profiling
stack exec ghc-shake -- \
stack exec hadrian -- \
--lint \
--directory "$absoluteRoot/.." \
--colour \
......
......@@ -14,7 +14,7 @@ source-repository head
type: git
location: https://github.com/snowleopard/hadrian
executable ghc-shake
executable hadrian
main-is: Main.hs
hs-source-dirs: src
other-modules: Base
......
......@@ -13,7 +13,7 @@ setupEnvironment = do
-- in MinGW if PWD is set to a Windows "C:\\" style path then configure
-- `pwd` will return the Windows path, and then modifying $PATH will fail.
-- See https://github.com/snowleopard/shaking-up-ghc/issues/189 for details.
-- See https://github.com/snowleopard/hadrian/issues/189 for details.
unsetEnv "PWD"
-- On Windows, some path variables start a prefix like "C:\\" which may
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment