Rename project executable to hadrian.
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Tue, 26 Apr 2016 23:50:27 +0000 (00:50 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Tue, 26 Apr 2016 23:50:27 +0000 (00:50 +0100)
build.cabal-new.sh
build.cabal.sh
build.stack.sh
hadrian.cabal
src/Environment.hs

index 96c194e..bca8c7c 100755 (executable)
@@ -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
index 5f20c1b..f2e320e 100755 (executable)
@@ -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                       \
index 578e7eb..b5607b1 100755 (executable)
@@ -33,7 +33,7 @@ cd "$absoluteRoot"
 
 stack build --no-library-profiling
 
-stack exec ghc-shake --            \
+stack exec hadrian --              \
     --lint                         \
     --directory "$absoluteRoot/.." \
     --colour                       \
index a2df30a..4bf5a4c 100644 (file)
@@ -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
index e674f83..d4d9853 100644 (file)
@@ -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