Chameleon Applications

Chameleon Applications Commit Details

Date:2011-05-20 16:12:54 (12 years 10 months ago)
Author:ErmaC
Commit:276
Parents: 275
Message:restructure the module choice with dependencies. Still empty for now
Changes:
M/branches/iFabio/Chameleon/package/buildpkg

File differences

branches/iFabio/Chameleon/package/buildpkg
5454
5555
5656
57
57
5858
59
60
61
62
59
60
61
62
6363
6464
6565
......
7777
7878
7979
80
80
8181
8282
8383
......
102102
103103
104104
105
106
107
108
109
110
111
112
105
106
107
108
109
110
111
112
113113
114114
115115
116116
117117
118118
119
119
120120
121121
122122
123
124
125
126
127
128
129
130
123
124
125
126
127
128
131129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
132154
133155
134156
135
157
136158
137159
138160
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/boot1f32 ${1}/Core/Root/usr/standalone/i386
#cp -f ${1%/*}/i386/boot1f32 ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot1h ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot1he ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/boot1hp ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/cdboot ${1}/Core/Root/usr/standalone/i386
cp -f ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386
#cp -f ${1%/*}/i386/boot1he ${1}/Core/Root/usr/standalone/i386
#cp -f ${1%/*}/i386/boot1hp ${1}/Core/Root/usr/standalone/i386
#cp -f ${1%/*}/i386/cdboot ${1}/Core/Root/usr/standalone/i386
#cp -f ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386
fixperms "${1}/Core/Root/"
cp -f ${pkgroot}/fdisk ${1}/Core/Root/usr/sbin
cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin
mkdir -p ${1}/Standard/Scripts/Tools
cp -f ${pkgroot}/Scripts/Standard/* ${1}/Standard/Scripts
ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile
echo "[BUILD] standard "
echo "[BUILD] Standard "
buildpackage "${1}/Standard" "/tmpcham" "${coresize}" "start_enabled=\"true\" start_selected=\"upgrade_allowed()\" selected=\"exclusive(choices['EFI']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build standard package
((xmlindent++))
packagesidentity="org.chameleon.modules.pkg"
# build Module-One
mkdir -p ${1}/Module-One/Root
# mkdir -p ${1}/Module-One/Scripts/Tools
# cp -f ${pkgroot}/Scripts/Module-One/* ${1}/Module-n/Scripts
# ditto --arch i386 `which SetFile` ${1}/Module-One/Scripts/Tools/SetFile
echo "[BUILD] Modules-One "
buildpackage "${1}/Module-one" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
# End build Module-One
# build Module Resolution
mkdir -p ${1}/ModResolution/Root
# mkdir -p ${1}/ModResolution/Scripts/Tools
# cp -f ${pkgroot}/Scripts/ModResolution/* ${1}/ModResolution/Scripts
# ditto --arch i386 `which SetFile` ${1}/ModResolution/Scripts/Tools/SetFile
echo "[BUILD] Module Resolution "
buildpackage "${1}/ModResolution" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
# End build Module Resolution
# build Module-Two
mkdir -p ${1}/Module-Two/Root
# mkdir -p ${1}/Module-Two/Scripts/Tools
# cp -f ${pkgroot}/Scripts/Module-Two/* ${1}/Module-n/Scripts
# ditto --arch i386 `which SetFile` ${1}/Module-Two/Scripts/Tools/SetFile
echo "[BUILD] Modules-Two "
echo "[BUILD] Modules Empy choice "
buildpackage "${1}/Module-Two" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
# End build Module-Two
# build Module-n
mkdir -p ${1}/Module-n/Root
# mkdir -p ${1}/Module-n/Scripts/Tools
# cp -f ${pkgroot}/Scripts/Module-n/* ${1}/Module-n/Scripts
# ditto --arch i386 `which SetFile` ${1}/Module-n/Scripts/Tools/SetFile
echo "[BUILD] Modules-n "
buildpackage "${1}/Module-n" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
# End build Module-n
# build Dependencies Modules package
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Modklibc\">"
choices[$((choicescount++))]="<choice\n\tid=\"Modklibc\"\n\ttitle=\"Modklibc_title\"\n\tdescription=\"Modklibc_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.modules.klibc.pkg"
echo "[BUILD] Module klibc "
# build Module klibc
mkdir -p ${1}/Modklibc/Root
# mkdir -p ${1}/klibc/Scripts/Tools
# cp -f ${pkgroot}/Scripts/klibc/* ${1}/klibc/Scripts
# ditto --arch i386 `which SetFile` ${1}/klibc/Scripts/Tools/SetFile
# buildpackage "${1}/klibc" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
# End build Module klibc
# choices[$((choicescount++))]="<choice\n\tid=\"klibc\"\n\ttitle=\"klibc_title\"\n\tdescription=\"klibc_description\"\n>\n</choice>\n"
# build Module uClibc++
mkdir -p ${1}/ModuClibc++/Root
# mkdir -p ${1}/uClibc++/Scripts/Tools
# cp -f ${pkgroot}/Scripts/uClibc++/* ${1}/uClibc++/Scripts
# ditto --arch i386 `which SetFile` ${1}/uClibc++/Scripts/Tools/SetFile
echo "[BUILD] Module uClibc++ "
buildpackage "${1}/ModuClibc++" "/Extra/modules" "${coresize}" "" "start_selected=\"false\"" >/dev/null 2>&1
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
# End build Module-n
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
# End utility package
# End build Modules package
# End build Dependencies Modules package
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"

Archive Download the corresponding diff file

Revision: 276