X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=make-jpkg;h=826b2da46acba2ab3ccca6e2a375b2324e7f0a1d;hp=101d697500414f5a191228c6cd69d2a58043a26f;hb=69f0c92728cb051df2f2a030c13ef7bf5ded9ccf;hpb=9be7aa4fcd4a0153bf128d1a6ea0721835db490b diff --git a/make-jpkg b/make-jpkg index 101d697..826b2da 100755 --- a/make-jpkg +++ b/make-jpkg @@ -15,8 +15,8 @@ lib_dir="/usr/share/java-package" [ "$J2SE_PACKAGE_LIBDIR" ] && lib_dir="$J2SE_PACKAGE_LIBDIR" # If a default has been set for either of the -# environment variables, use it; otherwise, -# default to the name and email used by the +# environment variables, use it; otherwise, +# default to the name and email used by the # Debian Java Maintainers project. if [ -z "$J2SE_PACKAGE_FULL_NAME" ]; then maintainer_name="Debian Java Maintainers" @@ -31,6 +31,7 @@ else fi genchanges="" +build_source="" ### check for run in fakeroot @@ -82,6 +83,7 @@ The following options are recognized: --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 --help display this help and exit --version output version information and exit @@ -127,6 +129,8 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do revision="-${1}" elif [[ "x$1" == x--changes ]]; then genchanges="true" + elif [[ "x$1" == x--source ]]; then + build_source="true" else unrecognized_option "$1" fi @@ -200,11 +204,11 @@ echo -n "Creating temporary directory: " tmp="$( mktemp -d -t "$program_name.XXXXXXXXXX" )" echo "$tmp" -debian_dir="$tmp/debian" -install -d -m 755 "$debian_dir" +package_dir="$tmp/package" +install -d -m 755 "$package_dir" -install_dir="$tmp/install" -install -d -m 755 "$install_dir" +debian_dir="$package_dir/debian" +install -d -m 755 "$debian_dir" # load and execute plugins echo -n "Loading plugins:" @@ -226,7 +230,7 @@ jvm_base="/usr/lib/jvm/" javadoc_base="/usr/share/doc/" j2se_found= -for var in ${!j2se_detect_*}; do +for var in ${!j2se_detect_*}; do eval "\$$var" if [[ "$j2se_found" == "true" ]]; then break; @@ -235,7 +239,8 @@ done echo if [[ -z "$j2se_found" ]]; then - echo "No matching packaging method was found for $archive_name. Please make sure you are using a tar.gz or self-extracting archive" + echo "No matching packaging method was found for $archive_name." + echo "Please make sure you are using a tar.gz or a self-extracting archive" fi