Sun, 31 Jan 2016 20:39:29 +0100
added version info
clang.mk | file | annotate | diff | comparison | revisions | |
dav/main.c | file | annotate | diff | comparison | revisions | |
dav/main.h | file | annotate | diff | comparison | revisions | |
gcc.mk | file | annotate | diff | comparison | revisions | |
mingw.mk | file | annotate | diff | comparison | revisions | |
osx.mk | file | annotate | diff | comparison | revisions | |
suncc.mk | file | annotate | diff | comparison | revisions |
--- a/clang.mk Sun Jan 31 16:47:18 2016 +0100 +++ b/clang.mk Sun Jan 31 20:39:29 2016 +0100 @@ -31,7 +31,7 @@ AR = ar RM = rm -CFLAGS = -g -c +CFLAGS = -g -DDEBUG -c COFLAGS = -o LDFLAGS = LOFLAGS = -o
--- a/dav/main.c Sun Jan 31 16:47:18 2016 +0100 +++ b/dav/main.c Sun Jan 31 20:39:29 2016 +0100 @@ -119,6 +119,12 @@ ret = cmd_get_property(args); } else if(!strcasecmp(cmd, "info")) { ret = cmd_info(args); + } else if(!strcasecmp(cmd, "version") || !strcasecmp(cmd, "-version") || !strcasecmp(cmd, "--version")) { +#ifdef DEBUG + fprintf(stderr, "dav %s unstable\n", DAV_VERSION); +#else + fprintf(stderr, "dav %s\n", DAV_VERSION); +#endif } else { print_usage(argv[0]); } @@ -142,8 +148,8 @@ fprintf(stderr, " put [-pcR] [-k <key>] <url> <file>\n"); fprintf(stderr, " mkdir [-pc] [-k <key>] <url>\n"); fprintf(stderr, " remove [-pc] <url>\n"); - fprintf(stderr, " copy [-pc] <url> <url>\n"); - fprintf(stderr, " move [-pc] <url> <url>\n"); + fprintf(stderr, " copy [-pcO] <url> <url>\n"); + fprintf(stderr, " move [-pcO] <url> <url>\n"); fprintf( stderr, " get-property [-pc] [-n <uri>] <url> <property>\n");
--- a/dav/main.h Sun Jan 31 16:47:18 2016 +0100 +++ b/dav/main.h Sun Jan 31 20:39:29 2016 +0100 @@ -33,6 +33,8 @@ #include "optparser.h" #include <libidav/webdav.h> +#define DAV_VERSION "0.9.1" + #ifdef __cplusplus extern "C" { #endif
--- a/gcc.mk Sun Jan 31 16:47:18 2016 +0100 +++ b/gcc.mk Sun Jan 31 20:39:29 2016 +0100 @@ -31,7 +31,7 @@ AR = ar RM = rm -CFLAGS = -std=gnu99 -g -c -D_FILE_OFFSET_BITS=64 +CFLAGS = -std=gnu99 -g -DDEBUG -c -D_FILE_OFFSET_BITS=64 COFLAGS = -o LDFLAGS = LOFLAGS = -o
--- a/mingw.mk Sun Jan 31 16:47:18 2016 +0100 +++ b/mingw.mk Sun Jan 31 20:39:29 2016 +0100 @@ -31,7 +31,7 @@ AR = ar RM = rm -CFLAGS = -std=gnu99 -c -O2 +CFLAGS = -std=gnu99 -g -DDEBUG -c -O2 COFLAGS = -o LDFLAGS = LOFLAGS = -o