X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=make-jpkg;h=3db992cfd6494949383b1fe86a13277852ac2a80;hp=6ec655ae6df2827ceb33e9c66027b5db82a4a332;hb=0c26a5b2161d8f4e915e2e21fa923fa2f24a6daf;hpb=3507a234b95476fe4ed3e6d7be685e4ffb2df576 diff --git a/make-jpkg b/make-jpkg index 6ec655a..3db992c 100755 --- a/make-jpkg +++ b/make-jpkg @@ -32,6 +32,7 @@ fi genchanges="" build_source="" +jce_archive="" ### check for run in fakeroot @@ -81,11 +82,13 @@ The following options are recognized: --full-name NAME full name used in the maintainer field of the package --email EMAIL email address used in the maintainer field of the package + --distribution DIST Define the distribution to use in the changelog + --priority PRIORITY Override default package priority --changes create a .changes file --revision add debian revision --source build a source package instead of a binary deb package --with-system-certs integrate with the system's keystore - --distribution Define the distribution to use in the changelog + --jce-policy FILE Replace cryptography files with versions from FILE --help display this help and exit --version output version information and exit @@ -117,6 +120,10 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do elif [[ "x$1" == x--help ]]; then print_usage exit 0 + elif [[ "x$1" == x--jce-policy ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + jce_archive="$1" elif [[ "x$1" == x--full-name ]]; then [ $# -le 1 ] && missing_argument "$1" shift @@ -129,6 +136,10 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do [ $# -le 1 ] && missing_argument "$1" shift distribution="$1" + elif [[ "x$1" == x--priority ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + priority_override="$1" elif [[ "x$1" == x--revision ]]; then [ $# -le 1 ] && missing_argument "$1" shift @@ -167,6 +178,9 @@ archive_name="$( basename "$archive" )" archive_dir="$( cd "$( dirname "$archive" )" ; pwd )" archive_path="$archive_dir/$archive_name" +jce_name="$( basename "$jce_archive" )" +jce_dir="$( cd "$( dirname "$jce_archive" )" ; pwd )" +jce_path="$jce_dir/$jce_name" # error handling