From 4c56ad36ee0d1f8b6f1b2bc0d8fff1c9acd1a389 Mon Sep 17 00:00:00 2001 From: Thomas Miedema Date: Mon, 4 Jan 2016 18:29:49 +0100 Subject: 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 --- utils/ghc-pwd/Main.hs | 22 ---------------------- utils/ghc-pwd/Setup.hs | 2 -- utils/ghc-pwd/ghc-pwd.cabal | 19 ------------------- utils/ghc-pwd/ghc.mk | 9 --------- 4 files changed, 52 deletions(-) delete mode 100644 utils/ghc-pwd/Main.hs delete mode 100644 utils/ghc-pwd/Setup.hs delete mode 100644 utils/ghc-pwd/ghc-pwd.cabal delete mode 100644 utils/ghc-pwd/ghc.mk (limited to 'utils') 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)) - -- cgit v1.2.1