From a3fcde842a1a71a521ab709f9e5fe09d6bb6420c Mon Sep 17 00:00:00 2001 From: sdk Date: Mon, 19 Jul 2021 06:28:56 +0000 Subject: [PATCH] Add make release + update manpage --- Makefile | 9 +++++++++ xpick.1 | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea66248..a4a2d87 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ .POSIX: +VERSION = 1.0 PREFIX ?= /usr/local PKG_CONFIG = pkg-config @@ -22,4 +23,12 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/xpick rm -f $(DESTDIR)$(PREFIX)/man/man1/xpick.1 +release: + rm -rf xpick-$(VERSION)* + mkdir xpick-$(VERSION) + cp Makefile xpick.c xpick.1 README xpick-$(VERSION)/ + tar czf xpick-$(VERSION).tar.gz xpick-$(VERSION) + rm -rf xpick-$(VERSION) + + .PHONY: all clean install uninstall diff --git a/xpick.1 b/xpick.1 index f64642b..06efee4 100644 --- a/xpick.1 +++ b/xpick.1 @@ -17,7 +17,7 @@ show XTerm nearest terminal color .SH DESCRIPTION \fBxpick\fR is a very simple color picker. When started, you can click on any pixel on your X display and it will output the color according to -the parameters given. The parameters can be combined. +the parameters given on the command line. The parameters can be combined. .SH CREDITS The XTerm nearest terminal color logic has been taken from the tmux