summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-01-04 18:29:49 +0100
committerBen Gamari <ben@smart-cactus.org>2016-01-04 18:29:50 +0100
commit4c56ad36ee0d1f8b6f1b2bc0d8fff1c9acd1a389 (patch)
treec572b428254c5fd605f05caa349c2560c696ef2b /utils
parent5c10f5ce8831a59f67f2c42ed5d7cf5be10c0860 (diff)
downloadhaskell-4c56ad36ee0d1f8b6f1b2bc0d8fff1c9acd1a389.tar.gz
Build system: delete ghc-pwd
On Windows, with msys2, `pwd` works (as can be seen by the use of `pwd` that slipped into the validate script), so there is really no need for `ghc-pwd` anymore. Test Plan: try it Reviewers: austin, bgamari, Phyx Reviewed By: Phyx Subscribers: Phyx, erikd Differential Revision: https://phabricator.haskell.org/D1731
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-pwd/Main.hs22
-rw-r--r--utils/ghc-pwd/Setup.hs2
-rw-r--r--utils/ghc-pwd/ghc-pwd.cabal19
-rw-r--r--utils/ghc-pwd/ghc.mk9
4 files changed, 0 insertions, 52 deletions
diff --git a/utils/ghc-pwd/Main.hs b/utils/ghc-pwd/Main.hs
deleted file mode 100644
index 91a5606ac3..0000000000
--- a/utils/ghc-pwd/Main.hs
+++ /dev/null
@@ -1,22 +0,0 @@
-
-module Main where
-
-import System.Directory
-import System.Environment
-import System.Exit
-import System.IO
-
-main :: IO ()
-main = do
- args <- getArgs
- case args of
- [] -> do d <- getCurrentDirectory
- putStr $ map forwardifySlashes d
- _ -> do hPutStrLn stderr ("Bad args: " ++ show args)
- hPutStrLn stderr "Usage: ghc-pwd"
- exitFailure
-
-forwardifySlashes :: Char -> Char
-forwardifySlashes '\\' = '/'
-forwardifySlashes c = c
-
diff --git a/utils/ghc-pwd/Setup.hs b/utils/ghc-pwd/Setup.hs
deleted file mode 100644
index 9a994af677..0000000000
--- a/utils/ghc-pwd/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff --git a/utils/ghc-pwd/ghc-pwd.cabal b/utils/ghc-pwd/ghc-pwd.cabal
deleted file mode 100644
index dcd9529d3c..0000000000
--- a/utils/ghc-pwd/ghc-pwd.cabal
+++ /dev/null
@@ -1,19 +0,0 @@
-Name: ghc-pwd
-Version: 0.1
-Copyright: XXX
-License: BSD3
--- XXX License-File: LICENSE
--- XXX Author:
--- XXX Maintainer:
-Synopsis: XXX
-Description:
- XXX
-build-type: Simple
-cabal-version: >=1.10
-
-Executable ghc-pwd
- Default-Language: Haskell2010
- Main-Is: Main.hs
- Build-Depends: base >= 3 && < 5,
- directory >= 1 && < 1.3
-
diff --git a/utils/ghc-pwd/ghc.mk b/utils/ghc-pwd/ghc.mk
deleted file mode 100644
index ac6bc768f6..0000000000
--- a/utils/ghc-pwd/ghc.mk
+++ /dev/null
@@ -1,9 +0,0 @@
-
-utils/ghc-pwd_USES_CABAL = YES
-utils/ghc-pwd_PACKAGE = ghc-pwd
-utils/ghc-pwd_dist-install_INSTALL_INPLACE = YES
-utils/ghc-pwd_dist-install_WANT_BINDIST_WRAPPER = YES
-utils/ghc-pwd_dist-install_PROGNAME = ghc-pwd
-
-$(eval $(call build-prog,utils/ghc-pwd,dist-install,1))
-