From 8fa622975991d1fb539ffab50c98f0d2d7d6da1c Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Thu, 29 Dec 2016 23:36:05 +0100 Subject: [PATCH] why releases for such a small project? useless and overhead! --- Makefile | 14 +++++++------- config.mk | 2 -- slstatus.1 | 2 +- slstatus.c | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 85c001f..6cba860 100644 --- a/Makefile +++ b/Makefile @@ -31,16 +31,16 @@ ${NAME}: ${OBJ} clean: @echo cleaning - @rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz + @rm -f ${NAME} ${OBJ} ${NAME}.tar.gz dist: clean @echo creating dist tarball - @mkdir -p ${NAME}-${VERSION} + @mkdir -p ${NAME} @cp -R Makefile config.mk LICENSE \ - ${SRC} ${NAME}-${VERSION} - @tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION} - @gzip ${NAME}-${VERSION}.tar - @rm -rf ${NAME}-${VERSION} + ${SRC} ${NAME} + @tar -cf ${NAME}.tar ${NAME} + @gzip ${NAME}.tar + @rm -rf ${NAME} install: all @echo installing executable file to ${DESTDIR}${PREFIX}/bin @@ -49,7 +49,7 @@ install: all @chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME} @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" < ${NAME}.1 > ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 + @cp -f ${NAME}.1 ${DESTDIR}${MANPREFIX}/man1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 uninstall: diff --git a/config.mk b/config.mk index c120e76..b5053fe 100644 --- a/config.mk +++ b/config.mk @@ -1,7 +1,5 @@ # See LICENSE file for copyright and license details. -VERSION = 3.0 - PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man diff --git a/slstatus.1 b/slstatus.1 index aaeb42d..afc3505 100644 --- a/slstatus.1 +++ b/slstatus.1 @@ -1,4 +1,4 @@ -.TH SLSTATUS 1 slstatus\-VERSION +.TH SLSTATUS 1 slstatus .SH NAME slstatus \- suckless status .SH SYNOPSIS diff --git a/slstatus.c b/slstatus.c index 1f5a3b2..b80bb7f 100644 --- a/slstatus.c +++ b/slstatus.c @@ -780,7 +780,7 @@ main(int argc, char *argv[]) oflag = 1; break; case 'v': - printf("slstatus %s (C) 2016 slstatus engineers\n", VERSION); + printf("slstatus (C) 2016 slstatus engineers\n"); return 0; case 'h': usage(0);