]> Nishi Git Mirror - dataworks.git/commitdiff
wrote doc for dos
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 15 Jun 2024 02:01:18 +0000 (02:01 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 15 Jun 2024 02:01:18 +0000 (02:01 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@308 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Document/Makefile
Document/README.FMT
Installer/install.c
Makefiles/common.mk
Tool/docfmt.c

index b29f58cebc0f59e693b5e99670f8cecd48f096c1..b6f69654d0c79a792d12403b15dcedf3b2e9de97 100644 (file)
@@ -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
index 4e47c017d2abc5ead85ad56329d3bac551d8eef1..f9fc4e508914c55dae433a902c6749f5f6a436b2 100644 (file)
 \" $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.
index c45f9379f8a3da5b693f6ed9024b4785a6dee868..44a6046b470fa81e24c805ad94d0fb0bc9b5d592 100644 (file)
@@ -150,6 +150,7 @@ do_so:
                remove("dw.exe");
                remove("dwserv.exe");
                remove("dwrcli.exe");
+               remove("readme.doc");
                system(to);
                remove(to);
                free(to);
index f70c441059d505a2c6a7e917a4ff5b04f65bee9b..a125c0aa9e47b81bf51ebbec396ce2660fc0c81d 100644 (file)
@@ -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
index f6552c205ec2058a85e7d3cf70219b71c40c0e77..898078a950e8e83ba9a721b75dd0cc8f24795542 100644 (file)
@@ -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");