Chameleon

Chameleon Commit Details

Date:2011-09-25 17:30:17 (7 years 9 months ago)
Author:blackosx
Commit:1574
Parents: 1573
Message:Change temporary folder 'tmpcham' to a more correct installer location of /usr/local/chamTemp.
Changes:
M/branches/blackosx/package/Scripts/Resolutions/1280x768x32/postinstall
M/branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/RestartFix/postinstall
M/branches/blackosx/package/Scripts/Post/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1024x600x32/postinstall
M/branches/blackosx/package/Scripts/Advanced/EHCIacquire/postinstall
M/branches/blackosx/package/Scripts/Advanced/VBIOS/postinstall
M/branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/postinstall
M/branches/blackosx/package/Scripts/Advanced/LegacyLogo/postinstall
M/branches/blackosx/package/Scripts/Advanced/Wake/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1280x800x32/postinstall
M/branches/blackosx/package/Scripts/Advanced/UHCIreset/postinstall
M/branches/blackosx/package/Scripts/Advanced/ShowInfo/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/EnableC3State/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/postinstall
M/branches/blackosx/package/buildpkg.sh
M/branches/blackosx/package/Scripts/Resolutions/1920x1200x32/postinstall
M/branches/blackosx/package/Scripts/Keymaps/postinstall
M/branches/blackosx/package/Scripts/Advanced/Wait/postinstall
M/branches/blackosx/package/Scripts/Advanced/ForceWake/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1280x1024x32/postinstall
M/branches/blackosx/package/Scripts/Advanced/UseAtiROM/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1920x1080x32/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1680x1050x32/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
M/branches/blackosx/package/Scripts/Advanced/QuietBoot/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
M/branches/blackosx/package/Scripts/Advanced/ForceHPET/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/postinstall
M/branches/blackosx/package/Scripts/Advanced/UseKernelCache/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/DropSSDT/postinstall
M/branches/blackosx/package/Scripts/Advanced/UseMemDetect/postinstall
M/branches/blackosx/package/Scripts/Advanced/GUI/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1600x900x32/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/InstantMenu/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1440x900x32/postinstall
M/branches/blackosx/package/Scripts/Advanced/BootBanner/postinstall
M/branches/blackosx/package/Scripts/Advanced/Npci/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/EnableC2State/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/arch/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1280x960x32/postinstall
M/branches/blackosx/package/Scripts/BaseOptions/EnableC4State/postinstall
M/branches/blackosx/package/Scripts/Resolutions/1024x768x32/postinstall

File differences

