Chameleon Applications

Chameleon Applications Commit Details

Date:2010-11-17 13:24:12 (13 years 5 months ago)
Author:blackosx
Commit:224
Parents: 223
Message:Changed the bootoptions identifier from a directory to a file
Changes:
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh

File differences

branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh
1212
1313
1414
15
15
1616
1717
1818
......
4646
4747
4848
49
50
51
49
50
51
5252
5353
5454
......
8989
9090
9191
92
93
94
95
92
93
94
95
9696
9797
9898
# check for see if there are any boot options in the temporary directory
cd "${tempDir}"
Dirlist=$(find . -type d | grep "@")
Dirlist=$(find . -type f | grep "@")
if [ "${Dirlist}" ]; then
echo "Build Extra/com.apple.Boot.plist"
echo "********************************"
for directory in $Dirlist ; do
overide=$(echo $directory | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)
string=$(echo $directory | tr -d "./@" |cut -d'+' -f2)
for bootOptionFile in $Dirlist ; do
overide=$(echo $bootOptionFile | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)
string=$(echo $bootOptionFile | tr -d "./@" |cut -d'+' -f2)
bootoptionshdextra[1]="<key>${overide}</key>"
bootoptionshdextra[2]="<string>${string}</string>"
#Note - Can this be somehow included above and delete the directory after reading it?
#cd "${3}/.Chameleon/"
Dirlist=$(find . -type d | grep "@")
for directory in $Dirlist ; do
echo $directory
rm -rf $directory
Dirlist=$(find . -type f | grep "@")
for bootOptionFile in $Dirlist ; do
echo $bootOptionFile
rm -rf $bootOptionFile
done
echo "-----------------------------------------------"

Archive Download the corresponding diff file

Revision: 224