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 4e1766d..10f2f5e 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 83e0373..d9efde7 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 dc93189..9205fab 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 386436d..5231e38 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"