commit 64be22d4516d31613a4a2c4a4a746c7076b1bfab Quentin Rameau <quinq@fifth.space> 2022-04-11 00:04:42 +0200 Document and fix sacc version
sacc.1 | 9 +++++++++ sacc.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/sacc.1 b/sacc.1 index 40401b3..c13a887 100644 --- a/sacc.1 +++ b/sacc.1 @@ -101,6 +101,14 @@ can be customized by creating a custom .B config.h and (re)compiling the source code. This keeps it fast, secure and simple. +.SH VERSION +It is possible to get +.B sacc +version +from the binary +with the standard +.BR what (1) +tool. .SH AUTHORS See the .B LICENSE @@ -114,5 +122,6 @@ file for the terms of redistribution. .BR xdg-open (1) .BR geomyidae (8) .BR clic (1) +.BR what (1) .SH BUGS Please report them to Quentin Rameau <quinq@fifth.space> diff --git a/sacc.c b/sacc.c index 5acc4f2..096b4ce 100644 --- a/sacc.c +++ b/sacc.c @@ -26,7 +26,7 @@ void (*diag)(char *, ...); -static const char *ident = "@(#) sacc(omys): " VERSION; +const char ident[] = "@(#) sacc(omys): " VERSION; static char intbuf[256]; /* 256B ought to be enough for any URI */ static char *mainurl;