Update README.md (installation); Fix copyright notice
parent
83ba7803e6
commit
296629b96c
44
README.md
44
README.md
|
@ -48,32 +48,34 @@ linear in the size of the input (although the constant factor is not small).
|
||||||
comments are moved slightly; there are also cases where comments result in
|
comments are moved slightly; there are also cases where comments result in
|
||||||
wonky newline insertion (although this should be a purely aesthetic issue.)
|
wonky newline insertion (although this should be a purely aesthetic issue.)
|
||||||
|
|
||||||
# Building
|
# Installation
|
||||||
|
|
||||||
(This does not cover _installation_. TODO)
|
- via `cabal` "old-build"
|
||||||
|
|
||||||
via `cabal new-build`
|
|
||||||
|
|
||||||
~~~~.sh
|
|
||||||
mkdir brittany-project
|
|
||||||
cd brittany-project/
|
|
||||||
git clone https://github.com/lspitzner/butcher.git
|
|
||||||
git clone https://github.com/lspitzner/data-tree-print.git
|
|
||||||
git clone https://github.com/lspitzner/ghc-exactprint.git
|
|
||||||
git clone https://github.com/lspitzner/brittany.git
|
|
||||||
cat > cabal.project <<EOF
|
|
||||||
packages: data-tree-print butcher ghc-exactprint brittany
|
|
||||||
EOF
|
|
||||||
# cabal new-configure -w $PATH_TO_GHC_8
|
|
||||||
cabal new-build brittany/
|
|
||||||
~~~~
|
|
||||||
|
|
||||||
or via `stack`
|
|
||||||
|
|
||||||
~~~~.sh
|
~~~~.sh
|
||||||
git clone https://github.com/lspitzner/brittany.git
|
git clone https://github.com/lspitzner/brittany.git
|
||||||
cd brittany
|
cd brittany
|
||||||
stack build
|
cabal sandbox init
|
||||||
|
cabal install --bindir=$HOME/.cabal/bin # -w $PATH_TO_GHC_8
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
- via `cabal new-build`
|
||||||
|
|
||||||
|
~~~~.sh
|
||||||
|
git clone https://github.com/lspitzner/brittany.git
|
||||||
|
cd brittany
|
||||||
|
# cabal new-configure -w $PATH_TO_GHC_8
|
||||||
|
cabal new-build brittany
|
||||||
|
# and it should be safe to just copy the executable, e.g.
|
||||||
|
cp ./dist-newstyle/build/brittany-0.8.0.0/build/brittany/brittany $HOME/.cabal/bin/
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
- via `stack`
|
||||||
|
|
||||||
|
~~~~.sh
|
||||||
|
git clone https://github.com/lspitzner/brittany.git
|
||||||
|
cd brittany
|
||||||
|
stack install
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ license: AllRightsReserved
|
||||||
-- license-file: LICENSE
|
-- license-file: LICENSE
|
||||||
author: Lennart Spitzner
|
author: Lennart Spitzner
|
||||||
maintainer: lsp@informatik.uni-kiel.de
|
maintainer: lsp@informatik.uni-kiel.de
|
||||||
-- copyright:
|
copyright: Copyright (C) 2016-2017 Lennart Spitzner
|
||||||
category: Language
|
category: Language
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
extra-source-files: ChangeLog.md
|
extra-source-files: ChangeLog.md
|
||||||
|
@ -20,6 +20,11 @@ cabal-version: >=1.10
|
||||||
homepage: https://github.com/lspitzner/brittany/
|
homepage: https://github.com/lspitzner/brittany/
|
||||||
bug-reports: https://github.com/lspitzner/brittany/issues
|
bug-reports: https://github.com/lspitzner/brittany/issues
|
||||||
|
|
||||||
|
source-repository head {
|
||||||
|
type: git
|
||||||
|
location: https://github.com/lspitzner/brittany.git
|
||||||
|
}
|
||||||
|
|
||||||
flag brittany-dev
|
flag brittany-dev
|
||||||
description: dev options
|
description: dev options
|
||||||
default: False
|
default: False
|
||||||
|
|
|
@ -80,7 +80,7 @@ mainCmdParser helpDesc = do
|
||||||
when printVersion $ do
|
when printVersion $ do
|
||||||
liftIO $ do
|
liftIO $ do
|
||||||
putStrLn $ "brittany version " ++ showVersion version
|
putStrLn $ "brittany version " ++ showVersion version
|
||||||
putStrLn $ "Copyright (C) 2016 Lennart Spitzner"
|
putStrLn $ "Copyright (C) 2016-2017 Lennart Spitzner"
|
||||||
putStrLn $ "There is NO WARRANTY, to the extent permitted by law."
|
putStrLn $ "There is NO WARRANTY, to the extent permitted by law."
|
||||||
System.Exit.exitSuccess
|
System.Exit.exitSuccess
|
||||||
when printHelp $ do
|
when printHelp $ do
|
||||||
|
|
Loading…
Reference in New Issue