fi
}
+get_distribution() {
+ if [ -n "$distribution" ]; then
+ target_distribution="$distribution"
+ else
+ target_distribution="unstable"
+ fi
+}
j2se_changelog() {
cat << EOF
-$j2se_package ($j2se_version) unstable; urgency=medium
+$j2se_package ($j2se_version) $target_distribution; urgency=medium
* This package was created with java-package ($version).
echo
diskfree "$j2se_required_space"
read_maintainer_info
+ get_distribution
case "${j2se_arch}" in
i586)
j2se_debian_arch=i386
echo
diskfree "$j2se_required_space"
read_maintainer_info
+ get_distribution
j2se_package="$j2se_vendor-java$j2se_release-doc"
j2se_name="$j2se_package"
local target="$package_dir/$j2se_name"
--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
[ $# -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
.B --email \fIEMAIL\fR
email address used in the maintainer field of the package
.TP
+.B --distribution \fIDISTRIBUTION\fR
+distribution to use in the debian changelog for the resulting package
+.TP
.B --changes
create a .changes file
.TP