commit 3ab678c3f435566150377ed25d9c96d20e3f187d
parent e3ff85996315a7817e48c068782833c710481f85
Author: Cem Keylan <cem@ckyln.com>
Date: Wed, 2 Jun 2021 22:04:49 +0300
muw: release 1.0.0-rc1
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -5,12 +5,14 @@ MANDIR = ${SHAREDIR}/man
MAN1 = ${MANDIR}/man1
MUSHAREDIR = ${SHAREDIR}/mu-wizard
INSTALLSH = ./tools/install.sh
+VERSION = 1.0.0-rc1
all:
@echo "Run 'make install' to install mu-wizard."
install:
- ${INSTALLSH} -Dm755 -s 's|/usr/share/mu-wizard|${MUSHAREDIR}|g' bin/muw ${DESTDIR}${BINDIR}/muw
+ ${INSTALLSH} -Dm755 -s 's|/usr/share/mu-wizard|${MUSHAREDIR}|g;s|@VERSION@|${VERSION}|g' \
+ bin/muw ${DESTDIR}${BINDIR}/muw
${INSTALLSH} -Dm644 mu4e-config.el ${DESTDIR}${MUSHAREDIR}/mu4e-config.el
${INSTALLSH} -Dm644 -t ${DESTDIR}${MUSHAREDIR}/overrides overrides/*
${INSTALLSH} -Dm644 -t ${DESTDIR}${MAN1} man/*.1
diff --git a/bin/muw b/bin/muw
@@ -333,7 +333,7 @@ getoptions_help() {
out() { printf '%s\n' "$@" >&2 ;}
err() { printf '\033[1m%s\033[m\n' "$@" >&2 ;}
die() { err "$@"; exit 1 ;}
-version() { printf 'mu-wizard version: %s\n' unreleased ;}
+version() { printf 'mu-wizard version: %s\n' @VERSION@ ;}
notify() {
notify-send -i mail-unread -a "mu-wizard" "$@"
}