X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fcommon.sh;h=ab07236aa54b5c82933d2c350a1506a14bb383ef;hp=73d729f0e4a14d7d0e103754e8ec8fd867618d19;hb=HEAD;hpb=8905b8c25b9b7a64fe1df43e187cb48f6eb1a5ad diff --git a/lib/common.sh b/lib/common.sh index 73d729f..ab07236 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -128,6 +128,15 @@ EOF fi } +extract_jce() { + local zip_file="$1" + local dest_dir="$2" + + echo "Installing unlimited strength cryptography files using $zip_file" + for f in {US_export,local}_policy.jar; do + unzip -o -j -d "$dest_dir" "$zip_file" "*/$f" + done +} read_maintainer_info() { if [ -z "$maintainer_name" ]; then @@ -202,3 +211,10 @@ get_browser_plugin_dirs() { fi } +get_distribution() { + if [ -n "$distribution" ]; then + target_distribution="$distribution" + else + target_distribution="unstable" + fi +}