]> git.sven.stormbind.net Git - sven/java-package.git/commitdiff
Add a debian/rules file to the generated source package.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 8 May 2014 11:11:59 +0000 (13:11 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 8 May 2014 11:11:59 +0000 (13:11 +0200)
lib/javase.sh
lib/jdk-doc.sh
lib/jdk.sh
lib/jre.sh

index 4e1766d4fcf503f635de2ebe30e6a2b742d903ac..10f2f5e2684878d9fa10597bcb2d392400bde6f0 100644 (file)
@@ -65,6 +65,15 @@ EOF
     )
 }
 
+j2se_rules() {
+    cat << EOF
+#!/usr/bin/make -f
+
+%:
+       dh \$@
+EOF
+}
+
 j2se_install_scripts() {
     cat > "$debian_dir/postinst" << EOF
 #!/bin/bash
index 83e0373e0d343c5b75ef4c503046a3628fc2583c..d9efde7991529fb1c5ae26915448c928a6e75a04 100644 (file)
@@ -50,6 +50,8 @@ j2sdk_doc_run() {
     j2sdk_doc_control > "$debian_dir/control"
     j2se_copyright > "$debian_dir/copyright"
     j2sdk_doc_doc-base > "$debian_dir/$j2se_package.doc-base"
+    j2se_rules > "$debian_dir/rules"
+    chmod +x "$debian_dir/rules"
     j2se_install_scripts
     install -d "$target/debian"
     j2se_info > "$target/debian/info"
index dc93189a42c040b1a8bd1b3cb9b9a020c60c9568..9205fab946f46986e94fb45ac1eae30dc3d5fd7f 100644 (file)
@@ -49,6 +49,8 @@ j2sdk_run() {
     j2se_changelog > "$debian_dir/changelog"
     j2sdk_control > "$debian_dir/control"
     j2se_copyright > "$debian_dir/copyright"
+    j2se_rules > "$debian_dir/rules"
+    chmod +x "$debian_dir/rules"
     j2se_install_scripts
     install -d "$target/debian"
     j2se_info > "$target/debian/info"
index 386436dfea551ed9a28fa728cb93fcd68615c6c0..5231e383ca96004a91bfafa027d0166fabcdf215 100644 (file)
@@ -35,6 +35,8 @@ j2re_run() {
     j2se_changelog > "$debian_dir/changelog"
     j2re_control > "$debian_dir/control"
     j2se_copyright > "$debian_dir/copyright"
+    j2se_rules > "$debian_dir/rules"
+    chmod +x "$debian_dir/rules"
     j2se_install_scripts
     install -d "$target/debian"
     j2se_info > "$target/debian/info"