X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=make-jpkg;fp=make-jpkg;h=64c37635f7e34254130e7902cfdff326b4c7430d;hp=2c829629e8e8494be6a8a153bf3a10a791404010;hb=adec26aa8261b379a1db4ca72142b7ddc51f4e75;hpb=9e241f83087a526985b6edbc7070d5dc36a1ac33 diff --git a/make-jpkg b/make-jpkg index 2c82962..64c3763 100755 --- a/make-jpkg +++ b/make-jpkg @@ -63,7 +63,7 @@ fi ### Parse options -function print_usage() { +print_usage() { cat << EOF Usage: $program_name [OPTION]... FILE @@ -80,7 +80,7 @@ $program_name builds Debian packages from Java(TM) 2 binary distributions. EOF } -function unrecognized_option() { +unrecognized_option() { cat >&2 << EOF $program_name: unrecognized option \`$1' Try \`$program_name --help' for more information. @@ -88,7 +88,7 @@ EOF exit 1 } -function missing_argument() { +missing_argument() { cat >&2 << EOF $program_name: missing argument for option \`$1' Try \`$program_name --help' for more information. @@ -154,7 +154,7 @@ failed= tmp= # function is called when script terminates -function on_exit() { +on_exit() { lastcmd="$_" if [[ -z "$success" && -z "$failed" ]]; then cat >&2 << EOF @@ -173,7 +173,7 @@ EOF trap on_exit EXIT # print error message and terminate -function error_exit() { +error_exit() { cat >&2 << EOF Aborted. @@ -211,6 +211,9 @@ echo # get architecture information get_architecture +jvm_base="/usr/lib/jvm/" +javadoc_base="/usr/share/doc/" + j2se_found= for var in ${!j2se_detect_*}; do eval "\$$var"