Use PACKAGE_VERSION from Autoconf, not our own private VERSION macro.
#include <stdlib.h>
#include "armor.h"
+#include "config.h"
#include "keystructs.h"
#include "log.h"
#include "onak-conf.h"
*/
putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n");
- putchar_func(ctx, sizeof("Version: onak " VERSION "\n\n") - 1,
- (unsigned char *) "Version: onak " VERSION "\n\n");
+ putchar_func(ctx, sizeof("Version: onak " PACKAGE_VERSION "\n\n") - 1,
+ (unsigned char *) "Version: onak " PACKAGE_VERSION "\n\n");
armor_init(&armor_ctx);
armor_ctx.putchar_func = putchar_func;
#include "armor.h"
#include "charfuncs.h"
#include "cleanup.h"
+#include "config.h"
#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
if (op != OP_GET) {
puts("<HR>");
- puts("Produced by gpgwww " VERSION ", part of onak. "
+ puts("Produced by gpgwww " PACKAGE_VERSION ", part of onak. "
"<A HREF=\"mailto:noodles-onak@earth.li\">"
"Jonathan McDowell</A>");
end_html();
#include "charfuncs.h"
#include "cleankey.h"
#include "cleanup.h"
+#include "config.h"
#include "getcgi.h"
#include "keydb.h"
#include "keyindex.h"
}
if (!mrhkp) {
puts("<hr>");
- puts("Produced by onak " VERSION " by Jonathan McDowell");
+ puts("Produced by onak " PACKAGE_VERSION
+ " by Jonathan McDowell");
end_html();
}
#ifndef __ONAK_CONF_H_
#define __ONAK_CONF_H_
-#define VERSION "0.2.1"
-
/*
* struct onak_config - Runtime configuration for onak.
* @maxkeys: The maximum number of keys a query should return.
#include "charfuncs.h"
#include "cleankey.h"
#include "cleanup.h"
+#include "config.h"
#include "keydb.h"
#include "keyid.h"
#include "keyindex.h"
}
void usage(void) {
- puts("onak " VERSION " - an OpenPGP keyserver.\n");
+ puts("onak " PACKAGE_VERSION " - an OpenPGP keyserver.\n");
puts("Usage:\n");
puts("\tonak [options] <command> <parameters>\n");
puts("\tCommands:\n");