med-xpi-pack packs a directory to a XPI file. It takes in consideration the unpacked JAR files, which are unpacked during the call of med-xpi-unpack script, in order to be able to distribute them through the repositories.
It is distributed as a part of mozilla-devscripts package, and is automatically called during the build process of Mozilla extension package, if the package includes xpi.mk script in debian/rules file.
med-xpi-pack ubufox ubufox.xpi
Packs the contents of the directory ubufox to file ubufox.xpi.