File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ RM := rm -rf
14
14
CC ?= gcc
15
15
CFLAGS ?= -g -O0
16
16
CFLAGS += -Wall -Wextra -std=c99 -pedantic
17
+ GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
18
+ CFLAGS += -DPROGRAM_VERSION=\"$(GIT_VERSION ) \"
17
19
18
20
ifeq ($(UNAME_S ) ,Linux)
19
21
LDFLAGS += -Wl,-z,relro -lusb-1.0
Original file line number Diff line number Diff line change 9
9
*
10
10
*/
11
11
12
- #define PROGRAM_VERSION "1.8"
13
12
#define _XOPEN_SOURCE 500
14
13
15
14
#include <stdio.h>
@@ -181,7 +180,7 @@ static const struct option long_options[] = {
181
180
int print_usage ()
182
181
{
183
182
printf (
184
- "uhubctl v %s: utility to control USB port power for smart hubs.\n"
183
+ "uhubctl %s: utility to control USB port power for smart hubs.\n"
185
184
"Usage: uhubctl [options]\n"
186
185
"Without options, show status for all smart hubs.\n"
187
186
"\n"
You can’t perform that action at this time.
0 commit comments