Pmodules/modbuild

- bugfix in setting target option
- define variable 'V_PKG' as version of the source package
This commit is contained in:
2017-08-08 14:11:48 +02:00
parent 43d85f96ab
commit db616ce790
+2 -1
View File
@@ -230,7 +230,7 @@ while (( $# > 0 )); do
with_modules+=( ${m} )
;;
--prep | --configure | --compile | --install | --all )
target=$1
target=${1:2}
;;
--system )
OS="$2"
@@ -351,6 +351,7 @@ declare V_MINOR=${tmp%%.*}
tmp=${tmp#*.}
declare V_PATCHLVL=${tmp%%-*}
declare V_RELEASE=${tmp#*-}
declare V_PKG="${V_MAJOR}.${V_MINOR}.${V_PATCHLVL}"
P=$(basename $(dirname "${BUILD_BLOCK}"))