Compare commits
2 commits
9aedecc62e
...
985c0e7a06
Author | SHA1 | Date | |
---|---|---|---|
985c0e7a06 | |||
fe278387e5 |
32
makedeb
32
makedeb
|
@ -13,6 +13,7 @@ _ARGLIST=("$@")
|
||||||
OVERRIDE_SOURCE=0
|
OVERRIDE_SOURCE=0
|
||||||
QUIET=0
|
QUIET=0
|
||||||
PACKAGELIST=0
|
PACKAGELIST=0
|
||||||
|
IS_DYNAMICV_PKGVER=0
|
||||||
|
|
||||||
_STEP_CLEAN=1
|
_STEP_CLEAN=1
|
||||||
_STEP_RETRIEVE_SOURCE=1
|
_STEP_RETRIEVE_SOURCE=1
|
||||||
|
@ -436,14 +437,16 @@ function enable_stdout {
|
||||||
|
|
||||||
function show_help {
|
function show_help {
|
||||||
echo "$0 [OPTIONS]"
|
echo "$0 [OPTIONS]"
|
||||||
echo " -Q quiet, disable log"
|
echo " -Q quiet, disable log"
|
||||||
echo " -f|--force don't check if package already exists, will"
|
echo " -f|--force don't check if package already exists, will"
|
||||||
echo " override the existed package"
|
echo " --nobuild retrieve source, update pkgver and stop"
|
||||||
echo " --noextract use the current srcdir to build package, skip"
|
echo " override the existed package"
|
||||||
echo " those retrieve source steps"
|
echo " --noextract use the current srcdir to build package, skip"
|
||||||
echo " --noarchive retrieve and build, but don't package to .deb"
|
echo " those retrieve source steps"
|
||||||
echo " --packagelist show file to be generated by current DEBBUILD"
|
echo " --noarchive retrieve and build, but don't package to .deb"
|
||||||
echo " -h|--help show this message"
|
echo " --packagelist show file to be generated by current DEBBUILD"
|
||||||
|
echo " --is-dynamic-pkgver exit with 0 if DEBBUILD will update pkgver later"
|
||||||
|
echo " -h|--help show this message"
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -475,9 +478,8 @@ while (( "$#" >= 1 )); do
|
||||||
|
|
||||||
_STOP_AFTER_BUILD=1
|
_STOP_AFTER_BUILD=1
|
||||||
;;
|
;;
|
||||||
--packagelist)
|
--packagelist) PACKAGELIST=1 ;;
|
||||||
PACKAGELIST=1
|
--is-dynamic-pkgver) IS_DYNAMICV_PKGVER=1 ;;
|
||||||
;;
|
|
||||||
-h|--help) show_help ; exit 0;;
|
-h|--help) show_help ; exit 0;;
|
||||||
|
|
||||||
*) err "Unkown option $1"
|
*) err "Unkown option $1"
|
||||||
|
@ -495,6 +497,14 @@ if (( PACKAGELIST )) ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( IS_DYNAMICV_PKGVER )) ; then
|
||||||
|
if is_function pkgver ; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 4
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if (( QUIET )) ; then
|
if (( QUIET )) ; then
|
||||||
disable_stdout
|
disable_stdout
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue