Permalink
Browse files

Adapted python scripts.

Signed-off-by: Nuccio Raciti <raciti.nuccio@gmail.com>
  • Loading branch information...
1 parent 7275be0 commit f5ba9d0ca1615d49f8678db057eb69ce64eb2f2a @nuraci committed Mar 4, 2012
Showing with 10 additions and 8 deletions.
  1. +5 −4 Goat/scripts/CheckPropsDoc.py
  2. +2 −2 Goat/scripts/IFaceTableGen.py
  3. +3 −2 Goat/scripts/commandsdoc.py
@@ -7,10 +7,11 @@
import string
import stat
-srcRoot = "../../scite"
+srcRoot = "../../Goat"
srcDir = os.path.join(srcRoot, "src")
-docFileName = os.path.join(srcRoot, "doc", "SciTEDoc.html")
-propsFileName = os.path.join(srcDir, "SciTEGlobal.properties")
+propsDir = os.path.join(srcRoot, "properties")
+docFileName = os.path.join(srcRoot, "docs/uk/", "props.html")
+propsFileName = os.path.join(propsDir, "GoatGlobal.properties")
try: # Old Python
identCharacters = "_*." + string.letters + string.digits
except AttributeError: # Python 3.x
@@ -176,7 +177,7 @@ def keyOfLine(line):
line = line.strip().strip("=")
localeSet[line.lower()] = 1
-resourceFileName = srcRoot + "/win32/SciTERes.rc"
+resourceFileName = srcRoot + "/win32/GoatRes.rc"
resourceSet = {}
for line in open(resourceFileName):
line = line.strip()
@@ -297,5 +297,5 @@ def ReadMenuIDs(filename):
f = Face.Face()
f.ReadFromFile(srcRoot + "/scintilla/include/Scintilla.iface")
-menuIDs = ReadMenuIDs(srcRoot + "/scite/src/SciTE.h")
-Regenerate(srcRoot + "/scite/src/IFaceTable.cxx", printIFaceTableCXXFile, [f, menuIDs])
+menuIDs = ReadMenuIDs(srcRoot + "/Goat/src/Goat.h")
+Regenerate(srcRoot + "/Goat/src/IFaceTable.cxx", printIFaceTableCXXFile, [f, menuIDs])
@@ -7,6 +7,7 @@
scintillaDirectory = os.path.join("..", "..", "scintilla", "include")
sys.path.append(scintillaDirectory)
+print scintillaDirectory
import Face
def cell(s):
@@ -32,10 +33,10 @@ def faceFeatures(out):
out.write("</table>\n")
def menuFeatures(out):
- out.write("<h2>SciTE menu commands</h2>\n")
+ out.write("<h2>Goat menu commands</h2>\n")
out.write("<table>\n")
out.write("<thead>%s%s</thead>\n" % (cell("Command"), cell("Menu text")))
- with open(os.path.join("..", "win32", "SciTERes.rc"), "rt") as f:
+ with open(os.path.join("..", "win32", "GoatRes.rc"), "rt") as f:
for l in f:
l = l.strip()
if l.startswith("MENUITEM") and "SEPARATOR" not in l:

0 comments on commit f5ba9d0

Please sign in to comment.