summaryrefslogtreecommitdiffstats
path: root/daemon/innbbsd/mkhistory.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-20 19:33:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-20 19:33:49 +0800
commit6c7b18b32d87c2a835f7e5c48faac4a8ad44668b (patch)
treee88e1b2b1007f4ddcd348a4a1bf1d13c515c4564 /daemon/innbbsd/mkhistory.c
parentf59699c22c130373cda3cc4cb6fab5bae510bd5a (diff)
downloadpttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.gz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.bz2
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.lz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.xz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.zst
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.zip
- (internal/exp) first draft of new layoutpiaip.newlayout
git-svn-id: http://opensvn.csie.org/pttbbs/branches/piaip.newlayout@4013 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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;
+}