DocScript SVN
Status: Beta
Brought to you by:
ah8
#!/bin/bash
# DocScript HTML filter
# Copyright (C) 2009
# Andreas Harnack (ah8 at freenet dot de)
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along
# with this library; see the file COPYING. If not, write to the Free
# Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA.
# As a special exception, you may use this file as part of a free software
# library without restriction. Specifically, if other files instantiate
# templates or use macros or inline functions from this file, or you compile
# this file and link it with other files to produce an executable, this
# file does not by itself cause the resulting executable to be covered by
# the GNU General Public License. This exception does not however
# invalidate any other reasons why the executable file might be covered by
# the GNU General Public License.
source html.include
MAILTO='javascript:mailto("OFGlXzvSwSNFBULUm48xiRqB1szbiqBd", 3)'
DECRYPT="${HTTP_ROOT:-.}/decrypt.js"
function trailer {
echo "© `ln 'Andreas Harnack' "$MAILTO"`,"
date "+%e %B %Y" | awk '
BEGIN {
ext[1]="st";
ext[2]="nd";
ext[3]="rd";
ext[4]="th";
}
{
print ($1 ext[$1<4?$1:4], "of", $2, $3);
}
'
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'
(
(
bl "${1-no title}" title
test -n "$HTTP_BASE" && tag base "href="/?originalUrl=https%3A%2F%2Fsourceforge.net%2F%26%2339%3B%24HTTP_BASE%26%2339%3B%26%2334%3Bbl%2520%26%2339%3B%26%2339%3B%2520script%2520%26%2334%3Bsrc%3D%26%2339%3B%24DECRYPT%26%2339%3B%26%2334%3B%2520%26%2334%3Btype%3D%26%2339%3Btext%2Fjavascript%26%2339%3B%26%2334%3B)%2520%7C%2520block%2520headshift(cat%2520-echotag%2520hrtrailer%2520%7C%2520block%2520address)%2520%7C%2520block%2520body%2520%26%2334%3B%24%40%26%2334%3B)%2520%7C%2520block%2520html%253C%2Fpre">