[xiph-commits] r3109 - liboggplay/trunk/Installer

shans at svn.annodex.net shans at svn.annodex.net
Wed Jun 27 23:17:51 PDT 2007


Author: shans
Date: 2007-06-27 23:17:51 -0700 (Wed, 27 Jun 2007)
New Revision: 3109

Modified:
   liboggplay/trunk/Installer/MakeLinuxPluginXPI.sh
Log:
Modified to look like Mac version



Modified: liboggplay/trunk/Installer/MakeLinuxPluginXPI.sh
===================================================================
--- liboggplay/trunk/Installer/MakeLinuxPluginXPI.sh	2007-06-28 06:17:15 UTC (rev 3108)
+++ liboggplay/trunk/Installer/MakeLinuxPluginXPI.sh	2007-06-28 06:17:51 UTC (rev 3109)
@@ -1,38 +1,20 @@
-#!/bin/zsh -f
+#!/bin/sh
 
-set -e
-set -x
+XPTFILE=../plugin/nsILibOggPlugin.xpt
+PLUGIN=../plugin/.libs/libnpoggplugin.so
 
-ARCH=`arch`
+XPINAME=Oggplay-Linux.xpi
 
-case $ARCH in
-  i?86)
-#  *86*)
-    buildarch="i386"
-    ;;
-  *)
-    buildarch="$ARCH"
-    ;;
-esac
+if [ ! -e $XPTFILE ]; then
+  echo "Could not find $XPTFILE"
+  exit 1
+fi
+if [ ! -e $PLUGIN ]; then
+  echo "Could not find $PLUGIN"
+  exit 1
+fi
 
-echo $buildarch
-
-# prep the plugins directory
-rm -rf bin
-mkdir -p bin/plugins
-cp ../plugin/.libs/libnpoggplugin.so bin/plugins
-cp ../plugin/npliboggplugin.xpt bin/plugins
-strip bin/plugins/*.so
-
-# add the plugins directory and install.js to the XPI
-[ -f Oggplay-Linux-$buildarch.xpi ] \
-  && rm Oggplay-Linux-$buildarch.xpi \
-  || true
-zip -9r Oggplay-Linux-$buildarch.xpi \
-  bin/ \
-  install.js \
-  MovePluginsFromOggplayTempToMozillaPlugins.sh
-
-# clean up
-rm -rf bin/
-
+cp $XPTFILE $PLUGIN .
+rm $XPINAME 2>/dev/null
+zip -9r $XPINAME install.js ${XPTFILE##.*/} ${PLUGIN##.*/}
+rm ${XPTFILE##.*/} ${PLUGIN##.*/}



More information about the commits mailing list