Tclhttpd as starkit

How to turn Brent Welch's Tclhttpd server into a scripted document

        http://sourceforge.net/projects/tclhttpd/
        mv tclhttpd3.3.1 tclhttpd.vfs
        http://sourceforge.net/projects/tcllib/
        mv tcllib-1.3/modules/{base64,cmdline,counter,html,ncgi,uri} tclhttpd.vfs/lib/
        package require starkit
        starkit::startup
        package provide tcllib 1.3 ;# fake, because not all pkgs are included
        set env(TCL_HTTPD_LIBRARY) [file join $starkit::topdir lib]
        source [file join $starkit::topdir bin httpd.tcl]
        tclkit tclhttpd.vfs/main.tcl
        sdx wrap tclhttpd
        tclkit tclhttpd

Or simply download tclhttpd as starkit, which is identical to what the above steps lead to:

        https://www.equi4.com/pub/sk/tclhttpd.kit

The ".kit" suffix is used to force a binary download - you can drop it. Then "chmod +x" it and you'll have a complete webserver in a single file.