Add version number
This commit is contained in:
parent
36e19e43c3
commit
980001cfc9
7
Makefile
7
Makefile
@ -1,12 +1,13 @@
|
|||||||
|
PREFIX = /usr/local
|
||||||
|
VERSION = 0.1
|
||||||
|
|
||||||
SRC = minrss.c util.c net.c xml.c
|
SRC = minrss.c util.c net.c xml.c
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
CC = cc
|
CC = cc
|
||||||
INCS =
|
INCS =
|
||||||
LIBS = -lcurl -I/usr/include/libxml2 -lxml2 -lm
|
LIBS = -lcurl -I/usr/include/libxml2 -lxml2 -lm
|
||||||
WARN = -Wall -Wpedantic -Wextra
|
WARN = -Wall -Wpedantic -Wextra
|
||||||
CFLAGS = $(LIBS) $(INCS) $(WARN)
|
CFLAGS = $(LIBS) $(INCS) $(WARN) -DVERSION=\"$(VERSION)\"
|
||||||
|
|
||||||
PREFIX = /usr/local
|
|
||||||
|
|
||||||
all: config.h minrss
|
all: config.h minrss
|
||||||
|
|
||||||
|
7
minrss.c
7
minrss.c
@ -76,8 +76,13 @@ finish(char *url, long responseCode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
if (argc == 2 && !strcmp("-v", argv[1]))
|
||||||
|
logMsg(0, "MinRSS %s\n", VERSION);
|
||||||
|
else if (argc != 1)
|
||||||
|
logMsg(0, "Usage: minrss [-v]\n");
|
||||||
|
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
|
|
||||||
initCurl();
|
initCurl();
|
||||||
|
Loading…
Reference in New Issue
Block a user