X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=make-jpkg;h=6ec655ae6df2827ceb33e9c66027b5db82a4a332;hp=9eb0fab3a8078cd2e27e023c6bf8c6d7777f666e;hb=98306665069a9bdf0e061f9d06fef9574efad2ab;hpb=f0ddad846249c2e3a76fdc6f3b03ecd467281dc0 diff --git a/make-jpkg b/make-jpkg index 9eb0fab..6ec655a 100755 --- a/make-jpkg +++ b/make-jpkg @@ -31,6 +31,7 @@ else fi genchanges="" +build_source="" ### check for run in fakeroot @@ -71,20 +72,23 @@ $program_name builds a Debian package from the given Java binary distribution FI Supported java binary distributions currently include: * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) : - - The Java Development Kit (JDK), version 6 and 7 - - The Java Runtime Environment (JRE), version 6 and 7 - - The Java API Javadoc, version 6 and 7 + - The Java Development Kit (JDK), version 6, 7 and 8 + - The Java Runtime Environment (JRE), version 6, 7 and 8 + - The Java API Javadoc, version 6, 7 and 8 (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!) 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 - --changes create a .changes file - --revision add debian revision + --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 + --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 - --help display this help and exit - --version output version information and exit + --help display this help and exit + --version output version information and exit EOF } @@ -121,12 +125,20 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do [ $# -le 1 ] && missing_argument "$1" shift maintainer_email="$1" + elif [[ "x$1" == x--distribution ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + distribution="$1" elif [[ "x$1" == x--revision ]]; then [ $# -le 1 ] && missing_argument "$1" shift revision="-${1}" elif [[ "x$1" == x--changes ]]; then genchanges="true" + elif [[ "x$1" == x--source ]]; then + build_source="true" + elif [[ "x$1" == x--with-system-certs ]]; then + create_cert_softlinks="true" else unrecognized_option "$1" fi