-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
8,180 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
WU_FILES := $(wildcard *.wu) | ||
MD_FILES := $(patsubst %.wu,../docs/%.md,$(WU_FILES)) | ||
|
||
lib: | ||
c2man -Swu -I. -I/data/mmti/include -P "cpp -D__STDC__ -E -C" ../tablelib/table.h | ||
wu set Outline starbase.3.wu table_*.wu | ||
wu 2html table_*.wu | ||
cat starbase.3.ABC.head > starbase.3.ABC.wu | ||
awk '$$2 ~ /^-/ { $$1 = " * @{"$$1", "$$1".html}"; print }' table_*.wu >> starbase.3.ABC.wu | ||
cat starbase.3.ABC.tail >> starbase.3.ABC.wu | ||
wu 2html starbase.3.ABC.wu | ||
|
||
ABC: | ||
mawk '/^NAME/,/^SYNOPSYS/ { if ( $$2 ~ /^-$$/ ) { $$1 = " * @["$$1", "$$1".html]"; print } }' *.wu | grep -v table_ | sed -e s/#//g > xxABC | ||
WI_FILES := $(notdir $(wildcard ./include/*.wi)) | ||
MI_FILES := $(patsubst %.wi,../docs/_includes/%.md,$(WI_FILES)) | ||
|
||
all: $(MD_FILES) $(MI_FILES) | ||
|
||
../docs/%.md: %.wu wu2markdown.tcl | ||
@cat $< | expand | ./wu2markdown.tcl > $@ | ||
|
||
../docs/_includes/%.md: include/%.wi wu2markdown.tcl | ||
@cat $< | expand | ./wu2markdown.tcl > $@ | ||
|
||
.PHONY: all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ DESCRIPTION | |
SEE ALSO | ||
======== | ||
|
||
include statbase.seealso | ||
include starbase.seealso |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#!/usr/bin/env tclsh | ||
|
||
# Initialize variables | ||
set header 1 | ||
set in_code_block 0 | ||
set in_list 0 | ||
set in_plus_code_block 0 | ||
set prev_line "" | ||
set prev_line_length 0 | ||
|
||
proc process_line {line} { | ||
global header in_code_block in_list in_plus_code_block prev_line prev_line_length | ||
|
||
# Skip header lines | ||
if {$header && [regexp {^[A-Za-z]+:} $line]} { | ||
return | ||
} | ||
set header 0 | ||
|
||
# Handle code blocks | ||
if {$line eq "-"} { | ||
if {$in_code_block || $in_plus_code_block} { | ||
puts "```" | ||
set in_code_block 0 | ||
set in_plus_code_block 0 | ||
} else { | ||
puts "```" | ||
set in_code_block 1 | ||
} | ||
return | ||
} | ||
|
||
# Handle plus code blocks | ||
if {$line eq "+"} { | ||
if {!$in_code_block && !$in_plus_code_block} { | ||
puts "```" | ||
set in_plus_code_block 1 | ||
} | ||
return | ||
} | ||
|
||
if {[regexp {^include (.*)$} $line -> file]} { | ||
set file [string map { . - } $file].md | ||
puts "{% include $file %}" | ||
return | ||
} | ||
|
||
# Convert list items | ||
if {[regexp {^ \* } $line]} { | ||
if {!$in_list} { | ||
puts "" | ||
set in_list 1 | ||
} | ||
regsub {^ \* } $line "- " line | ||
} else { | ||
# End list if line doesn't start with ' * ' | ||
if {![regexp {^[ *]} $line]} { | ||
if {$in_list} { | ||
puts "" | ||
set in_list 0 | ||
} | ||
} | ||
} | ||
|
||
# Convert links | ||
while {[regsub {@{([^\}]+),([^\}]+)}} $line {[\1](\2)} line]} {} | ||
while {[regsub {@\[([^]]+),([^]]+)\]} $line {[\1](\2)} line]} {} | ||
|
||
# Convert inline formatting | ||
if {!$in_code_block} { | ||
set line [regsub -all {\*\*\*([^*]+)\*\*\*} $line {**\1**}] | ||
set line [regsub -all {~([^~]+)~} $line {*\1*}] | ||
set line [regsub -all {#([^ ]+)} $line {`\1`}] | ||
set line [regsub -all { @\[([^ \t]+)\]} $line {[\1](\1.html)}] | ||
set line [regsub -all { @([^ \t]+)} $line { [\1](\1.html)}] | ||
} | ||
|
||
# Print the processed line | ||
if {$in_code_block || $in_plus_code_block} { | ||
puts $line | ||
} else { | ||
puts $line | ||
} | ||
|
||
set prev_line $line | ||
set prev_line_length [string length $line] | ||
} | ||
|
||
while {[gets stdin line] >= 0} { | ||
process_line $line | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
Download the Starbase Source | ||
============================ | ||
|
||
Starbase is available in source code and binary distribution. The binary distribution | ||
includes the entire source and can be rebuilt without additional downloads. | ||
Starbase has recently been compiled on SunOS, Linux, Mac OS X (ppc and intel) | ||
and on Windows XP under Cygwin. | ||
|
||
|
||
``` | ||
{% include starbase-tab.md %} | ||
``` | ||
|
||
Plottable is a command line plotting package for use with Starbase. | ||
|
||
``` | ||
{% include plottable-tab.md %} | ||
``` | ||
|
||
Here is the output from the[example](example.html) script that comes with plottable: | ||
|
||
``` | ||
-rw-rw-r-- 1 john instruments 5451 Mar 4 14:34[example.5.gif](example.5.gif.html) | ||
-rw-rw-r-- 1 john instruments 12598 Mar 4 14:34[example.4.gif](example.4.gif.html) | ||
-rw-rw-r-- 1 john instruments 12991 Mar 4 14:34[example.3.gif](example.3.gif.html) | ||
-rw-rw-r-- 1 john instruments 13699 Mar 4 14:34[example.2.gif](example.2.gif.html) | ||
-rw-rw-r-- 1 john instruments 6156 Mar 4 14:34[example.1.gif](example.1.gif.html) | ||
-rw-rw-r-- 1 john instruments 90403 Mar 4 14:33[example.5.ps](example.5.ps.html) | ||
-rw-rw-r-- 1 john instruments 369089 Mar 4 14:33[example.4.ps](example.4.ps.html) | ||
-rw-rw-r-- 1 john instruments 205366 Mar 4 14:33[example.2.ps](example.2.ps.html) | ||
-rw-rw-r-- 1 john instruments 76103 Mar 4 14:33[example.3.ps](example.3.ps.html) | ||
-rw-rw-r-- 1 john instruments 44026 Mar 4 14:33[example.1.ps](example.1.ps.html) | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Other ASCII database systems for UNIX | ||
===================================== | ||
|
||
I'm not the only one who can write UNIX filters. Here are some other | ||
efforts at implimenting the concepts outlined in the | ||
[UNIX Review /RDB White Paper]( http://www.rdb.com/lib/4gl.ps) | ||
|
||
|
||
- [No SQL]( http://www.linux.it/~carlos/nosql/) by Carlo Strozzi, Italian Linux Society. | ||
- [/RDB]( http://www.rdb.com) from [Revolutionary Software]( http://www.zuvaya.com/rsw/index.html) | ||
- [/RDB-Hobbs]( http://cfa-www/~john/starbase/RDB-2.6d.tar.gz) from RAND. | ||
- [Unity]( http://www.bell-labs.com/project/wwexptools/unity/) from Bell Labs. | ||
- [dbops]( http://www.simtech-soft.com/dbops.shtml) from [simtech]( http://www.simtech-soft.com/) | ||
- [jink]( http://wwwtios.cs.utwente.nl/doc/jinx-doc/) A nice interactive table editor is available [here]( http://archive.cs.ruu.nl/pub/PERL). | ||
- [reldb]( http://sources.isc.org/apps/database/reldb.txt) by Gunnar Stefansson. | ||
- [|Stat]( http://www.acm.org/~perlman/stat/) by Gary Perlman. | ||
- [JDB]( http://www.isi.edu/~johnh/SOFTWARE/JDB/index.html) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
index_page: starbase.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
- -i *file* Read input from *file* instead of the standard input. | ||
- -o *file* Write output to *file* instead of the standard output. | ||
- -t *template* Only the tables whose table names (first line in the table | ||
header) match *template* are output. Care should be taken with this | ||
option, unnamed tables are skipped if it is specified. This is the primary | ||
mechanism for selecting a table from a multi-table file. |
Oops, something went wrong.