Chameleon Applications

Chameleon Applications Commit Details

Date:2010-11-17 13:26:07 (10 years 9 days ago)
Author:blackosx
Commit:225
Parents: 224
Message:Use ditto to merge temporary Extra folder with an existing Extra folder
Changes:
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/postflight.sh

File differences

branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/postflight.sh
1919
2020
2121
22
22
23
24
2325
2426
2527
2628
27
28
29
30
2931
3032
31
32
33
34
3335
3436
3537
......
3840
3941
4042
41
42
43
44
4345
4446
4547
# Has the temporary directory /.Chameleon/Extra been created?
# If yes then transfer temporary com.apple.Boot.plist to destination.
# If yes then transfer temporary Extra folder to destination,
# or merge temporary Extra folder in to an already existing Extra
# folder on the destination target.
if [ -d ${3}/.Chameleon/Extra ]; then
# check to see if install to EFI system partition was selected
# if chosen, the package installer will add a file named 'nullESP'
# in to the temporary directory /.Chameleon
# if chosen, the package installer would have added a file named
# 'nullESP' in to the temporary directory /.Chameleon
if [ -f ${3}/.Chameleon/nullESP ]; then
echo "Executing command: mv -f ${3}/.Chameleon/Extra /Volumes/EFI"
mv -f ${3}/.Chameleon/Extra /Volumes/EFI
echo "Executing command: ditto ${3}/.Chameleon/Extra /Volumes/EFI/Extra"
ditto ${3}/.Chameleon/Extra /Volumes/EFI/Extra
echo "Executing command: umount -f Volumes/EFI"
"$scriptDir"UnMountEFIvolumes.sh
rm -R -f /Volumes/EFI
fi
else
echo "Executing command: mv -f ${3}/.Chameleon/Extra ${3}/"
mv -f ${3}/.Chameleon/Extra ${3}/
echo "Executing command: ditto ${3}/.Chameleon/Extra ${3}/Extra"
ditto ${3}/.Chameleon/Extra ${3}/Extra
fi
fi

Archive Download the corresponding diff file

Revision: 225