Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (24 sloc) 819 Bytes
zipBasePath="{TARGET_BUILD_DIR}/${ZipName}"
echo "Removing zip file ${zipBasePath}.zip"
rm -f "${zipBasePath}.zip"
if [ x${ACTION} = xclean ]; then
exit 0
fi
echo "Removing .svn directories..."
find "${BUILT_PRODUCTS_DIR}/${ZipProduct}" -name ".svn" -exec rm -rvf "{}" \;
echo "...done"
echo "Setting ownership..."
chgrp -R admin "${BUILT_PRODUCTS_DIR}/${ZipProduct}"
echo "...done"
echo "Setting permissions..."
chmod -R g+w "${BUILT_PRODUCTS_DIR}/${ZipProduct}"
echo "...done"
echo "Creating Zip file ${zipBasePath}.zip ..."
cd "${BUILT_PRODUCTS_DIR}"
zip -9 -r -y "${ZipName}.zip" "${ZipProduct}"
echo "...done"
echo "Adding Revision Number to Zip file ${zipBasePath}.zip ..."
REV=`/usr/bin/env svnversion -n "${SRCROOT}"`
cd "${BUILT_PRODUCTS_DIR}"
cp "${ZipName}.zip" "${ZipName}-${REV}.zip"
echo "...done"
Something went wrong with that request. Please try again.