X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=lib%2Fjavase.sh;h=20756e7be2ce4ce095b33053a9a5645491e29415;hb=2a9168df2bfed5c3353dfea956029a572d2a1e9b;hp=8e0d0f5e2fb579595f3c494ee3481ed5198ea869;hpb=a3c39ab91277313d3890aa70b4fccf503b6d5c6e;p=sven%2Fjava-package.git diff --git a/lib/javase.sh b/lib/javase.sh index 8e0d0f5..20756e7 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -3,7 +3,7 @@ j2se_readme() { Package for $j2se_title --- -This package has been automatically created with java-package ($version). +This package has been automatically created with java-package ($version). All files from the original distribution should have been installed in the directory $jvm_base$j2se_name. Please take a look at this directory for further information. @@ -29,7 +29,7 @@ Section: non-free/devel Priority: optional Maintainer: $maintainer_name <$maintainer_email> Build-Depends: debhelper (>= 4.0.0) -Standards-Version: 3.7.2 +Standards-Version: 3.9.5 EOF } @@ -45,7 +45,7 @@ subdirectories. ---------------------------------------------------------------------- EOF - ( + ( cd "$install_dir" find * -type f -iname copyright | while read file; do @@ -122,7 +122,7 @@ fi exit 0 EOF chmod 755 "$debian_dir/postinst" - + cat > "$debian_dir/prerm" << EOF #!/bin/bash @@ -186,7 +186,7 @@ jinfos() { j2se_build() { cd "$tmp" echo "Create debian package:" - + #export DH_VERBOSE=1 export DH_COMPAT=7 export DH_OPTIONS=--tmpdir="$install_dir" @@ -232,7 +232,7 @@ j2se_build() { local deb_filename="$( echo "${j2se_package}_"*.deb )" echo " copy $deb_filename into directory $working_dir/" cp "$deb_filename" "$working_dir/" - if [ -n "$genchanges" ]; then + if [ -n "$genchanges" ]; then echo " dpkg-genchanges" local changes_filename="${deb_filename%.deb}.changes" dpkg-genchanges -b -u. > "$changes_filename" @@ -241,8 +241,10 @@ j2se_build() { fi cat << EOF -The Debian package has been created in the current directory. You can -install the package as root (e.g. dpkg -i $deb_filename). +The Debian package has been created in the current directory. +You can install the package as root with: + + dpkg -i $deb_filename EOF }