Skip to content

Commit 8a72c09

Browse files
committed
this is release 0.0.2!
1 parent ffe12ab commit 8a72c09

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ You might want to run `stack install --ghc-options=-dynamic` in order to reduce
1414
### Releases
1515

1616
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
17-
libraries are bundled in (but the C libraries are still dynamically linked (for now)).
17+
libraries are bundled in (but the C libraries are still dynamically linked (for now)).
18+
The releases might not be as up-to-date as the `master` branch, though.
1819

1920
## Usage
2021

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ license: MIT
3535
maintainer: Théophile Choutri
3636
name: feed-extract
3737
synopsis: feed-extract extracts the data from FeedReader's database and exports it to OPML
38-
version: '0.0.1'
38+
version: '0.0.2'

prepare-release.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env bash
22

33
echo "[+] Preparing release ${1}"
4-
mkdir feed-extract-${1}
5-
cp LICENSE.md README.md .stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/bin/feed-extract feed-extract-${1}/
6-
zip -rv feed-extract-${1}.zip feed-extract-${1}
4+
if [[ -z "${1}" ]]
5+
then
6+
echo "[!] You really need to give me a version number, you know?"
7+
else
8+
mkdir feed-extract-"${1}"
9+
FEEDEXTRACT_PATH=$(stack path --local-install-root)
10+
cp LICENSE.md README.md ${FEEDEXTRACT_PATH}/bin/feed-extract feed-extract-"${1}"/
11+
zip -rv feed-extract-"${1}".zip feed-extract-"${1}"
12+
fi

src/Main.hs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ main = do
99
[] -> do
1010
putStrLn "[!] You must specify the database's file."
1111
putStrLn "[!] It is usually located at ~/.local/share/feedreader/data/"
12+
("-h":_) -> help
13+
("--help":_) -> help
14+
("-v":_) -> version
15+
("--version":_) -> version
1216
(path:_) -> do
1317
doesIt <- doesFileExist path
1418
if doesIt then
@@ -19,3 +23,9 @@ main = do
1923
else
2024
do
2125
putStrLn "[!] Nah, you really need to give a *real* path :/"
26+
27+
help :: IO ()
28+
help = putStrLn "Usage: feed-extract PATH_TO_DATABASE"
29+
30+
version :: IO ()
31+
version = putStrLn "Feed-extract v0.0.2"

0 commit comments

Comments
 (0)