From b8b58fea9dc6c6e9346c25fd052ae41e9d259e38 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Tue, 27 Mar 2007 23:01:29 +0900 Subject: stylistic change to match rest of code. --- pdebuild | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pdebuild') diff --git a/pdebuild b/pdebuild index e867ea5..ddefb99 100644 --- a/pdebuild +++ b/pdebuild @@ -25,7 +25,7 @@ while ! test -d ./debian -o "$(pwd)" = "/" ; do done if test ! -d ./debian; then - echo "Cannot find ./debian dir" + echo "E: Cannot find ./debian dir" >&2 exit 1 fi; @@ -40,16 +40,17 @@ 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}" --uid "${BUILDRESULTUID}" --gid "${BUILDRESULTGID}" --pbuildersatisfydepends "$PBUILDERSATISFYDEPENDSCMD" if [ -d "${BUILDRESULT}" ]; then - for f in $(sed -rn '/^Files:/,${s/.* ([^ ]+)$/\1/p}' ../${CHANGES}); do - cp -p ../$f "${BUILDRESULT}" + for files in $(sed -rn '/^Files:/,${s/.* ([^ ]+)$/\1/p}' ../${CHANGES}); do + cp -a ../"$files" "${BUILDRESULT}" done - cp -p ../${CHANGES} "${BUILDRESULT}" + cp -a ../${CHANGES} "${BUILDRESULT}" else echo "E: BUILDRESULT=[$BUILDRESULT] is not a directory." >&2 + exit 1 fi else if ! dpkg-checkbuilddeps -B ; then - echo "W: Unmet build-dependency in source" + echo "W: Unmet build-dependency in source" >&2 fi echo "dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | perl -pe 's/(^|\s)-[bB](\s|$)/$1$2/g' | /bin/bash ${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --build "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" --debbuildopts "${DEBBUILDOPTS}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc -- cgit v1.2.3