diff options
author | Andinus <andinus@nand.sh> | 2020-04-07 01:19:24 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-07 01:22:29 +0530 |
commit | 137618c299728720ca01c32572357e7b8338abf2 (patch) | |
tree | 7b0e3e1a76b6449bf9e35ba6170b8363381d3ef7 | |
parent | cd4325250d64799ef328c51ddc36ab0a14d1e640 (diff) | |
download | grus-137618c299728720ca01c32572357e7b8338abf2.tar.gz |
Add installation instructions to readme
-rw-r--r-- | README.org | 29 | ||||
-rwxr-xr-x | scripts/install.sh (renamed from scripts/install) | 0 |
2 files changed, 29 insertions, 0 deletions
diff --git a/README.org b/README.org index 6b3dfde..1eda814 100644 --- a/README.org +++ b/README.org @@ -9,13 +9,42 @@ Grus is a simple word unjumbler written in Go. | Source Code | [[https://tildegit.org/andinus/grus][Andinus / Grus]] | | GitHub (Mirror) | [[https://github.com/andinus/grus][Grus - GitHub]] | +*Tested on*: +- OpenBSD 6.6 (with /unveil/) + * Working - Grus takes a word as input from the user - Input is ordered in [[https://wikipedia.org/wiki/Lexicographical_order][lexical order]] - Ordered input is searched in grus's database It returns unjumbled word along with all the anagrams. +* Examples +Run =grus help= to get the usage printed. + +#+BEGIN_SRC sh +grus tinesl # will unjumble tinesl +#+END_SRC +You can also use the =grus-add= python script to add words to grus. +* Installation +** Pre-built binaries +Pre-built binaries are available for OpenBSD. +*** v0.1.0 +#+BEGIN_SRC sh +curl -s \ + https://tildegit.org/andinus/grus/raw/tag/v0.1.0/scripts/install.sh | sh + +# Download the initialization scripts. +curl -o grus-add \ + https://tildegit.org/andinus/grus/raw/tag/v0.1.0/scripts/grus-add + +curl -o init \ + https://tildegit.org/andinus/grus/raw/tag/v0.1.0/scripts/init + +# Initialize the database. +chmod +x init && \ + ./init +#+END_SRC * History Initial version of Grus was just a simple shell script that used the slowest method of unjumbling words, it checked every permutation of the word with all diff --git a/scripts/install b/scripts/install.sh index bc02528..bc02528 100755 --- a/scripts/install +++ b/scripts/install.sh |