#!/bin/sh XPTFILE=../src/nsILibOggPlugin.xpt PLUGIN=../src/.libs/libnpoggplugin_static.so PLUGIN_NAME=libnpoggplugin.so XPINAME=Oggplay-Linux.xpi if [ ! -e $XPTFILE ]; then echo "Could not find $XPTFILE" exit 1 fi if [ ! -e $PLUGIN ]; then echo "Could not find $PLUGIN" exit 1 fi cp $XPTFILE . cp $PLUGIN $PLUGIN_NAME rm $XPINAME 2>/dev/null zip -9r $XPINAME install.js ${XPTFILE##.*/} ${PLUGIN_NAME} rm ${XPTFILE##.*/} ${PLUGIN_NAME}