Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
hmgle committed Dec 7, 2020
1 parent e6235f7 commit 69446b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ifneq ($(KERNEL), Linux)
$(error only support Linux now.)
endif

VERSION = $(shell git describe --tags)
VERSION = $(shell git describe --tags --always)

debug = 0

Expand All @@ -36,7 +36,7 @@ else
endif

ifeq ($(shell echo $(VERSION) | head -c 1), v)
CFLAGS += -DVERSION=$(VERSION)
CFLAGS += -DVERSION=\"$(VERSION)\"
endif

SRC := $(wildcard *.c)
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ int main(int argc, char **argv)
{0, 0, 0, 0}
};

while ((opt = getopt_long(argc, argv, "+ha:p:f:b:w:n", long_opts,
while ((opt = getopt_long(argc, argv, "+Vha:p:f:b:w:n", long_opts,
&index)) != -1) {
switch (opt) {
case 'a':
Expand Down

0 comments on commit 69446b7

Please sign in to comment.