~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various polishing: man page tweaks, --version now does something,
[sgt/agedu]
/
agedu.c
diff --git
a/agedu.c
b/agedu.c
index
8a6affb
..
4914057
100644
(file)
--- a/
agedu.c
+++ b/
agedu.c
@@
-616,7
+616,12
@@
int main(int argc, char **argv)
usage(stdout);
return 0;
case OPT_VERSION:
usage(stdout);
return 0;
case OPT_VERSION:
- printf("FIXME: version();\n");
+#ifdef PACKAGE_VERSION
+ printf("%s, revision %s\n", PNAME, PACKAGE_VERSION);
+#else
+ printf("%s: version number not available when not built"
+ " via automake\n", PNAME);
+#endif
return 0;
case OPT_LICENCE:
{
return 0;
case OPT_LICENCE:
{