summaryrefslogtreecommitdiff
authorzecke <zecke>2003-05-17 13:29:50 (UTC)
committer zecke <zecke>2003-05-17 13:29:50 (UTC)
commitbc581ecfb47325fc6b8c8558b596f643002401b6 (patch) (unidiff)
treeea0d48bec465066c7726db488dbddb4b52e3dec6
parent6e3480b56d8962592e946f779ed9249749cf8dbb (diff)
downloadopie-bc581ecfb47325fc6b8c8558b596f643002401b6.zip
opie-bc581ecfb47325fc6b8c8558b596f643002401b6.tar.gz
opie-bc581ecfb47325fc6b8c8558b596f643002401b6.tar.bz2
executable and not opie-executable
DOCTYPE is too much for QTextView
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mkHelpSkeleton10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/mkHelpSkeleton b/scripts/mkHelpSkeleton
index ffb21c2..d7914fe 100755
--- a/scripts/mkHelpSkeleton
+++ b/scripts/mkHelpSkeleton
@@ -1,12 +1,12 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2""" 2"""
3This skript creates a help skeleton for a certain application 3This skript creates a help skeleton for a certain application
4(C) Michael 'Mickey' Lauer who did this even if he had a lot of other stuff to do... 4(C) Michael 'Mickey' Lauer who did this even if he had a lot of other stuff to do... THANKS
5""" 5"""
6 6
7import os 7import os
8import sys 8import sys
9 9
10COUNTRYCODES = "da de en fr nl pl hu no pt it pt_BR ja sl zh_CN es ko zh_TW".split() 10COUNTRYCODES = "da de en fr nl pl hu no pt it pt_BR ja sl zh_CN es ko zh_TW".split()
11OPIEDIR = os.environ["OPIEDIR"] 11OPIEDIR = os.environ["OPIEDIR"]
12 12
@@ -44,38 +44,36 @@ def doit( name, cc ):
44 makecontrol( helpdirname, application, cc, desktop ) 44 makecontrol( helpdirname, application, cc, desktop )
45 makedir( helpappdirname ) 45 makedir( helpappdirname )
46 makehtml( helpdirname, application, cc, desktop ) 46 makehtml( helpdirname, application, cc, desktop )
47 47
48#------------------------------------------------------# 48#------------------------------------------------------#
49def makehtml( directory, application, cc, desktop ): 49def makehtml( directory, application, cc, desktop ):
50 """Creates the help template file.""" 50 """Creates the help template file."""
51 51
52 helpfilename = "%s/opie-%s.html" % ( directory, application ) 52 helpfilename = "%s/%s.html" % ( directory, application )
53 print "Creating help file '%s'" % helpfilename 53 print "Creating help file '%s'" % helpfilename
54 h = file( helpfilename, "w" ) 54 h = file( helpfilename, "w" )
55 print >> h, """ 55 print >> h, """<html> <head> <title>%s</title> </head>
56<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
57<html> <head> <title>%s</title> </head>
58<body> 56<body>
59 <center><h1>%s</h1></center> 57 <center><h1>%s</h1></center>
60 <hr> 58 <hr>
61</body> 59</body>
62</html> 60</html>
63""" % ( application, application ) 61""" % ( application, application )
64 62
65#------------------------------------------------------# 63#------------------------------------------------------#
66def makecontrol( directory, application, cc, desktop ): 64def makecontrol( directory, application, cc, desktop ):
67 """Creates the .control file.""" 65 """Creates the .control file."""
68 66
69 controlfilename = "%s/opie-%s-help-%s.control" % ( directory, application, cc ) 67 controlfilename = "%s/opie-%s-help-%s.control" % ( directory, application, cc )
70 print "Creating control file '%s'" % controlfilename 68 print "Creating control file '%s'" % controlfilename
71 c = file( controlfilename, "w" ) 69 c = file( controlfilename, "w" )
72 print >> c, "Package: opie-%s-help-%s" % ( application, cc ) 70 print >> c, "Package: opie-%s-help-%s" % ( application, cc )
73 print >> c, "Files: help/%s/html/opie-%s.html help/%s/html/%s" % ( cc, application, cc, application ) 71 print >> c, "Files: help/%s/html/%s.html help/%s/html/%s" % ( cc, application, cc, application )
74 print >> c, "Priority: optional" 72 print >> c, "Priority: optional"
75 print >> c, "Section: opie/onlinedoc" 73 print >> c, "Section: opie/onlinedoc"
76 print >> c, "Maintainer: %s" % desktop.get( "Maintainer", "Team Opie <opie@handhelds.org>" ) 74 print >> c, "Maintainer: %s" % desktop.get( "Maintainer", "Team Opie <opie@handhelds.org>" )
77 print >> c, "Version: $QPE_VERSION-$SUB_VERSION" 75 print >> c, "Version: $QPE_VERSION-$SUB_VERSION"
78 print >> c, "Depends: opie-%s" % application 76 print >> c, "Depends: opie-%s" % application
79 print >> c, "License: GPL" 77 print >> c, "License: GPL"
80 print >> c, "Description: %s help files (%s)" % ( application, cc ) 78 print >> c, "Description: %s help files (%s)" % ( application, cc )
81 79