Skip to content

Commit

Permalink
this is release 0.0.2!
Browse files Browse the repository at this point in the history
  • Loading branch information
tchoutri committed Aug 26, 2017
1 parent ffe12ab commit 8a72c09
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ You might want to run `stack install --ghc-options=-dynamic` in order to reduce
### Releases

For the moment, releases are hosted on the GitHub platform. They consist of a Zip archive with the README, the LICENSE file and the binary, whose Haskell
libraries are bundled in (but the C libraries are still dynamically linked (for now)).
libraries are bundled in (but the C libraries are still dynamically linked (for now)).
The releases might not be as up-to-date as the `master` branch, though.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ license: MIT
maintainer: Théophile Choutri
name: feed-extract
synopsis: feed-extract extracts the data from FeedReader's database and exports it to OPML
version: '0.0.1'
version: '0.0.2'
12 changes: 9 additions & 3 deletions prepare-release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash

echo "[+] Preparing release ${1}"
mkdir feed-extract-${1}
cp LICENSE.md README.md .stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/bin/feed-extract feed-extract-${1}/
zip -rv feed-extract-${1}.zip feed-extract-${1}
if [[ -z "${1}" ]]
then
echo "[!] You really need to give me a version number, you know?"
else
mkdir feed-extract-"${1}"
FEEDEXTRACT_PATH=$(stack path --local-install-root)
cp LICENSE.md README.md ${FEEDEXTRACT_PATH}/bin/feed-extract feed-extract-"${1}"/
zip -rv feed-extract-"${1}".zip feed-extract-"${1}"
fi
10 changes: 10 additions & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ main = do
[] -> do
putStrLn "[!] You must specify the database's file."
putStrLn "[!] It is usually located at ~/.local/share/feedreader/data/"
("-h":_) -> help
("--help":_) -> help
("-v":_) -> version
("--version":_) -> version
(path:_) -> do
doesIt <- doesFileExist path
if doesIt then
Expand All @@ -19,3 +23,9 @@ main = do
else
do
putStrLn "[!] Nah, you really need to give a *real* path :/"

help :: IO ()
help = putStrLn "Usage: feed-extract PATH_TO_DATABASE"

version :: IO ()
version = putStrLn "Feed-extract v0.0.2"

0 comments on commit 8a72c09

Please sign in to comment.