# # # add_file "authors.py" # content [b65323a7c2687ecac86cb754d6bb071daedae0d2] # # patch "builtpython.sh" # from [365a8bc8a68ddc0bbc21c5ff2b00df54aee50352] # to [f6751550dd0706450b55908b9bb10896c9401a2f] # # patch "enscriptlangs.py" # from [95c443cac402a883b7f523a46faba66d2c79caaf] # to [de603c91038f329cce1cca8a30ea161b2271e2f6] # # patch "help.psp" # from [88f40bc2ba4156293162120edab8510d6f104c57] # to [729384c14231ec733b8de776484c372d9bffc5f2] # ============================================================ --- authors.py b65323a7c2687ecac86cb754d6bb071daedae0d2 +++ authors.py b65323a7c2687ecac86cb754d6bb071daedae0d2 @@ -0,0 +1,10 @@ +authors='''Authors: +Grahame Bowland + +Contributors: +Matt Johnston +Nathaniel Smith +Bruce Stephens +Lapo Luchini + +''' ============================================================ --- builtpython.sh 365a8bc8a68ddc0bbc21c5ff2b00df54aee50352 +++ builtpython.sh f6751550dd0706450b55908b9bb10896c9401a2f @@ -1,3 +1,16 @@ +#!/bin/sh -echo -n 'enscript_langs = ['; for i in `enscript --help-highlight | grep Name | awk {'print $2'}`; do echo -n "'$i', "; done; echo ']' +# generate the list of enscript formatting options +LANGS=enscriptlangs.py +echo -n 'enscript_langs = [' > "$LANGS" +for i in `enscript --help-highlight | grep Name | awk {'print $2'}`; do + echo -n "'$i', " > "$LANGS" +done; echo ']' > "$LANGS" +# generate the help file data +AUTHORS=authors.py +echo -n "authors='''" > "$AUTHORS" +cat AUTHORS >> "$AUTHORS" +echo "'''" >> "$AUTHORS" + + ============================================================ --- enscriptlangs.py 95c443cac402a883b7f523a46faba66d2c79caaf +++ enscriptlangs.py de603c91038f329cce1cca8a30ea161b2271e2f6 @@ -1 +1 @@ -enscript_langs = ['ada', 'asm', 'awk', 'bash', 'changelog', 'cpp', 'csh', 'c', 'delphi', 'diffs', 'diff', 'diffu', 'dylan', 'eiffel', 'elisp', 'erlang', 'forth', 'fortran_pp', 'fortran', 'haskell', 'html', 'icon', 'idl', 'inf', 'javascript', 'java', 'ksh', 'lua', 'm4', 'mail', 'makefile', 'matlab', 'nroff', 'oberon2', 'objc', 'outline', 'oz', 'pascal', 'perl', 'postscript', 'pyrex', 'python', 'rfc', 'scheme', 'sh', 'skill', 'Smalltalk', 'sml', 'sql', 'states', 'synopsys', 'tcl', 'tcsh', 'tex', 'vba', 'verilog', 'vhdl', 'vrml', 'wmlscript', 'zsh', ] +] ============================================================ --- help.psp 88f40bc2ba4156293162120edab8510d6f104c57 +++ help.psp 729384c14231ec733b8de776484c372d9bffc5f2 @@ -1,5 +1,7 @@ <% +from authors import authors + psp.set_error_page("error.psp") info = { 'title' : "Help" } req.write(template.header(info)) @@ -25,13 +27,35 @@ to the ViewMTN software page and follow the contact instructions there.

-

Authors

+

Authors and Contributers

-

Contributers

+
+<%= hq (authors.strip()) %>
+
-<%= hq (open('AUTHORS').read()) %> +

Licensing

+
 <%
+req.write('''\
+Copyright (C) 2005  Grahame Bowland
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program 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 program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA''')
+%>
+
+ +<% req.write(template.footer(info)) %> -