branches/blackosx/package/Scripts/Advanced/ForceHPET/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/UseKernelCache/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/EHCIacquire/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/VBIOS/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/GUI/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/UseMemDetect/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/LegacyLogo/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/Wake/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/BootBanner/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/Npci/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/UHCIreset/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/ShowInfo/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/Wait/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/ForceWake/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/UseAtiROM/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Advanced/QuietBoot/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Post/postinstall
3333
3434
3535
36
37
36
37
38
39
3840
39
41
4042
4143
4244
43
45
4446
45
47
4648
4749
4850
49
51
5052
5153
5254
......
6870
6971
7072
71
72
73
74
7375
7476
7577
dest_vol="$3"
fi
# Extra folder now resides in /tmpcham.
# Copy /tmpcham/Extra to correct location.
chamTemp="usr/local/chamTemp" #blackosx added
# Extra folder now resides in /$chamTemp.
# Copy /$chamTemp/Extra to correct location.
if [ ! -f "$dest_vol"/.ChameleonEFI ]; then
echo "Copying $dest_vol/tmpcham/Extra/* $dest_vol/Extra"
echo "Copying $dest_vol/$chamTemp/Extra/* $dest_vol/Extra"
if [ ! -f "$dest_vol"/Extra ]; then
mkdir "$dest_vol"/Extra
fi
cp -R "$dest_vol"/tmpcham/Extra/* "$dest_vol"/Extra
cp -R "$dest_vol"/$chamTemp/Extra/* "$dest_vol"/Extra
else
echo "Copying $dest_vol/tmpcham/Extra/* $/Volumes/EFI/Extra"
echo "Copying $dest_vol/$chamTemp/Extra/* $/Volumes/EFI/Extra"
if [ ! -f "/Volumes/EFI/Extra" ]; then
mkdir "/Volumes/EFI/Extra"
fi
cp -R "$dest_vol"/tmpcham/Extra/* /Volumes/EFI/Extra
cp -R "$dest_vol"/$chamTemp/Extra/* /Volumes/EFI/Extra
# unmount /Volumes/EFI
attempts=1
fi
# delete the temporary Chameleon folder
echo "Removing $dest_vol/tmpcham file"
rm -rf "$dest_vol/tmpcham"
echo "Removing $dest_vol/$chamTemp file"
rm -rf "$dest_vol/$chamTemp"
echo "Done..."
branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/DropSSDT/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/InstantMenu/postinstall
77
88
99
10
10
1111
1212
1313
14
14
1515
1616
1717
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/RestartFix/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/EnableC2State/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
15
1615
1716
1817
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
branches/blackosx/package/Scripts/BaseOptions/EnableC3State/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/arch/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/EnableC4State/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1024x768x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1024x600x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1920x1200x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1280x768x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1600x900x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1280x1024x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1440x900x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1280x800x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1680x1050x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1920x1080x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Resolutions/1280x960x32/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/Scripts/Keymaps/postinstall
66
77
88
9
9
1010
1111
1212
13
13
1414
1515
1616
import shutil
vol = str(sys.argv[3])
extrafolder = vol + "/tmpcham/Extra"
extrafolder = vol + "/usr/local/chamTemp/Extra"
if not os.path.exists(extrafolder):
os.makedirs(extrafolder)
boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
boot = "/usr/local/chamTemp/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
branches/blackosx/package/buildpkg.sh
88
99
1010
11
12
13
14
1115
1216
1317
......
107111
108112
109113
110
114
111115
112116
113117
......
132136
133137
134138
135
139
136140
137141
138142
......
141145
142146
143147
144
148
145149
146150
147151
148152
149153
150
154
151155
152156
153157
154158
155159
156
160
157161
158162
159
163
160164
161
165
162166
163167
164168
......
172176
173177
174178
175
179
176180
177181
178182
......
223227
224228
225229
226
227230
228231
229232
......
243246
244247
245248
246
247249
248250
249251
......
292294
293295
294296
295
296
297
297298
298299
299300
pkgroot="${0%/*}"
# blackosx to use /usr/local as a place for temporary files
# taken from http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#cite_note-27
chamTemp="usr/local/chamTemp"
COL_BLACK="\x1b[30;01m"
COL_RED="\x1b[31;01m"
COL_GREEN="\x1b[32;01m"
# build reset choice package
mkdir -p ${1}/noboot/Root
echo "[BUILD] Reset choice "
buildpackage "${1}/noboot" "/tmpcham" "" "start_visible=\"true\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['EFI'])\"" >/dev/null 2>&1
buildpackage "${1}/noboot" "/$chamTemp" "" "start_visible=\"true\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['EFI'])\"" >/dev/null 2>&1
# End build reset choice package
# build Modules package
mkdir -p ${1}/klibc/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/klibc.dylib ${1}/klibc/Root
echo "[BUILD] klibc "
buildpackage "${1}/klibc" "/tmpcham/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1 #blackosx = add tmpcham to path
buildpackage "${1}/klibc" "/$chamTemp/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
}
fi
# -
mkdir -p ${1}/AutoReso/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/Resolution.dylib ${1}/AutoReso/Root
echo "[BUILD] Resolution "
buildpackage "${1}/AutoReso" "/tmpcham/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1 #blackosx = add tmpcham to path
buildpackage "${1}/AutoReso" "/$chamTemp/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/Keylayout.dylib ]; then
{
mkdir -p ${1}/Keylayout/Root/tmpcham/Extra/{modules,Keymaps} #blackosx = add tmpcham to path
mkdir -p ${1}/Keylayout/Root/$chamTemp/Extra/{modules,Keymaps}
mkdir -p ${1}/Keylayout/Root/usr/bin
layout_src_dir="${1%/sym/*}/i386/modules/Keylayout/layouts/layouts-src"
if [ -d "$layout_src_dir" ];then
# Create a tar.gz from layout sources
(cd "$layout_src_dir"; \
tar czf "${1}/Keylayout/Root/tmpcham/Extra/Keymaps/layouts-src.tar.gz" README *.slt) #blackosx = add tmpcham to path
tar czf "${1}/Keylayout/Root/$chamTemp/Extra/Keymaps/layouts-src.tar.gz" README *.slt)
fi
# Adding module
ditto --noextattr --noqtn ${1%/*}/i386/modules/Keylayout.dylib ${1}/Keylayout/Root/tmpcham/Extra/modules #blackosx = add tmpcham to path
ditto --noextattr --noqtn ${1%/*}/i386/modules/Keylayout.dylib ${1}/Keylayout/Root/$chamTemp/Extra/modules
# Adding Keymaps
ditto --noextattr --noqtn ${1%/sym/*}/Keymaps ${1}/Keylayout/Root/tmpcham/Extra/Keymaps #blackosx = add tmpcham to path
ditto --noextattr --noqtn ${1%/sym/*}/Keymaps ${1}/Keylayout/Root/$chamTemp/Extra/Keymaps
# Adding tools
ditto --noextattr --noqtn ${1%/*}/i386/cham-mklayout ${1}/Keylayout/Root/usr/bin
echo "[BUILD] Keylayout "
ditto --noextattr --noqtn ${1%/*}/i386/modules/uClibcxx.dylib ${1}/uClibc/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/klibc.dylib ${1}/uClibc/Root
echo "[BUILD] uClibc++ "
buildpackage "${1}/uClibc" "/tmpcham/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1 #blackosx = add tmpcham to path
buildpackage "${1}/uClibc" "/$chamTemp/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
}
fi
((xmlindent--))
sed "s/@@KEYMAP@@/${keymaps[$i]}/g" "${pkgroot}/Scripts/Keymaps/postinstall" > "${1}/${keymaps[$i]}/Scripts/postinstall" && \
chmod +rx "${1}/${keymaps[$i]}/Scripts/postinstall"
echo "[BUILD] ${keymaps[$i]} "
#blackosx = why use install location /tmpcham for this ? changing to root
buildpackage "${1}/${keymaps[$i]}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
done
((xmlindent--))
mkdir -p "${1}/${resolutions[$i]##*/}/Scripts/"
ditto --noextattr --noqtn "${resolutions[$i]}/postinstall" "${1}/${resolutions[$i]##*/}/Scripts/postinstall"
echo "[BUILD] ${resolutions[$i]##*/} "
#blackosx = why use install location /tmpcham for this ? changing to root
buildpackage "${1}/${resolutions[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
done
mkdir -p "${1}/${theme}/Root/"
rsync -r --exclude=.svn "${themes[$i]}/" "${1}/${theme}/Root/${theme}"
echo "[BUILD] ${theme}"
#blackosx = maybe use install location /tmpcham for this, then move at the end depending on standard to efi install? going to try it
buildpackage "${1}/${theme}" "/tmpcham/Extra/Themes" "" "start_selected=\"false\"" >/dev/null 2>&1
buildpackage "${1}/${theme}" "/$chamTemp/Extra/Themes" "" "start_selected=\"false\"" >/dev/null 2>&1
done
((xmlindent--))

Archive Download the corresponding diff file

Revision: 1574