From owner-freebsd-www@FreeBSD.ORG Wed Nov 2 20:10:01 2005 Return-Path: X-Original-To: freebsd-www@freebsd.org Delivered-To: freebsd-www@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ED1E16A41F; Wed, 2 Nov 2005 20:10:01 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66AEB43D66; Wed, 2 Nov 2005 20:09:50 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.1/8.13.1) with ESMTP id jA2K8VKB067405; Wed, 2 Nov 2005 12:08:40 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.1/8.13.1/Submit) id jA2K82ET067398; Wed, 2 Nov 2005 12:08:02 -0800 (PST) (envelope-from kline) Date: Wed, 2 Nov 2005 12:07:57 -0800 From: Gary Kline To: Ceri Davies , Gary Kline , Eric F Crist , Giorgos Keramidas , freebsd-questions@freebsd.org, freebsd-www@freebsd.org Message-ID: <20051102200757.GA67144@thought.org> References: <20051031212138.4456283C0D@ws1-1.us4.outblaze.com> <200510312218.13261.freebsd01@dgmm.net> <20051101011146.GA14135@thought.org> <20051101013050.GA10120@flame.pc> <20051101055104.GA15533@thought.org> <20051101121414.GB1051@flame.pc> <20051101185922.GB67660@thought.org> <2011CB42-5C96-4315-AD73-A17B39589CBF@secure-computing.net> <20051101222051.GA24702@thought.org> <20051102093907.GT29387@submonkey.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051102093907.GT29387@submonkey.net> User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19 years of service to the Unix community X-Mailman-Approved-At: Thu, 03 Nov 2005 14:10:23 +0000 Cc: Subject: Re: The best scripts ever (trick or treat) X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 20:10:01 -0000 On Wed, Nov 02, 2005 at 09:39:07AM +0000, Ceri Davies wrote: > On Tue, Nov 01, 2005 at 02:20:51PM -0800, Gary Kline wrote: > > > Let's say we request people submit only their sh script > > (to start). What would the format need to be so that > > a script could parse email and auto-HTML the script?' > > #!/bin/sh -- > portinstall squirrelmail > > Did I win a biscuit? :) > > Ceri Would some gold stars do? :) evolution take ASCII and iso.8859-15 text and turns it into HTML too (I think; don't *quote me*). I have a C prog that I've been using privingly for 11 years that does this and more, but what what I'm thinkg of is a script that would take a posted script and using the KEYWORDS of, say: "CATEORY: foo "FUNCTION: it_does_this "OPTIONS: can_do_this_or_that" BEGINSCRIPT !#/bin/sh echo "hello world" ENDSCRIPT and generate am HTML file like:
Function
This script does: "it does this"

Options
This script "can do this or that" using flags "-a" "-b" "-c"


	!#/bin/sh
	echo "hello world"

	

In most things I agree with the KISS philosophy: "Keep it simple, Sir". This is my off-the-top-of-my-head idea; I'm sure most of you guys are better at shell and-or HTML hacking and have better ideas. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix