#!/bin/sh -v
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin

cd "$BUILT_PRODUCTS_DIR"
mkdir "PerianPane.prefPane/Contents/Resources/Components"
for item in Perian A52Codec AC3MovieImport ; do
    itemName="${item}.component"
    if [[ -d $itemName ]] ; then
        zip -9r "${item}.zip" "$itemName"
        cp "${item}.zip" "PerianPane.prefPane/Contents/Resources/Components"
    fi
done
#!/bin/sh -v
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin

cd "$BUILT_PRODUCTS_DIR"
mkdir "PerianPane.prefPane/Contents/Resources/Components"
for itemName in *.component ; do
    itemLength=${#itemName}
    item=${itemName:0:$itemLength-10}
    echo $item
    if [[ -d $itemName ]] ; then
        zip -9r "${item}.zip" "$itemName"
        cp "${item}.zip" "PerianPane.prefPane/Contents/Resources/Components"
    fi
done
Compress and include *.component instead of just the ones we specify.
Compress and include *.component instead of just the ones we specify.

