Chameleon

Chameleon Commit Details

Date:2011-09-23 13:24:46 (7 years 9 months ago)
Author:blackosx
Commit:1562
Parents: 1561
Message:Add Chameleon version/revision to package installer log.
Changes:
M/branches/blackosx/package/buildpkg.sh
M/branches/blackosx/package/Scripts/Install/InstallLog.sh
M/branches/blackosx/package/Scripts/Install/WriteChameleonStage2.sh
M/branches/blackosx/package/Scripts/Standard/postinstall
M/branches/blackosx/package/Scripts/EFI/postinstall

File differences

branches/blackosx/package/Scripts/Standard/postinstall
6868
6969
7070
71
72
73
7174
7275
7376
# Write some information to the Install Log
versionNumber=`cat "${scriptDir}"/Resources/version`
revisionNumber=`cat "${scriptDir}"/Resources/revision`
"$scriptDir"InstallLog.sh "${targetVolume}" "Chameleon installer version: ${versionNumber} ${revisionNumber}"
"$scriptDir"InstallLog.sh "${targetVolume}" "Running Standard postinstall script
Target volume = ${targetVolume}"
branches/blackosx/package/Scripts/EFI/postinstall
7171
7272
7373
74
75
76
7477
7578
7679
# Write some information to the Install Log
versionNumber=`cat "${scriptDir}"/Resources/version`
revisionNumber=`cat "${scriptDir}"/Resources/revision`
"$scriptDir"InstallLog.sh "${targetVolumeChosenByUser}" "Chameleon installer version: ${versionNumber} ${revisionNumber}"
"$scriptDir"InstallLog.sh "${targetVolumeChosenByUser}" "Running EFI postinstall script
Target volume selected by user = ${targetVolumeChosenByUser}
Target volume = ${targetVolume}"
branches/blackosx/package/Scripts/Install/InstallLog.sh
3636
3737
3838
39
40
39
40
41
42
43
44
45
46
4147
4248
4349
44
45
46
4750
4851
4952
# Chameleon_Installer_Log.txt file
# by writing header.
echo "Chameleon installer log - "$( date ) >"${logFile}"
echo "------------------------------------------------------" >>"${logFile}"
# Also include the first message that this script
# would be called with which will be version/revision
# of Chameleon package.
echo "Chameleon installer log - $( date )
------------------------------------------------------
${verboseText}
------------------------------------------------------" >"${logFile}"
diskutil list >>"${logFile}"
echo "------------------------------------------------------" >>"${logFile}"
# Write first message that this script was called with.
echo "${verboseText}" >> "${logFile}"
# Create /.ChameleonLogFlag file.
echo "Log" >"${logLocation}"/.ChameleonLogFlag
else
branches/blackosx/package/Scripts/Install/WriteChameleonStage2.sh
6969
7070
7171
72
72
7373
7474
7575
#if [ -f "${selectedDestination}"/.Chameleon/nullhideboot ]; then
#echo "Executing command: SetFile -a V ${targetVolume}/${stage2Loader}"
#"${selectedDestination}"/.Chameleon//Tools/SetFile -a V "${targetVolume}"/"${stage2Loader}"
#"${selectedDestination}"/.Chameleon/Resources/SetFile -a V "${targetVolume}"/"${stage2Loader}"
#fi
echo "-----------------------------------------------"
branches/blackosx/package/buildpkg.sh
8282
8383
8484
85
85
8686
8787
88
89
88
89
90
9091
9192
9293
9394
9495
9596
96
97
9798
9899
99
100
100
101
102
101103
102104
103105
# build standard package
mkdir -p ${1}/Standard/Root
mkdir -p ${1}/Standard/Scripts/Tools
mkdir -p ${1}/Standard/Scripts/Resources
cp -f ${pkgroot}/Scripts/Standard/* ${1}/Standard/Scripts
cp -f ${pkgroot}/Scripts/Install/* ${1}/Standard/Scripts
ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile
ditto --noextattr --noqtn ${1%/*}/i386/fdisk440 ${1}/Standard/Scripts/Tools
ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Resources/SetFile
ditto --noextattr --noqtn ${1%/*/*}/revision ${1}/Standard/Scripts/Resources/revision
ditto --noextattr --noqtn ${1%/*/*}/version ${1}/Standard/Scripts/Resources/version
echo "[BUILD] Standard "
buildpackage "${1}/Standard" "/" "${coresize}" "start_enabled=\"true\" start_selected=\"upgrade_allowed()\" selected=\"exclusive(choices['EFI']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build standard package
# build efi package
mkdir -p ${1}/EFI/Root
mkdir -p ${1}/EFI/Scripts/Tools
mkdir -p ${1}/EFI/Scripts/Resources
cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts
cp -f ${pkgroot}/Scripts/Install/* ${1}/EFI/Scripts
ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile
ditto --noextattr --noqtn ${1%/*}/i386/fdisk440 ${1}/Standard/Scripts/Tools
ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Resources/SetFile
ditto --noextattr --noqtn ${1%/*/*}/revision ${1}/Standard/Scripts/Resources/revision
ditto --noextattr --noqtn ${1%/*/*}/version ${1}/Standard/Scripts/Resources/version
echo "[BUILD] EFI "
buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build efi package

Archive Download the corresponding diff file

Revision: 1562