]> git.sven.stormbind.net Git - sven/java-package.git/blobdiff - make-jpkg
Add --source option to build a source package instead of a binary deb package
[sven/java-package.git] / make-jpkg
index 9eb0fab3a8078cd2e27e023c6bf8c6d7777f666e..826b2da46acba2ab3ccca6e2a375b2324e7f0a1d 100755 (executable)
--- a/make-jpkg
+++ b/make-jpkg
@@ -31,6 +31,7 @@ else
 fi
 
 genchanges=""
+build_source=""
 
 ### check for run in fakeroot
 
@@ -82,6 +83,7 @@ The following options are recognized:
   --email EMAIL      email address used in the maintainer field of the package
   --changes          create a .changes file
   --revision         add debian revision
+  --source           build a source package instead of a binary deb package
 
   --help             display this help and exit
   --version          output version information and exit
@@ -127,6 +129,8 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do
     revision="-${1}"
     elif [[ "x$1" == x--changes ]]; then
     genchanges="true"
+    elif [[ "x$1" == x--source ]]; then
+    build_source="true"
     else
     unrecognized_option "$1"
     fi