␉((xmlindent++))␊ |
␊ |
␉# build core package␊ |
␉␉mkdir -p ${1}/Core/Root/i386␊ |
␉␉cp -f ${1%/*}/i386/boot ${1}/Core/Root/i386␊ |
␉␉cp -f ${1%/*}/i386/boot0 ${1}/Core/Root/i386␊ |
␉␉cp -f ${1%/*}/i386/boot0hfs ${1}/Core/Root/i386␊ |
␉␉cp -f ${1%/*}/i386/boot1h ${1}/Core/Root/i386␊ |
␉␉cp -f ${pkgroot}/fdisk440 ${1}/Core/Root/i386␊ |
␉␉cp -f ${pkgroot}/fdisk ${1}/Core/Root/i386␊ |
␉␉fixperms "${1}/Core/Root/i386"␊ |
␉␉local coresize=$( du -hkc "${1}/Core/Root/i386" | tail -n1 | awk {'print $1'} )␊ |
␉␉mkdir -p ${1}/Core/Root/usr/sbin␊ |
␉␉mkdir -p ${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/boot1h ${1}/Core/Root/usr/standalone/i386␊ |
␉␉cp -f ${pkgroot}/fdisk ${1}/Core/Root/usr/sbin␊ |
␉␉cp -f ${pkgroot}/fdisk440 ${1}/Core/Root/usr/sbin␊ |
␉␉fixperms "${1}/Core/Root/"␊ |
␉␉local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )␊ |
␉␉echo "Building core package"␊ |
␉␉buildpackage "${1}/Core" "/binaries" "0" "start_visible=\"false\" start_selected=\"true\""␊ |
␊ |
␉# End build core package␊ |
␊ |
␉# build standard package ␊ |
|
␉((xmlindent--))␊ |
␉outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>" # End build theme packages␊ |
␊ |
# build package for Documentation␊ |
␉mkdir -p "${1}/Documentation/Root"␊ |
␉cp -f ${pkgroot}/doc/BootHelp.txt ${1}/Documentation/Root␊ |
␉cp -f ${pkgroot}/doc/README ${1}/Documentation/Root␊ |
␉cp -f ${pkgroot}/doc/Users_Guide0.5.pdf ${1}/Documentation/Root␊ |
␉echo "Building Documentation package"␊ |
␉buildpackage "${1}/Documentation" "/Documentation/Chameleon" "" "start_visible=\"false\" start_selected=\"true\""␊ |
# End build package for Documentation␊ |
␊ |
# build package for bdmesg␊ |
␉mkdir -p "${1}/bdmesg/Root"␊ |
␉ditto --noextattr --noqtn "${1%/*}/i386/bdmesg" "${1}/bdmesg/Root"␊ |
␉echo "Building bdmesg package"␊ |
␉buildpackage "${1}/bdmesg" "/usr/sbin" "" "start_visible=\"false\" start_selected=\"true\""␊ |
# End build package for bdmesg␊ |
␊ |
# build post install package ␊ |
␉mkdir -p ${1}/Post/Root␊ |
␉mkdir -p ${1}/Post/Scripts␊ |
␉cp -f ${pkgroot}/Scripts/Post/postinstall ${1}/Post/Scripts␊ |
␉ditto --arch i386 `which SetFile` ${1}/Post/Scripts/Tools/SetFile␊ |
␉buildpackage "${1}/Post" "/binaries" "" "start_visible=\"false\" start_selected=\"true\""␊ |
␉echo "Building post package" # End post install package ␉␊ |
␉echo "Building post package"␊ |
# End post install package ␉␊ |
␊ |
␉outline[$((outlinecount++))]="${indent[$xmlindent]}</choices-outline>" # End main package␊ |
␊ |
|
␊ |
␉ditto --noextattr --noqtn "${pkgroot}/Distribution" "${1}/${packagename}/Distribution"␊ |
␉ditto --noextattr --noqtn "${pkgroot}/Resources" "${1}/${packagename}/Resources"␊ |
␉ditto --noextattr --noqtn "${pkgroot}/Chameleon.icns" "${1%/*}/${packagename// /}-${version}-r${revision}-Standard.pkg"␊ |
␉echo "Building Resources..."␊ |
␉find "${1}/${packagename}/Resources" -type d -name '.svn' -exec rm -R -f {} \; 2>/dev/null␊ |
␊ |
|
␉xar -c -f "${1%/*}/${packagename// /}-${version}-r${revision}-Standard.pkg" --compression none .␊ |
␉popd >/dev/null␊ |
␊ |
␊ |
␊ |
␉md5=$( md5 "${1%/*}/${packagename// /}-${version}-r${revision}-Standard.pkg" | awk {'print $4'} )␊ |
␉echo "MD5 (${packagename// /}-${version}-r${revision}-Standard.pkg) = ${md5}" > "${1%/*}/${packagename// /}-${version}-r${revision}-Standard.pkg.md5"␊ |
cp -R -f "${1}/${packagename}/Resources" ${1%/*}/Resources␊ |