Skip to content

Commit

Permalink
Adapted python scripts.
Browse files Browse the repository at this point in the history
Signed-off-by: Nuccio Raciti <raciti.nuccio@gmail.com>
  • Loading branch information
nuraci committed Mar 4, 2012
1 parent 7275be0 commit f5ba9d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions Goat/scripts/CheckPropsDoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions Goat/scripts/IFaceTableGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
5 changes: 3 additions & 2 deletions Goat/scripts/commandsdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

scintillaDirectory = os.path.join("..", "..", "scintilla", "include")
sys.path.append(scintillaDirectory)
print scintillaDirectory
import Face

def cell(s):
Expand All @@ -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:
Expand Down

0 comments on commit f5ba9d0

Please sign in to comment.