[commit: ghc] wip/nfs-locking: Drop the redundant build rule for literate Perl scripts (a69c73f)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:44:01 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/a69c73fe0d051d87cfc6fd95c72089faa92c5a0f/ghc

>---------------------------------------------------------------

commit a69c73fe0d051d87cfc6fd95c72089faa92c5a0f
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Oct 7 23:26:08 2017 +0100

    Drop the redundant build rule for literate Perl scripts


>---------------------------------------------------------------

a69c73fe0d051d87cfc6fd95c72089faa92c5a0f
 hadrian.cabal     |  1 -
 src/Rules.hs      |  2 --
 src/Rules/Perl.hs | 13 -------------
 3 files changed, 16 deletions(-)

diff --git a/hadrian.cabal b/hadrian.cabal
index 97b283a..48514e1 100644
--- a/hadrian.cabal
+++ b/hadrian.cabal
@@ -54,7 +54,6 @@ executable hadrian
                        , Rules.Install
                        , Rules.Libffi
                        , Rules.Library
-                       , Rules.Perl
                        , Rules.Program
                        , Rules.Register
                        , Rules.Selftest
diff --git a/src/Rules.hs b/src/Rules.hs
index ea3df45..730823f 100644
--- a/src/Rules.hs
+++ b/src/Rules.hs
@@ -17,7 +17,6 @@ import qualified Rules.Configure
 import qualified Rules.Gmp
 import qualified Rules.Libffi
 import qualified Rules.Library
-import qualified Rules.Perl
 import qualified Rules.Program
 import qualified Rules.Register
 import Settings
@@ -115,7 +114,6 @@ buildRules = do
     Rules.Gmp.gmpRules
     Rules.Libffi.libffiRules
     packageRules
-    Rules.Perl.perlScriptRules
 
 oracleRules :: Rules ()
 oracleRules = do
diff --git a/src/Rules/Perl.hs b/src/Rules/Perl.hs
deleted file mode 100644
index bc8b01f..0000000
--- a/src/Rules/Perl.hs
+++ /dev/null
@@ -1,13 +0,0 @@
-module Rules.Perl (perlScriptRules) where
-
-import Base
-import Builder
-
--- TODO: Do we need this build rule?
--- | Build Perl scripts, such as @ghc-split@, from their literate Perl sources.
-perlScriptRules :: Rules ()
-perlScriptRules = do
-    "//*.prl" %> \out -> do
-        let src = out -<.> "lprl"
-        need [src]
-        runBuilder Unlit [src, out] [src] [out]



More information about the ghc-commits mailing list