#!/bin/sh # Copy, compress and sign a JAR file # Args are d=`dirname "$2"` f=`basename "$1"` tmp="$d/$f" cp "$1" "$tmp" # pack200 --repack --no-keep-file-order --strip-debug "$tmp" pack200 --repack --no-keep-file-order "$tmp" jarsigner -keystore "$3" -storepass "$4" "$tmp" "$5" pack200 --effort=9 "$2" "$tmp" rm "$tmp"