Chameleon Applications

Chameleon Applications Commit Details

Date:2011-05-23 05:13:22 (12 years 11 months ago)
Author:ErmaC
Commit:285
Parents: 284
Message:Update buildpkg now copy also the module binary into core package, for choice usage. Also update the English localizable.strings
Changes:
M/branches/iFabio/Chameleon/package/Resources/English.lproj/Localizable.strings
M/branches/iFabio/Chameleon/package/buildpkg

File differences

branches/iFabio/Chameleon/package/buildpkg
5454
5555
5656
57
58
5759
5860
5961
......
6567
6668
6769
68
70
6971
7072
71
73
7274
7375
7476
......
9092
9193
9294
93
95
9496
9597
9698
......
119121
120122
121123
124
125
126
127
128
129
130
131
122132
123133
124134
mkdir -p ${1}/Core/Root/usr/sbin
mkdir -p ${1}/Core/Root/usr/local/bin
mkdir -p ${1}/Core/Root/usr/standalone/i386
mkdir -p ${1}/Core/Root/usr/standalone/i386/modules
cp -R ${1%/*}/i386/modules ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot0hfs ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386
fixperms "${1}/Core/Root/"
cp -f ${pkgroot}/fdisk440 ${1}/Core/Root/usr/sbin
cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin
#cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin
local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )
echo "[BUILD] i386 "
buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
buildpackage "${1}/Core" "/tmpcham" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
# build Chameleon package
echo "================= Chameleon ================="
cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts
# ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile
echo "[BUILD] EFI "
buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1
buildpackage "${1}/EFI" "/tmpcham" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build efi package
# build reset choice package
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
# End build Modules packages
# build bdmesg package
mkdir -p ${1}/Bdmesg/Root
cp -f ${1%/*}/i386/bdmesg ${1}/Bdmesg/Root
fixperms "${1}/Bdmesg/Root/"
# echo "[BUILD] bdmesg "
buildpackage "${1}/Bdmesg" "/usr/sbin/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
# End build bdmesg package
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
# End build Chameleon package

Archive Download the corresponding diff file

Revision: 285