builddate=$( grep I386BOOT_BUILDDATE sym/i386/vers.h | awk '{ print $3,$4 }' | tr -d '\"' )␊ |
timestamp=$( date -j -f "%Y-%m-%d %H:%M:%S" "${builddate}" "+%s" )␊ |
␊ |
# =================␊ |
␊ |
develop=" Crazor, Dense, fassl, fxtentacle, iNDi, JrCs, Kabyl, kaitek, mackerintel, mercurysquad, munky, Slice, meklort, mozodojo, rekursor, Turbo, cparm, valv & zef "␊ |
␊ |
credits=" andyvand, asereBLN, Azimut, bumby, cosmo1t, dfe, Galaxy, kalyway, Krazubu, MasterChief, netkas, sckevyn, smith@@, THeKiNG, blackosx, .: ErmaC :., scrax, DutchHockeyPro & Andy"␊ |
␊ |
# =================␊ |
␊ |
distributioncount=0␊ |
xmlindent=0␊ |
␊ |
|
# build core package␊ |
␉echo "================= Core ================="␊ |
␉((xmlindent++))␊ |
␉packagesidentity="org.chameleon"␊ |
␉packagesidentity="org.chameleon.core"␊ |
␉mkdir -p ${1}/Core/Root/usr/sbin␊ |
␉mkdir -p ${1}/Core/Root/usr/local/bin␊ |
␉mkdir -p ${1}/Core/Root/usr/standalone/i386␊ |
|
#␉perl -i -p -e "s/%PKGTYPE%/TEST/g" `find "${1}/${packagename}/Resources" -type f`␊ |
#␊ |
␊ |
# Adding Developer and credits␊ |
␉perl -i -p -e "s/%DEVELOP%/${develop}/g" `find "${1}/${packagename}/Resources" -type f`␊ |
␉perl -i -p -e "s/%CREDITS%/${credits}/g" `find "${1}/${packagename}/Resources" -type f`␊ |
#␊ |
␊ |
␉stage=${stage/RC/Release Candidate }␊ |
␉stage=${stage/FINAL/2.0 Final}␊ |
␉perl -i -p -e "s/%CHAMELEONSTAGE%/${stage}/g" `find "${1}/${packagename}/Resources" -type f`␊ |
|
# Here is the place for assign a Icon to the pkg␊ |
# command use to generate the file:␊ |
# ditto -c -k --sequesterRsrc --keepParent Icon.icns Icon.zip␊ |
# ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"␊ |
# DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc␊ |
# Rez -append tempicns.rsrc -o "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"␊ |
# SetFile -a C "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"␊ |
# rm -f tempicns.rsrc␊ |
# rm -rf "${pkgroot}/Icons/Icons"␊ |
ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"␊ |
DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc␊ |
Rez -append tempicns.rsrc -o "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"␊ |
SetFile -a C "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"␊ |
rm -f tempicns.rsrc␊ |
rm -rf "${pkgroot}/Icons/Icons"␊ |
# End␊ |
␊ |
␉md5=$( md5 "${1%/*}/${packagename// /}-${version}-r${revision}.pkg" | awk {'print $4'} )␊ |