Chameleon

Chameleon Commit Details

Date:2012-03-04 14:07:04 (12 years 1 month ago)
Author:JrCs
Commit:1850
Parents: 1849
Message:Fix a bug with cpio under Snow Leopard
Changes:
M/trunk/package/buildpkg.sh

File differences

trunk/package/buildpkg.sh
862862
863863
864864
865
865
866
866867
867868
868869
......
870871
871872
872873
873
874
875
874876
875877
876878
done
header+="\t</scripts>\n"
# Create the Script archive file (cpio format)
(cd "${packagePath}/Scripts" && find . -print | cpio -o -z -R 0:0 --format cpio > "${packagePath}/Temp/Scripts") 2>&1 | \
(cd "${packagePath}/Scripts" && find . -print | \
cpio -o -z -R root:wheel --format cpio > "${packagePath}/Temp/Scripts") 2>&1 | \
grep -vE '^[0-9]+\s+blocks?$' # to remove cpio stderr messages
fi
echo -e "${header}" > "${packagePath}/Temp/PackageInfo"
# Create the Payload file (cpio format)
(cd "${packagePath}/Root" && find . -print | cpio -o -z -R 0:0 --format cpio > "${packagePath}/Temp/Payload") 2>&1 | \
(cd "${packagePath}/Root" && find . -print | \
cpio -o -z -R root:wheel --format cpio > "${packagePath}/Temp/Payload") 2>&1 | \
grep -vE '^[0-9]+\s+blocks?$' # to remove cpio stderr messages
# Create the package

Archive Download the corresponding diff file

Revision: 1850