From: nishi Date: Sat, 15 Jun 2024 02:01:18 +0000 (+0000) Subject: wrote doc for dos X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ee43c376d39a1dbed40c9aaa12bb55321ced1692;p=dataworks.git wrote doc for dos git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@308 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Document/Makefile b/Document/Makefile index b29f58c..b6f6965 100644 --- a/Document/Makefile +++ b/Document/Makefile @@ -6,8 +6,8 @@ all: document README.DOC document: doxygen -README.DOC: README.FMT - ../Tool/docfmt README.FMT +README.DOC: ../Tool/docfmt README.FMT + ../Tool/docfmt README.FMT > README.DOC clean: - rm -rf doc + rm -rf doc README.DOC diff --git a/Document/README.FMT b/Document/README.FMT index 4e47c01..f9fc4e5 100644 --- a/Document/README.FMT +++ b/Document/README.FMT @@ -1,10 +1,106 @@ \" $Id$ DataWorks Users' Manual \hline +This Document describes how to do stuffs with DataWorks. Index \hline -\indent 4 -test -test +\list +\list What is DataWorks +\list Supported platforms +\list How to install +\list Copyright \indent + +What is DataWorks +\hline +DataWorks is a simple cross-platform DBMS written in C. +Its database file format is compatible with all platforms supported by DataWorks. + +Supported platforms +\hline +These platforms are currently supported. +\list +\" DOS +\list DOS, and DOS with DOS/4GW +\indent +2 +Supported features: +\indent +2 +Server: +\indent +2 +Works with Modem. +\indent -2 +Client +Remote Client: +\indent +2 +Works with Modem. +\indent -2 +\indent -2 +\indent -2 +\" NetBSD +\list NetBSD +\indent +2 +Supported features: +\indent +2 +Server: +\indent +2 +Works with TCP/IP socket. +\indent -2 +Client +Remote Client: +\indent +2 +Works with TCP/IP socket. +\indent -2 +\indent -2 +\indent -2 +\" Linux +\list Linux +\indent +2 +Supported features: +\indent +2 +Server: +\indent +2 +Works with TCP/IP socket. +\indent -2 +Client +Remote Client: +\indent +2 +Works with TCP/IP socket. +\indent -2 +\indent -2 +\indent -2 +\" Windows +\list Windows +\indent +2 +Supported features: +\indent +2 +Server: +\indent +2 +Works with TCP/IP socket. +\indent -2 +Client +Remote Client: +\indent +2 +Works with TCP/IP socket. +\indent -2 +\indent -2 +\indent -2 +\indent + +How to install +\hline +This document should be only included in DOS installer, so we'll only explain +how to install on DOS. + +\list +\list Insert the floppy/CD-ROM. +\list Change the drive to your installation media. +\list Run install.exe for English, instajp.exe for Japanese installer. +\list Specify the path to be installed on. + +Copyright +\hline +Copyright (C) 2024 Crabware + 2024 pnsk-lab + +DataWorks is licensed under the 3-clause BSD License. diff --git a/Installer/install.c b/Installer/install.c index c45f937..44a6046 100644 --- a/Installer/install.c +++ b/Installer/install.c @@ -150,6 +150,7 @@ do_so: remove("dw.exe"); remove("dwserv.exe"); remove("dwrcli.exe"); + remove("readme.doc"); system(to); remove(to); free(to); diff --git a/Makefiles/common.mk b/Makefiles/common.mk index f70c441..a125c0a 100644 --- a/Makefiles/common.mk +++ b/Makefiles/common.mk @@ -34,7 +34,7 @@ thanks-banner: ./Installer:: ./Library $(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET) -./Tool:: ./Library +./Tool:: $(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET) ./Document:: ./Tool @@ -64,7 +64,7 @@ clean: $(MAKE) -C ./Tool clean $(COMPILE_FLAGS) dos-installer: - if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) clean ; fi + if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos clean ; fi if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos no-doc ; fi if [ ! "$(FORMAT)" = "NO" ]; then rm -f install.img ; fi if [ ! "$(FORMAT)" = "NO" ]; then mformat -C -f 1440 -v DWINST -i install.img :: ; fi @@ -75,8 +75,11 @@ dos-installer: $(MAKE) PLATFORM=dos ./Installer mcopy -oi install.img Installer/*.exe ::install.exe $(MAKE) PLATFORM=dos TARGET=clean ./Installer - $(MAKE) PLATFORM=dos PC98="-DPC98 -zk0" INDEP=jp INDEP_TO=cp932 ./Installer - mcopy -oi install.img Installer/*.exe ::insta98.exe + $(MAKE) PLATFORM=dos INDEP=jp INDEP_TO=cp932 ./Installer + $(MAKE) ./Tool + $(MAKE) -C ./Document README.DOC + mcopy -toi install.img Document/README.DOC :: + mcopy -oi install.img Installer/*.exe ::instajp.exe if [ ! -e lha.exe ]; then wget http://f.nishi.boats/f/g/lha.exe ; fi if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img lha.exe ::lha.exe ; fi if [ ! "$(FORMAT)" = "NO" ]; then mkdir -p install-workdir ; fi @@ -86,10 +89,11 @@ dos-installer: if [ ! "$(FORMAT)" = "NO" ]; then echo "imgmount -t floppy a: ./install.img" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "mount c: ./install-workdir" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "lha a C:\EXTRACT.LZH dw.exe dwserv.exe dwrcli.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "lha a C:\EXTRACT.LZH dw.exe dwserv.exe dwrcli.exe readme.doc" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "del dw.exe" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwserv.exe" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwrcli.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "del readme.doc" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "c:" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "a:\lha s extract.lzh" >> install-dosbox.conf ; fi if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi diff --git a/Tool/docfmt.c b/Tool/docfmt.c index f6552c2..898078a 100644 --- a/Tool/docfmt.c +++ b/Tool/docfmt.c @@ -85,6 +85,7 @@ int process_doc(void) { } if(strcmp(cmd, "\\hline") == 0) { } else if(strcmp(cmd, "\\indent") == 0) { + } else if(strcmp(cmd, "\\list") == 0) { } else if(str[1] == '"') { } else { fprintf(stderr, "Invalid command. Aborted\n"); @@ -103,6 +104,8 @@ int process_doc(void) { } free(str); + int list = 1; + str = malloc(1); str[0] = 0; int incr = 0; @@ -126,7 +129,24 @@ int process_doc(void) { for(i = 0; i < 79; i++) fprintf(out, "="); fprintf(out, "\n"); } else if(strcmp(cmd, "\\indent") == 0) { - indent = val == NULL ? 0 : atoi(val); + if(val == NULL) { + indent = 0; + } else { + if(val[0] == '+') { + indent += atoi(val + 1); + } else if(val[0] == '-') { + indent -= atoi(val + 1); + } else { + indent = atoi(val); + } + } + } else if(strcmp(cmd, "\\list") == 0) { + if(val == NULL) { + list = 1; + } else { + for(i = 0; i < indent; i++) fprintf(out, " "); + fprintf(out, "%d. %s\n", list++, val); + } } else if(str[1] == '"') { } else { fprintf(stderr, "Invalid command. Aborted\n");