#!/bin/bash # Firefox Extension Update Script # Author: Jacob Torrey # Date: 12/9/08 # Usage: update.sh xpifile VERSION="3.1b2"; mkdir update mv $1 update/update.zip cd update && unzip update.zip cat install.rdf | sed -e "s/.*<\/em:maxVersion>/$VERSION<\/em:maxVersion>/" > newinstall.rdf && mv newinstall.rdf install.rdf zip -r update.zip . cd .. && mv update/update.zip $1 rm -rf update