summaryrefslogtreecommitdiffstats
path: root/daemon/innbbsd/mkhistory.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/innbbsd/mkhistory.c')
-rw-r--r--daemon/innbbsd/mkhistory.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/daemon/innbbsd/mkhistory.c b/daemon/innbbsd/mkhistory.c
new file mode 100644
index 00000000..c1278adb
--- /dev/null
+++ b/daemon/innbbsd/mkhistory.c
@@ -0,0 +1,18 @@
+#include <stdlib.h>
+#include "externs.h"
+#include "innbbsconf.h"
+#include "bbslib.h"
+
+int
+main(argc, argv)
+ int argc;
+ char *argv[];
+{
+ if (argc < 2) {
+ fprintf(stderr, "Usage: %s history-file\n", argv[0]);
+ exit(1);
+ }
+ initial_bbs(NULL);
+ mkhistory(argv[1]);
+ return 0;
+}