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
\" $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.
remove("dw.exe");
remove("dwserv.exe");
remove("dwrcli.exe");
+ remove("readme.doc");
system(to);
remove(to);
free(to);
./Installer:: ./Library
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
-./Tool:: ./Library
+./Tool::
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
./Document:: ./Tool
$(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
$(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
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
}
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");
}
free(str);
+ int list = 1;
+
str = malloc(1);
str[0] = 0;
int incr = 0;
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");