aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2012-03-09 08:14:19 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2012-03-09 08:14:19 +0900
commit7aa69397d99fff86196c3a835551f099e4603057 (patch)
tree0ea32320ac6f569b2a1c6dec6a9b6aa86acdf46e /pdebuild
parent78747b5f1081e3afa1d5e0147c4efdbd833b7d14 (diff)
downloadpbuilder-7aa69397d99fff86196c3a835551f099e4603057.tar
pbuilder-7aa69397d99fff86196c3a835551f099e4603057.tar.gz
make longer lines wrap so reading patch files aren't as painful.
Diffstat (limited to 'pdebuild')
-rw-r--r--pdebuild29
1 files changed, 26 insertions, 3 deletions
diff --git a/pdebuild b/pdebuild
index 35966bd..97df19b 100644
--- a/pdebuild
+++ b/pdebuild
@@ -44,7 +44,20 @@ export BUILDRESULTUID=$(id -u)
export BUILDRESULTGID=$(id -g)
if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
- ${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --execute ${EXTRA_CONFIGFILE[@]/#/--configfile } --bindmounts $(readlink -f ..) "$@" -- /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "" --debbuildopts "${DEBBUILDOPTS}" --uid "${BUILDRESULTUID}" --gid "${BUILDRESULTGID}" --pbuildersatisfydepends "$PBUILDERSATISFYDEPENDSCMD"
+ ${PBUILDERROOTCMD} \
+ ${PDEBUILD_PBUILDER} \
+ --execute \
+ ${EXTRA_CONFIGFILE[@]/#/--configfile } \
+ --bindmounts $(readlink -f ..) \
+ "$@" \
+ -- \
+ /usr/lib/pbuilder/pdebuild-internal \
+ ${PWD} \
+ --debbuildopts "" \
+ --debbuildopts "${DEBBUILDOPTS}" \
+ --uid "${BUILDRESULTUID}" \
+ --gid "${BUILDRESULTGID}" \
+ --pbuildersatisfydepends "$PBUILDERSATISFYDEPENDSCMD"
if [ -d "${BUILDRESULT}" ]; then
for files in $(sed -rn '/^Files:/,${s/^ .* ([^ ]+)$/\1/p}' ../${CHANGES}); do
conditional_cp_a ../"$files" "${BUILDRESULT}"
@@ -58,8 +71,18 @@ else
if ! dpkg-checkbuilddeps -B ; then
log "W: Unmet build-dependency in source"
fi
- echo "dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | perl -pe 's/(^|\s)-[AbBF](\s|$)/$1$2/g' | /bin/bash
- ${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --build ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" --debbuildopts "" --debbuildopts "${DEBBUILDOPTS}" "$@" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
+ echo "dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | \
+ perl -pe 's/(^|\s)-[AbBF](\s|$)/$1$2/g' | \
+ /bin/bash
+ ${PBUILDERROOTCMD} \
+ ${PDEBUILD_PBUILDER} \
+ --build \
+ ${EXTRA_CONFIGFILE[@]/#/--configfile } \
+ --buildresult "${BUILDRESULT}" \
+ --debbuildopts "" \
+ --debbuildopts "${DEBBUILDOPTS}" \
+ "$@" \
+ ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
fi
# do signing with optional key specifier