Chameleon

Chameleon Commit Details

Date:2011-08-13 04:30:57 (12 years 8 months ago)
Author:Evan Lojewski
Commit:1348
Parents: 1347
Message:Cleanup pkg script
Changes:
M/trunk/package/buildpkg.sh
M/trunk/package/Resources/English.lproj/Localizable.strings

File differences

trunk/package/buildpkg.sh
133133
134134
135135
136
136
137137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165138
166139
167140
168141
169142
170
143
171144
172145
173146
174
175
176
177
178
179
180
181
182
183147
184148
185149
......
195159
196160
197161
198
162
199163
200164
201165
......
216180
217181
218182
219
183
220184
221185
222186
223187
224188
225
189
226190
227191
228192
......
258222
259223
260224
261
225
262226
263227
264228
......
276240
277241
278242
279
243
280244
281245
282246
......
297261
298262
299263
300
264
301265
302266
303267
......
322286
323287
324288
325
289
326290
327291
328292
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Module\">"
choices[$((choicescount++))]="<choice\n\tid=\"Module\"\n\ttitle=\"Module_title\"\n\tdescription=\"Module_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.module"
packagesidentity="org.chameleon.modules"
# -
if [ -e ${1%/*}/i386/modules/AMDGraphicsEnabler.dylib ]; then
{
mkdir -p ${1}/AMDGraphicsEnabler/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/AMDGraphicsEnabler.dylib ${1}/AMDGraphicsEnabler/Root
echo "[BUILD] AMDGraphicsEnabler "
buildpackage "${1}/AMDGraphicsEnabler" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/ATiGraphicsEnabler.dylib ]; then
{
mkdir -p ${1}/ATiGraphicsEnabler/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/ATiGraphicsEnabler.dylib ${1}/ATiGraphicsEnabler/Root
echo "[BUILD] ATiGraphicsEnabler "
buildpackage "${1}/ATiGraphicsEnabler" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/IntelGraphicsEnabler.dylib ]; then
{
mkdir -p ${1}/IntelGraphicsEnabler/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/IntelGraphicsEnabler.dylib ${1}/IntelGraphicsEnabler/Root
echo "[BUILD] IntelGraphicsEnabler "
buildpackage "${1}/IntelGraphicsEnabler" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/klibc.dylib ]; then
{
mkdir -p ${1}/klibc/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/klibc.dylib ${1}/klibc/Root
echo "[BUILD] klibc "
buildpackage "${1}/klibc" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
buildpackage "${1}/klibc" "/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/NVIDIAGraphicsEnabler.dylib ]; then
{
mkdir -p ${1}/NVIDIAGraphicsEnabler/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/NVIDIAGraphicsEnabler.dylib ${1}/NVIDIAGraphicsEnabler/Root
echo "[BUILD] NVIDIAGraphicsEnabler "
buildpackage "${1}/NVIDIAGraphicsEnabler" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
}
fi
# -
if [ -e ${1%/*}/i386/modules/Resolution.dylib ]; then
{
mkdir -p ${1}/AutoReso/Root
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" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
buildpackage "${1}/uClibc" "/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
}
fi
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Extras\">"
choices[$((choicescount++))]="<choice\n\tid=\"Extras\"\n\ttitle=\"Extras_title\"\n\tdescription=\"Extras_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.extras.com"
packagesidentity="org.chameleon.extras"
# build utility package
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Utility\">"
choices[$((choicescount++))]="<choice\n\tid=\"Utility\"\n\ttitle=\"Utility_title\"\n\tdescription=\"Utility_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.utility.com"
packagesidentity="org.chameleon.utilities"
# build package for Chameleon PrefPanel
mkdir -p "${1}/PrefPanel/Root"
((xmlindent++))
# build base options packages
packagesidentity="org.chameleon.options.com"
packagesidentity="org.chameleon.options"
options=($( find "${pkgroot}/Scripts/BaseOptions" -type d -depth 1 -not -name '.svn' ))
for (( i = 0 ; i < ${#options[@]} ; i++ ))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Resolution\">"
choices[$((choicescount++))]="<choice\n\tid=\"Resolution\"\n\ttitle=\"Resolution_title\"\n\tdescription=\"Resolution_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.resolution"
packagesidentity="org.chameleon.options.resolution"
resolutions=($( find "${pkgroot}/Scripts/Resolutions" -type d -depth 1 -not -name '.svn' ))
for (( i = 0 ; i < ${#resolutions[@]} ; i++ ))
do
choices[$((choicescount++))]="<choice\n\tid=\"Advanced\"\n\ttitle=\"Advanced_title\"\n\tdescription=\"Advanced_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.advanced.options.pkg"
packagesidentity="org.chameleon.options.advanced"
optionsadv=($( find "${pkgroot}/Scripts/Advanced" -type d -depth 1 -not -name '.svn' ))
for (( i = 0 ; i < ${#optionsadv[@]} ; i++ ))
do
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Themes\">"
choices[$((choicescount++))]="<choice\n\tid=\"Themes\"\n\ttitle=\"Themes_title\"\n\tdescription=\"Themes_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.theme.pkg"
packagesidentity="org.chameleon.themes"
artwork="${1%/*}"
themes=($( find "${artwork%/*}/artwork/themes" -type d -depth 1 -not -name '.svn' ))
for (( i = 0 ; i < ${#themes[@]} ; i++ ))

Archive Download the corresponding diff file

Revision: 1348