~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin/mdw-sbuild{,-server}: Push arguments through to `dpkg-buildpackage'.
[profile]
/
bin
/
mdw-sbuild
diff --git
a/bin/mdw-sbuild
b/bin/mdw-sbuild
index
a8864c7
..
18f9901
100755
(executable)
--- a/
bin/mdw-sbuild
+++ b/
bin/mdw-sbuild
@@
-34,8
+34,8
@@
fail_usage () { usage >&2; exit 1; }
### Parse options.
bogusp=nil noactp=nil signp=nil
### Parse options.
bogusp=nil noactp=nil signp=nil
-unset buildopts pkgs
-while getopts "haik:np:t:" opt; do
+unset buildopts pkgs
dbpargs
+while getopts "haik:np:t:
A:
" opt; do
case $opt in
h)
usage
case $opt in
h)
usage
@@
-49,6
+49,7
@@
Options:
-n Don't actually do the build.
-p DIR Upload additional packages from DIR.
-t TARGET Build in TARGET build environment.
-n Don't actually do the build.
-p DIR Upload additional packages from DIR.
-t TARGET Build in TARGET build environment.
+ -A ARGS Pass ARGS to \`dpkg-buildpackage'.
EOF
exit 0
;;
EOF
exit 0
;;
@@
-58,6
+59,10
@@
EOF
n) buildopts="${buildopts+$buildopts }-n" noactp=t ;;
p) pkgs=$OPTARG ;;
t) buildopts="${buildopts+$buildopts }-t$OPTARG" ;;
n) buildopts="${buildopts+$buildopts }-n" noactp=t ;;
p) pkgs=$OPTARG ;;
t) buildopts="${buildopts+$buildopts }-t$OPTARG" ;;
+ A)
+ buildopts="${buildopts+$buildopts }-A$OPTARG"
+ dbpargs="${dbpargs+$dbpargs }$OPTARG"
+ ;;
*) bogusp=t ;;
esac
done
*) bogusp=t ;;
esac
done
@@
-88,7
+93,7
@@
case ${ver+t} in t) ;; *) fail "can't figure out the package version" ;; esac
## Build a Debian source package. Don't sign anything yet. That will happen
## at the end, all in one go.
## Build a Debian source package. Don't sign anything yet. That will happen
## at the end, all in one go.
-dpkg-buildpackage -S -uc -us -d -i
+dpkg-buildpackage -S -uc -us -d -i
$dbpargs
cd ..
dsc=${pkg}_${ver}.dsc
[ -f "$dsc" ] || fail "where is my \`.dsc' file?"
cd ..
dsc=${pkg}_${ver}.dsc
[ -f "$dsc" ] || fail "where is my \`.dsc' file?"
@@
-113,3
+118,5
@@
rm $chchch
case $signp in
t) debsign -k"$keyid" "${pkg}_${ver}_multi.changes" ;;
esac
case $signp in
t) debsign -k"$keyid" "${pkg}_${ver}_multi.changes" ;;
esac
+
+###----- That's all, folks --------------------------------------------------