aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRatakor <contact@ratakor.com>2023-03-26 20:52:23 +0200
committerRatakor <contact@ratakor.com>2023-03-26 20:52:23 +0200
commit9646656a5e3ac5a5b699548c68cd98b9260d5032 (patch)
tree01dbbaf4cf87f9ef5625ffd5020988ab3bb6c16e
parentba24da86da970f087e60ccfb740604d3ccf0de67 (diff)
add to AUR0.2
-rw-r--r--Makefile4
-rw-r--r--README.md4
-rwxr-xr-xquand7
3 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c7bbe2e..b3cbab4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
.POSIX:
-#VERSION = 1.0.2
+VERSION = 0.2
PREFIX = /usr/local
-#MANPREFIX = ${PREFIX}/share/man
+MANPREFIX = ${PREFIX}/share/man
all:
@printf "Run 'sudo make install' to install quand.\n"
diff --git a/README.md b/README.md
index 68ecf14..fb6c5bb 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,9 @@
Quand is a simple calendar written in POSIX sh that take some inspiration from [when](http://www.lightandmatter.com/when/when.html), it's easily hackable and blazingly fast!
## Installation
+AUR: [quand-git](https://aur.archlinux.org/packages/quand-git)
+
+Source:
```
$ git clone https://git.ratakor.com/quand.git
$ cd quand
@@ -45,4 +48,3 @@ mondayfirst=0
## TODO
- add a ICS file converter or handle ICS files
- add a man page
-- add a PKGBUILD
diff --git a/quand b/quand
index 1b800de..00f7f3a 100755
--- a/quand
+++ b/quand
@@ -1,6 +1,6 @@
#!/bin/sh
-VERSION="1.0.2"
+VERSION="0.2"
CONF="${XDG_CONFIG_HOME:-$HOME/.config}/quand/config"
language="${LANG:-en_US.utf-8}"
@@ -69,9 +69,8 @@ main() {
c|cal)
calendar "$2"
return ;;
-
'')
- exec 2>/dev/null ;;
+ exec ;;
*)
printf 'Error: unknown option %s\n' "$*" 1>&2
usage
@@ -79,7 +78,7 @@ main() {
esac
[ ! -f "$calendar" ] &&
- printf 'Error: %s is not a valid file\n' "$calendar" &&
+ printf 'Error: %s is not a valid file\n' "$calendar" 1>&2 &&
return 1
year="$(date "+%Y")" # this is inaccurate