Chameleon Applications

Chameleon Applications Commit Details

Date:2011-05-22 15:06:35 (12 years 10 months ago)
Author:ErmaC
Commit:279
Parents: 278
Message:"update" Chameleon prefPanel, add extractAcpi.sh (Thx Azimutz)
Changes:
A/branches/iFabio/ChameleonPrefPane/Resources/extractAcpi.sh
M/trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj

File differences

trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
4848
4949
5050
51
5152
5253
5354
......
143144
144145
145146
147
146148
147149
148150
......
288290
289291
290292
293
291294
292295
293296
......
571574
572575
573576
577
574578
575579
576580
01B0E8271108B89100ACF21B /* CREDITS in Resources */ = {isa = PBXBuildFile; fileRef = 01B0E8261108B89100ACF21B /* CREDITS */; };
01B0E8291108B89D00ACF21B /* version in Resources */ = {isa = PBXBuildFile; fileRef = 01B0E8281108B89D00ACF21B /* version */; };
01E0E9511108F9ED004EF6E8 /* TODO in Resources */ = {isa = PBXBuildFile; fileRef = 01E0E9501108F9ED004EF6E8 /* TODO */; };
61A9E7B21389404D00043B27 /* extractAcpi.sh in Resources */ = {isa = PBXBuildFile; fileRef = 61A9E7B11389404D00043B27 /* extractAcpi.sh */; };
8D202CEA0486D31800D8A456 /* StartupPrefPane_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32DBCFA20370C41700C91783 /* StartupPrefPane_Prefix.pch */; };
8D202CEF0486D31800D8A456 /* Chameleon.xib in Resources */ = {isa = PBXBuildFile; fileRef = F506C042013D9D8C01CA16C8 /* Chameleon.xib */; };
8D202CF30486D31800D8A456 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; };
089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
32DBCFA20370C41700C91783 /* StartupPrefPane_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StartupPrefPane_Prefix.pch; sourceTree = "<group>"; };
61A9E7B11389404D00043B27 /* extractAcpi.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = extractAcpi.sh; path = Resources/extractAcpi.sh; sourceTree = "<group>"; };
8D202CF70486D31800D8A456 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
B316F45B111C604B007EFE5E /* French */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = French; path = Chameleon.strings; sourceTree = "<group>"; };
B316F45D111C604B007EFE5E /* French */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = French; path = Chameleon.xib; sourceTree = "<group>"; };
089C167CFE841241C02AAC07 /* Resources */ = {
isa = PBXGroup;
children = (
61A9E7B11389404D00043B27 /* extractAcpi.sh */,
B3F3522D1125C0290051DFA5 /* Spanish.lproj */,
B316F508111C632B007EFE5E /* Images */,
B316F47A111C6087007EFE5E /* English.lproj */,
B3F352341125C0290051DFA5 /* Chameleon.strings in Resources */,
B3F352351125C0290051DFA5 /* Chameleon.xib in Resources */,
B3F352361125C0290051DFA5 /* Localizable.strings in Resources */,
61A9E7B21389404D00043B27 /* extractAcpi.sh in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
branches/iFabio/ChameleonPrefPane/Resources/extractAcpi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#/bin/sh
set -e
set -u
ACPI_DIR="${HOME}/Desktop/ACPI"
ioreg=
if [[ $# -eq 1 && -f "$1" ]]; then
ioreg="$(grep ' "ACPI Tables" =' "$1")"
else
ioreg="$(ioreg -lw0 | grep ' "ACPI Tables" =')"
fi
ioreg=${ioreg#*\{}
ioreg=${ioreg%\}*}
declare -a tables
ioreg="${ioreg//,/ }"
tables=($ioreg)
echo "Number of ACPI tables: ${#tables[@]}"
re='"([^"]+)"=<([^>]+)>'
dumped=0
for t in "${tables[@]}"; do
#echo Table: $t
if [[ $t =~ $re ]]; then
[[ $dumped = 0 ]] && mkdir -p ${ACPI_DIR}
((++dumped))
echo
echo "Dumping table: ${BASH_REMATCH[1]}"
#echo "Content: ${BASH_REMATCH[2]}"
echo "${BASH_REMATCH[2]}" | xxd -r -p > "${ACPI_DIR}/${BASH_REMATCH[1]}".aml
echo "AML code dumped to \"${ACPI_DIR}/${BASH_REMATCH[1]}.aml\""
type -p iasl &>/dev/null && iasl -d "${ACPI_DIR}/${BASH_REMATCH[1]}".aml \
&& echo "DSL code decompiled to \"${ACPI_DIR}/${BASH_REMATCH[1]}.dsl\""
echo
fi
done
#if [[ $dumped -gt 0 ]]; then
# zip -r ACPI.zip ACPI && echo "Zipped your ACPI tables in file \"ACPI.zip\""
#fi

Archive Download the corresponding diff file

Revision: 279