From 20c3538c03a7f4182a001ac8319f516466df7219 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 8 May 2014 13:11:59 +0200 Subject: [PATCH] Add a debian/rules file to the generated source package. --- lib/javase.sh | 9 +++++++++ lib/jdk-doc.sh | 2 ++ lib/jdk.sh | 2 ++ lib/jre.sh | 2 ++ 4 files changed, 15 insertions(+) diff --git a/lib/javase.sh b/lib/javase.sh index 4e1766d..10f2f5e 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -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 diff --git a/lib/jdk-doc.sh b/lib/jdk-doc.sh index 83e0373..d9efde7 100644 --- a/lib/jdk-doc.sh +++ b/lib/jdk-doc.sh @@ -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" diff --git a/lib/jdk.sh b/lib/jdk.sh index dc93189..9205fab 100644 --- a/lib/jdk.sh +++ b/lib/jdk.sh @@ -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" diff --git a/lib/jre.sh b/lib/jre.sh index 386436d..5231e38 100644 --- a/lib/jre.sh +++ b/lib/jre.sh @@ -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" -- 2.39.5