From 5d536b42c88dbe9523c4b0c799a0e46c2d984aa6 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 27 Nov 2007 19:56:05 +0000 Subject: [PATCH] Remove the --print-docdir flag It wasn't doing the right thing for bindists. Let's rethink... --- compiler/Makefile | 1 - compiler/main/Main.hs | 9 --------- docs/users_guide/flags.xml | 6 ------ docs/users_guide/using.xml | 14 -------------- 4 files changed, 30 deletions(-) diff --git a/compiler/Makefile b/compiler/Makefile index 793cf6b..9c8da7d 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -271,7 +271,6 @@ endif @echo "cUSER_WAY_NAMES = \"$(USER_WAY_NAMES)\"" >> $(CONFIG_HS) @echo "cUSER_WAY_OPTS = \"$(USER_WAY_OPTS)\"" >> $(CONFIG_HS) @echo "cDEFAULT_TMPDIR = \"$(DEFAULT_TMPDIR)\"" >> $(CONFIG_HS) - @echo "cDocDir = \"$(docdir)\"" >> $(CONFIG_HS) ifeq "$(RelocatableBuild)" "YES" @echo "cRelocatableBuild = True" >> $(CONFIG_HS) else diff --git a/compiler/main/Main.hs b/compiler/main/Main.hs index ad8d1f4..f96b085 100644 --- a/compiler/main/Main.hs +++ b/compiler/main/Main.hs @@ -171,7 +171,6 @@ main = ShowUsage -> showGhcUsage dflags cli_mode PrintLibdir -> putStrLn (topDir dflags) ShowSupportedLanguages -> alreadyHandled - ShowDocDir -> showDocDir (topDir dflags) ShowVersion -> alreadyHandled ShowNumVersion -> alreadyHandled ShowInterface f -> doShowIface dflags f @@ -306,7 +305,6 @@ verifyOutputFiles dflags = do data CmdLineMode = ShowUsage -- ghc -? | PrintLibdir -- ghc --print-libdir - | ShowDocDir -- ghc --print-docdir | ShowInfo -- ghc --info | ShowSupportedLanguages -- ghc --supported-languages | ShowVersion -- ghc -V/--version @@ -369,7 +367,6 @@ mode_flags = ( "?" , PassFlag (setMode ShowUsage)) , ( "-help" , PassFlag (setMode ShowUsage)) , ( "-print-libdir" , PassFlag (setMode PrintLibdir)) - , ( "-print-docdir" , PassFlag (setMode ShowDocDir)) , ( "V" , PassFlag (setMode ShowVersion)) , ( "-version" , PassFlag (setMode ShowVersion)) , ( "-numeric-version" , PassFlag (setMode ShowNumVersion)) @@ -475,12 +472,6 @@ showSupportedLanguages :: IO () showSupportedLanguages = do mapM_ putStrLn supportedLanguages exitWith ExitSuccess -showDocDir :: FilePath -> IO () -showDocDir topdir = putStrLn docDir - where docDir = if cRelocatableBuild - then topdir ++ "/doc" - else cDocDir - showVersion :: IO () showVersion = do putStrLn (cProjectName ++ ", version " ++ cProjectVersion) diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml index cb2cb1f..b191a6c 100644 --- a/docs/users_guide/flags.xml +++ b/docs/users_guide/flags.xml @@ -90,12 +90,6 @@ - - - display GHC documentation directory - mode - - - - output full span in error messages static diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index b171ad3..5e8be42 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -422,20 +422,6 @@ module X where - - - - ghc --print-docdir - - - - - Print the path to GHC's documentation directory. Note that - some distributions do no include the documentation, in which case - this directory may be empty or may not exist. - - - -- 1.7.10.4