]> mj.ucw.cz Git - libucw.git/blobdiff - debian/mk
Released as 6.5.7.
[libucw.git] / debian / mk
index 54a190a25c846153edf7c43b02071da464823570..84b92b5f32053b06b6b13df23325e52271da59a1 100755 (executable)
--- a/debian/mk
+++ b/debian/mk
@@ -1,6 +1,6 @@
 #!/bin/bash
 # A script for building of LibUCW packages
-# (c) 2013--2014 Pavel Charvat <pchar@ucw.cz>
+# (c) 2013--2017 Pavel Charvat <pchar@ucw.cz>
 
 set -e
 . debian/pkg-lib
@@ -15,6 +15,8 @@ Options:
 --version=<ver>                Custom version number of resulting packages (default: autodetect from git-describe)
 --abi-version=<ver>    Custom version number of the LibUCW's ABI (default: defined in ucw/default.cfg)
 --gen-script=<script>  Custom script to postprocess
+--extra-conf=<args>    Add extra arguments to the configure script
+--no-checkout          Expect manually checked out sources to build directory (useful for chrooted building; --version is mandatory)
 EOF
        exit 1
 }
@@ -66,7 +68,11 @@ while [ -n "$1" ] ; do
                        ;;
        --gen-script=*) GEN_SCRIPT="${1:13}"
                        ;;
-        *)             usage
+       --extra-conf=*) CONF="$CONF ${1:13}"
+                       ;;
+       --no-checkout)  PKG_NO_CHECKOUT=1
+                       ;;
+       *)              usage
                        ;;
        esac
        shift
@@ -75,7 +81,7 @@ done
 pkg-git-version
 pkg-git-checkout
 
-echo $TREEVER >$BUILDDIR/UCW_VERSION
+echo $VER >$BUILDDIR/UCW_VERSION
 pkg-gen-debian
 
 BUILDOPTS=