#!/bin/bash cd extension VERSION=`grep em:version install.rdf |cut -d \> -f 2|cut -d \< -f 1` rm -f ../compactondelete-${VERSION}.xpi zip ../compactondelete-${VERSION}.xpi `find .|grep -v .svn` cd .. sed -i "s/\\([^<]*\\)sha1:`sha1sum compactondelete-${VERSION}.xpi|cut -d ' ' -f 1`\\([^<]*\\)https:\\/\\/www.moonlightdesign.org\\/compactondelete\\/compactondelete-${VERSION}.xpi\\([^<]*\\)${VERSION}