commit 4920c02fceab79bde72f14117164d8cce71e41be
parent 1bc5a636b6cffbca6563b283b849b138a67be790
Author: sin <sin@2f30.org>
Date: Tue, 17 Jun 2014 15:26:31 +0100
Add VERSION in usage
Diffstat:
4 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
@@ -4,6 +4,6 @@ PREFIX = /usr/local
CC = gcc
LD = $(CC)
-CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
+CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE -DVERSION=\"${VERSION}\"
CFLAGS = -std=c99 -Wall -Wextra -pedantic $(CPPFLAGS)
LDFLAGS = -s -larchive
diff --git a/infopkg.c b/infopkg.c
@@ -15,6 +15,7 @@ static int ownpkg(struct db *, struct pkg *, void *);
static void
usage(void)
{
+ fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n");
fprintf(stderr, "usage: %s [-p prefix] [-O filename...]\n", argv0);
fprintf(stderr, " -p Set the installation prefix\n");
fprintf(stderr, " -O Look for the packages that own the given filename(s)\n");
diff --git a/installpkg.c b/installpkg.c
@@ -10,6 +10,7 @@ static int fscollidepkg(struct db *, struct pkg *, void *);
static void
usage(void)
{
+ fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n");
fprintf(stderr, "usage: %s [-f] [-p prefix] pkg...\n", argv0);
fprintf(stderr, " -v Enable verbose output\n");
fprintf(stderr, " -f Override filesystem checks and force installation\n");
diff --git a/removepkg.c b/removepkg.c
@@ -11,6 +11,7 @@ static int removepkg(struct db *, struct pkg *, void *);
static void
usage(void)
{
+ fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n");
fprintf(stderr, "usage: %s [-v] [-f] [-p prefix] pkg...\n", argv0);
fprintf(stderr, " -v Enable verbose output\n");
fprintf(stderr, " -f Force the removal of empty directories and symlinks\n");