diff options
author | Ratakor <contact@ratakor.com> | 2023-03-26 20:52:23 +0200 |
---|---|---|
committer | Ratakor <contact@ratakor.com> | 2023-03-26 20:52:23 +0200 |
commit | 9646656a5e3ac5a5b699548c68cd98b9260d5032 (patch) | |
tree | 01dbbaf4cf87f9ef5625ffd5020988ab3bb6c16e | |
parent | ba24da86da970f087e60ccfb740604d3ccf0de67 (diff) |
add to AUR0.2
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | quand | 7 |
3 files changed, 8 insertions, 7 deletions
@@ -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" @@ -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 @@ -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 |