packages feed

pdfname 0.1.1 → 0.1.2

raw patch · 4 files changed

+31/−9 lines, 4 files

Files

CHANGELOG.md view
@@ -1,10 +1,16 @@ Changelog for pdfname ===================== +0.1.2 (released 2017-07-09)+---------------------------++[#1](https://github.com/asr/pdfname/issues/1), improved error message.++ 0.1.1 (released 2017-07-07) --------------------------- -Fixed installation instructions (by Juan Pedro Villa-Isaza)+Fixed installation instructions (by Juan Pedro Villa-Isaza).  0.1 (released 2017-07-07) -------------------------
README.md view
@@ -7,6 +7,7 @@ Name a PDF file using information (author, year of creation and title) from the `pdfinfo` program. + Prerequisites -------------- @@ -17,6 +18,7 @@ * [pdfinfo](http://linuxcommand.org/man_pages/pdfinfo1.html) Unix   program + Installation ------------ @@ -32,7 +34,8 @@  Just run `pdfname` on your PDF file. -How is the file name chosen?++How is the FileName Chosen? ---------------------------  Given the author, year of creation and title information extracted@@ -63,3 +66,14 @@ ``` /tmp/martin-lof-2010.introduction-to-the-lambda-calculus.pdf ```++Bug Reporting+-------------++Use the [bug tracker](https://github.com/asr/pdfname/issues) for+reporting bugs.++If your bug includes a PDF file it is not necessary to disclose nor to+attach the file. All that it is necessary is the *minimal* PDF+metadata required for triggering the bug. There are various GUI,+online and command-line tools for modifying the PDF metadata.
pdfname.cabal view
@@ -1,5 +1,5 @@ name:          pdfname-version:       0.1.1+version:       0.1.2 license:       MIT license-file:  LICENSE author:        Andrés Sicard-Ramírez with contributions by Juan Pedro Villa-Isaza.@@ -12,12 +12,17 @@ cabal-version: >= 1.10 synopsis:      Name a PDF file using information from the pdfinfo command description:-  pdfname names a PDF file using the author, year of creation and-  title information extracted from the pdfinfo program.+  The @pdfname@ command-line program names a PDF file using the+  author, year of creation and title information extracted from the+  @pdfinfo@ program. tested-with:   GHC == 8.0.2  extra-source-files: CHANGELOG.md                     README.md++source-repository head+  type:     git+  location: https://github.com/asr/pdfname  executable pdfname   main-is:        Main.hs
src/Main.hs view
@@ -4,11 +4,9 @@ module Main where  import qualified Data.Text as T-import qualified Data.Text.IO as T  import Options.Applicative ( execParser ) -import System.Exit     ( exitFailure ) import System.FilePath ( (</>) )  import System.IO@@ -61,6 +59,5 @@         else createFile file newFile      Left  err → do-      T.hPutStr stderr "pdfInfo exception: "       hPrint stderr err-      exitFailure+      die "PDF file or its metadata information is damaged."