Chameleon Applications

Chameleon Applications Commit Details

Date:2011-07-16 02:13:47 (9 years 4 months ago)
Author:ErmaC
Commit:321
Parents: 320
Message:Update Localizable.strings file with new org.chamelon.Boot.plist "tag" also add the two new key (CSTUsingSystemIO & ShowInfo).
Changes:
M/branches/iFabio/Chameleon/package/Scripts/Advanced/GUI/postinstall
M/branches/iFabio/Chameleon/package/Resources/English.lproj/Localizable.strings
M/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GenerateCStates/postinstall

File differences

branches/iFabio/Chameleon/package/Scripts/Advanced/GUI/postinstall
11
2
2
33
44
55
......
88
99
1010
11
12
11
12
1313
1414
1515
1616
17
18
19
17
18
19
2020
2121
22
22
2323
2424
2525
#!/usr/bin/python
# Script to add GUI for Chameleon boot loaders
# Script to add ShowInfo for Chameleon boot loaders
import sys
import os
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GUI has been written or not
GUICheck = False
# check if ShowInfo has been written or not
ShowInfoCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GUI Yet
if "</dict>" in line and GUICheck == False:
line = " <key>GUI</key>\n"
# if we finish the tags and haven't written ShowInfo Yet
if "</dict>" in line and ShowInfoCheck == False:
line = " <key>ShowInfo</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
GUICheck = True
ShowInfoCheck = True
body += line
branches/iFabio/Chameleon/package/Scripts/BaseOptions/GenerateCStates/postinstall
11
2
2
33
44
55
......
88
99
1010
11
12
11
12
1313
1414
1515
1616
17
18
19
17
18
19
2020
2121
22
22
2323
2424
2525
#!/usr/bin/python
# Script to add GenerateCStates for Chameleon boot loaders
# Script to add CSTUsingSystemIO for Chameleon boot loaders
import sys
import os
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GenerateCStates has been written or not
GenerateCStatesCheck = False
# check if CSTUsingSystemIO has been written or not
CSTUsingSystemIOCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GenerateCStates Yet
if "</dict>" in line and GenerateCStatesCheck == False:
line = " <key>GenerateCStates</key>\n"
# if we finish the tags and haven't written CSTUsingSystemIO Yet
if "</dict>" in line and CSTUsingSystemIOCheck == False:
line = " <key>CSTUsingSystemIO</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
GenerateCStatesCheck = True
CSTUsingSystemIOCheck = True
body += line

Archive Download the corresponding diff file

Revision: 321